public GetEnvironmentResult withTransitGatewayId(String transitGatewayId) {
        setTransitGatewayId(transitGatewayId);
        return this;
    }
<p>
The ID of the Transit Gateway set up by the environment, if applicable.
</p>

@param transitGatewayId
       The ID of the Transit Gateway set up by the environment, if applicable.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-migrationhubrefactorspaces/src/main/java/com/amazonaws/services/migrationhubrefactorspaces/model/GetEnvironmentResult.java