public void setSubnetId(String subnetId) {
        this.subnetId = subnetId;
    }
<p>
The instance's subnet ID; applicable only if the stack is running in a VPC.
</p>

@param subnetId
       The instance's subnet ID; applicable only if the stack is running in a VPC.
aws-java-sdk-opsworks/src/main/java/com/amazonaws/services/opsworks/model/Instance.java