public GatewayInstance withInstanceMessages(java.util.Collection<MessageDetail> instanceMessages) {
        setInstanceMessages(instanceMessages);
        return this;
    }
@param instanceMessages
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-mediaconnect/src/main/java/com/amazonaws/services/mediaconnect/model/GatewayInstance.java