public CommandInvocation withDocumentName(String documentName) {
        setDocumentName(documentName);
        return this;
    }
<p>
The document name that was requested for execution.
</p>

@param documentName
       The document name that was requested for execution.
@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/CommandInvocation.java