public NetworkInterface withSubnetId(String subnetId) {
        setSubnetId(subnetId);
        return this;
    }
<p>
The ID of the subnet.
</p>

@param subnetId
       The ID of the subnet.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-codebuild/src/main/java/com/amazonaws/services/codebuild/model/NetworkInterface.java