public void setShareMethod(String shareMethod) {
        this.shareMethod = shareMethod;
    }
<p>
The method used when sharing a directory to determine whether the directory should be shared within your Amazon
Web Services organization (<code>ORGANIZATIONS</code>) or with any Amazon Web Services account by sending a
directory sharing request (<code>HANDSHAKE</code>).
</p>

@param shareMethod
       The method used when sharing a directory to determine whether the directory should be shared within your
       Amazon Web Services organization (<code>ORGANIZATIONS</code>) or with any Amazon Web Services account by
       sending a directory sharing request (<code>HANDSHAKE</code>).
@see ShareMethod
aws-java-sdk-directory/src/main/java/com/amazonaws/services/directory/model/ShareDirectoryRequest.java