Class ShareDirectoryRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.directory.model.DirectoryRequest
-
- software.amazon.awssdk.services.directory.model.ShareDirectoryRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<ShareDirectoryRequest.Builder,ShareDirectoryRequest>
@Generated("software.amazon.awssdk:codegen") public final class ShareDirectoryRequest extends DirectoryRequest implements ToCopyableBuilder<ShareDirectoryRequest.Builder,ShareDirectoryRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceShareDirectoryRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ShareDirectoryRequest.Builderbuilder()StringdirectoryId()Identifier of the Managed Microsoft AD directory that you want to share with other Amazon Web Services accounts.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends ShareDirectoryRequest.Builder>serializableBuilderClass()ShareMethodshareMethod()The method used when sharing a directory to determine whether the directory should be shared within your Amazon Web Services organization (ORGANIZATIONS) or with any Amazon Web Services account by sending a directory sharing request (HANDSHAKE).StringshareMethodAsString()The method used when sharing a directory to determine whether the directory should be shared within your Amazon Web Services organization (ORGANIZATIONS) or with any Amazon Web Services account by sending a directory sharing request (HANDSHAKE).StringshareNotes()A directory share request that is sent by the directory owner to the directory consumer.ShareTargetshareTarget()Identifier for the directory consumer account with whom the directory is to be shared.ShareDirectoryRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
directoryId
public final String directoryId()
Identifier of the Managed Microsoft AD directory that you want to share with other Amazon Web Services accounts.
- Returns:
- Identifier of the Managed Microsoft AD directory that you want to share with other Amazon Web Services accounts.
-
shareNotes
public final String shareNotes()
A directory share request that is sent by the directory owner to the directory consumer. The request includes a typed message to help the directory consumer administrator determine whether to approve or reject the share invitation.
- Returns:
- A directory share request that is sent by the directory owner to the directory consumer. The request includes a typed message to help the directory consumer administrator determine whether to approve or reject the share invitation.
-
shareTarget
public final ShareTarget shareTarget()
Identifier for the directory consumer account with whom the directory is to be shared.
- Returns:
- Identifier for the directory consumer account with whom the directory is to be shared.
-
shareMethod
public final ShareMethod shareMethod()
The method used when sharing a directory to determine whether the directory should be shared within your Amazon Web Services organization (
ORGANIZATIONS) or with any Amazon Web Services account by sending a directory sharing request (HANDSHAKE).If the service returns an enum value that is not available in the current SDK version,
shareMethodwill returnShareMethod.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromshareMethodAsString().- Returns:
- The method used when sharing a directory to determine whether the directory should be shared within your
Amazon Web Services organization (
ORGANIZATIONS) or with any Amazon Web Services account by sending a directory sharing request (HANDSHAKE). - See Also:
ShareMethod
-
shareMethodAsString
public final String shareMethodAsString()
The method used when sharing a directory to determine whether the directory should be shared within your Amazon Web Services organization (
ORGANIZATIONS) or with any Amazon Web Services account by sending a directory sharing request (HANDSHAKE).If the service returns an enum value that is not available in the current SDK version,
shareMethodwill returnShareMethod.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromshareMethodAsString().- Returns:
- The method used when sharing a directory to determine whether the directory should be shared within your
Amazon Web Services organization (
ORGANIZATIONS) or with any Amazon Web Services account by sending a directory sharing request (HANDSHAKE). - See Also:
ShareMethod
-
toBuilder
public ShareDirectoryRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ShareDirectoryRequest.Builder,ShareDirectoryRequest>- Specified by:
toBuilderin classDirectoryRequest
-
builder
public static ShareDirectoryRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends ShareDirectoryRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
-