public ModifyHsmRequest withEniIp(String eniIp) {
        setEniIp(eniIp);
        return this;
    }
<p>
The new IP address for the elastic network interface (ENI) attached to the HSM.
</p>
<p>
If the HSM is moved to a different subnet, and an IP address is not specified, an IP address will be randomly
chosen from the CIDR range of the new subnet.
</p>

@param eniIp
       The new IP address for the elastic network interface (ENI) attached to the HSM.</p>
       <p>
       If the HSM is moved to a different subnet, and an IP address is not specified, an IP address will be
       randomly chosen from the CIDR range of the new subnet.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-cloudhsm/src/main/java/com/amazonaws/services/cloudhsm/model/ModifyHsmRequest.java