@Generated(value="software.amazon.awssdk:codegen") public final class SharedDirectory extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SharedDirectory.Builder,SharedDirectory>
Details about the shared directory in the directory owner account for which the share request in the directory consumer account has been accepted.
Modifier and Type | Class and Description |
---|---|
static interface |
SharedDirectory.Builder |
Modifier and Type | Method and Description |
---|---|
static SharedDirectory.Builder |
builder() |
Instant |
createdDateTime()
The date and time that the shared directory was created.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj)
Indicates whether some other object is "equal to" this one by SDK fields.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Instant |
lastUpdatedDateTime()
The date and time that the shared directory was last updated.
|
String |
ownerAccountId()
Identifier of the directory owner account, which contains the directory that has been shared to the consumer
account.
|
String |
ownerDirectoryId()
Identifier of the directory in the directory owner account.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends SharedDirectory.Builder> |
serializableBuilderClass() |
String |
sharedAccountId()
Identifier of the directory consumer account that has access to the shared directory (
OwnerDirectoryId ) in the directory owner account. |
String |
sharedDirectoryId()
Identifier of the shared directory in the directory consumer account.
|
ShareMethod |
shareMethod()
The method used when sharing a directory to determine whether the directory should be shared within your AWS
organization (
ORGANIZATIONS ) or with any AWS account by sending a shared directory request (
HANDSHAKE ). |
String |
shareMethodAsString()
The method used when sharing a directory to determine whether the directory should be shared within your AWS
organization (
ORGANIZATIONS ) or with any AWS account by sending a shared directory request (
HANDSHAKE ). |
String |
shareNotes()
A directory share request that is sent by the directory owner to the directory consumer.
|
ShareStatus |
shareStatus()
Current directory status of the shared AWS Managed Microsoft AD directory.
|
String |
shareStatusAsString()
Current directory status of the shared AWS Managed Microsoft AD directory.
|
SharedDirectory.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString()
Returns a string representation of this object.
|
copy
public final String ownerAccountId()
Identifier of the directory owner account, which contains the directory that has been shared to the consumer account.
public final String ownerDirectoryId()
Identifier of the directory in the directory owner account.
public final ShareMethod shareMethod()
The method used when sharing a directory to determine whether the directory should be shared within your AWS
organization (ORGANIZATIONS
) or with any AWS account by sending a shared directory request (
HANDSHAKE
).
If the service returns an enum value that is not available in the current SDK version, shareMethod
will
return ShareMethod.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
shareMethodAsString()
.
ORGANIZATIONS
) or with any AWS account by sending a shared directory
request (HANDSHAKE
).ShareMethod
public final String shareMethodAsString()
The method used when sharing a directory to determine whether the directory should be shared within your AWS
organization (ORGANIZATIONS
) or with any AWS account by sending a shared directory request (
HANDSHAKE
).
If the service returns an enum value that is not available in the current SDK version, shareMethod
will
return ShareMethod.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
shareMethodAsString()
.
ORGANIZATIONS
) or with any AWS account by sending a shared directory
request (HANDSHAKE
).ShareMethod
public final String sharedAccountId()
Identifier of the directory consumer account that has access to the shared directory (
OwnerDirectoryId
) in the directory owner account.
OwnerDirectoryId
) in the directory owner account.public final String sharedDirectoryId()
Identifier of the shared directory in the directory consumer account. This identifier is different for each directory owner account.
public final ShareStatus shareStatus()
Current directory status of the shared AWS Managed Microsoft AD directory.
If the service returns an enum value that is not available in the current SDK version, shareStatus
will
return ShareStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
shareStatusAsString()
.
ShareStatus
public final String shareStatusAsString()
Current directory status of the shared AWS Managed Microsoft AD directory.
If the service returns an enum value that is not available in the current SDK version, shareStatus
will
return ShareStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
shareStatusAsString()
.
ShareStatus
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.
public final Instant createdDateTime()
The date and time that the shared directory was created.
public final Instant lastUpdatedDateTime()
The date and time that the shared directory was last updated.
public SharedDirectory.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<SharedDirectory.Builder,SharedDirectory>
public static SharedDirectory.Builder builder()
public static Class<? extends SharedDirectory.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
SdkPojo
SdkPojo
class,
and is generated based on a service model.
If an SdkPojo
class does not have any inherited fields, equalsBySdkFields
and equals
are essentially the same.
equalsBySdkFields
in interface SdkPojo
obj
- the object to be compared withpublic final String toString()
Copyright © 2021 Amazon Web Services, Inc. All Rights Reserved.