public StartSessionRequest withDocumentName(String documentName) {
        setDocumentName(documentName);
        return this;
    }
<p>
The name of the SSM document you want to use to define the type of session, input parameters, or preferences for
the session. For example, <code>SSM-SessionManagerRunShell</code>. You can call the <a>GetDocument</a> API to
verify the document exists before attempting to start a session. If no document name is provided, a shell to the
managed node is launched by default. For more information, see <a href=
"https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-working-with-sessions-start.html"
>Start a session</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.
</p>

@param documentName
       The name of the SSM document you want to use to define the type of session, input parameters, or
       preferences for the session. For example, <code>SSM-SessionManagerRunShell</code>. You can call the
       <a>GetDocument</a> API to verify the document exists before attempting to start a session. If no document
       name is provided, a shell to the managed node is launched by default. For more information, see <a href=
       "https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-working-with-sessions-start.html"
       >Start a session</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.
@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/StartSessionRequest.java