public CreateConnectPeerRequest withSubnetArn(String subnetArn) {
        setSubnetArn(subnetArn);
        return this;
    }
<p>
The subnet ARN for the Connect peer. This only applies only when the protocol is NO_ENCAP.
</p>

@param subnetArn
       The subnet ARN for the Connect peer. This only applies only when the protocol is NO_ENCAP.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-networkmanager/src/main/java/com/amazonaws/services/networkmanager/model/CreateConnectPeerRequest.java