public IpamDiscoveredPublicAddress withAddressType(IpamPublicAddressType addressType) {
        this.addressType = addressType.toString();
        return this;
    }
<p>
The IP address type.
</p>

@param addressType
       The IP address type.
@return Returns a reference to this object so that method calls can be chained together.
@see IpamPublicAddressType
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/IpamDiscoveredPublicAddress.java