public DirectoryServiceAuthenticationRequest withDirectoryId(String directoryId) {
        setDirectoryId(directoryId);
        return this;
    }
<p>
The ID of the Active Directory to be used for authentication.
</p>

@param directoryId
       The ID of the Active Directory to be used for authentication.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/DirectoryServiceAuthenticationRequest.java