public IpamDiscoveredPublicAddress withService(IpamPublicAddressAwsService service) {
        this.service = service.toString();
        return this;
    }
<p>
The Amazon Web Services service associated with the IP address.
</p>

@param service
       The Amazon Web Services service associated with the IP address.
@return Returns a reference to this object so that method calls can be chained together.
@see IpamPublicAddressAwsService
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/IpamDiscoveredPublicAddress.java