public PrivateIpAddressSpecification withPrimary(Boolean primary) {
        setPrimary(primary);
        return this;
    }
<p>
Indicates whether the private IPv4 address is the primary private IPv4 address. Only one IPv4 address can be
designated as primary.
</p>

@param primary
       Indicates whether the private IPv4 address is the primary private IPv4 address. Only one IPv4 address can
       be designated as primary.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/PrivateIpAddressSpecification.java