public NatGatewayAddress withIsPrimary(Boolean isPrimary) {
        setIsPrimary(isPrimary);
        return this;
    }
<p>
Defines if the IP address is the primary address.
</p>

@param isPrimary
       Defines if the IP address is the primary address.
@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/NatGatewayAddress.java