public GetCommandInvocationRequest withInstanceId(String instanceId) {
        setInstanceId(instanceId);
        return this;
    }
<p>
(Required) The ID of the managed node targeted by the command. A <i>managed node</i> can be an Amazon Elastic
Compute Cloud (Amazon EC2) instance, edge device, and on-premises server or VM in your hybrid environment that is
configured for Amazon Web Services Systems Manager.
</p>

@param instanceId
       (Required) The ID of the managed node targeted by the command. A <i>managed node</i> can be an Amazon
       Elastic Compute Cloud (Amazon EC2) instance, edge device, and on-premises server or VM in your hybrid
       environment that is configured for Amazon Web Services Systems Manager.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ssm/src/main/java/com/amazonaws/services/simplesystemsmanagement/model/GetCommandInvocationRequest.java