public ShareDirectoryResult withSharedDirectoryId(String sharedDirectoryId) {
        setSharedDirectoryId(sharedDirectoryId);
        return this;
    }
<p>
Identifier of the directory that is stored in the directory consumer account that is shared from the specified
directory (<code>DirectoryId</code>).
</p>

@param sharedDirectoryId
       Identifier of the directory that is stored in the directory consumer account that is shared from the
       specified directory (<code>DirectoryId</code>).
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-directory/src/main/java/com/amazonaws/services/directory/model/ShareDirectoryResult.java