@Generated(value="software.amazon.awssdk:codegen") public final class ResourceShare extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ResourceShare.Builder,ResourceShare>
Describes a resource share.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ResourceShare.Builder |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
allowExternalPrincipals()
Indicates whether principals outside your AWS organization can be associated with a resource share.
|
static ResourceShare.Builder |
builder() |
Instant |
creationTime()
The time when the resource share was created.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
ResourceShareFeatureSet |
featureSet()
Indicates how the resource share was created.
|
String |
featureSetAsString()
Indicates how the resource share was created.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasTags()
Returns true if the Tags property was specified by the sender (it may be empty), or false if the sender did not
specify the value (it will be empty).
|
Instant |
lastUpdatedTime()
The time when the resource share was last updated.
|
String |
name()
The name of the resource share.
|
String |
owningAccountId()
The ID of the AWS account that owns the resource share.
|
String |
resourceShareArn()
The Amazon Resource Name (ARN) of the resource share.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends ResourceShare.Builder> |
serializableBuilderClass() |
ResourceShareStatus |
status()
The status of the resource share.
|
String |
statusAsString()
The status of the resource share.
|
String |
statusMessage()
A message about the status of the resource share.
|
List<Tag> |
tags()
The tags for the resource share.
|
ResourceShare.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String resourceShareArn()
The Amazon Resource Name (ARN) of the resource share.
public final String name()
The name of the resource share.
public final String owningAccountId()
The ID of the AWS account that owns the resource share.
public final Boolean allowExternalPrincipals()
Indicates whether principals outside your AWS organization can be associated with a resource share.
public final ResourceShareStatus status()
The status of the resource share.
If the service returns an enum value that is not available in the current SDK version, status will
return ResourceShareStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from statusAsString().
ResourceShareStatuspublic final String statusAsString()
The status of the resource share.
If the service returns an enum value that is not available in the current SDK version, status will
return ResourceShareStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from statusAsString().
ResourceShareStatuspublic final String statusMessage()
A message about the status of the resource share.
public final boolean hasTags()
public final List<Tag> tags()
The tags for the resource share.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasTags() to see if a value was sent in this field.
public final Instant creationTime()
The time when the resource share was created.
public final Instant lastUpdatedTime()
The time when the resource share was last updated.
public final ResourceShareFeatureSet featureSet()
Indicates how the resource share was created. Possible values include:
CREATED_FROM_POLICY - Indicates that the resource share was created from an AWS Identity and Access
Management (AWS IAM) policy attached to a resource. These resource shares are visible only to the AWS account
that created it. They cannot be modified in AWS RAM.
PROMOTING_TO_STANDARD - The resource share is in the process of being promoted. For more
information, see PromoteResourceShareCreatedFromPolicy.
STANDARD - Indicates that the resource share was created in AWS RAM using the console or APIs. These
resource shares are visible to all principals. They can be modified in AWS RAM.
If the service returns an enum value that is not available in the current SDK version, featureSet will
return ResourceShareFeatureSet.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from featureSetAsString().
CREATED_FROM_POLICY - Indicates that the resource share was created from an AWS Identity and
Access Management (AWS IAM) policy attached to a resource. These resource shares are visible only to the
AWS account that created it. They cannot be modified in AWS RAM.
PROMOTING_TO_STANDARD - The resource share is in the process of being promoted. For more
information, see PromoteResourceShareCreatedFromPolicy.
STANDARD - Indicates that the resource share was created in AWS RAM using the console or
APIs. These resource shares are visible to all principals. They can be modified in AWS RAM.
ResourceShareFeatureSetpublic final String featureSetAsString()
Indicates how the resource share was created. Possible values include:
CREATED_FROM_POLICY - Indicates that the resource share was created from an AWS Identity and Access
Management (AWS IAM) policy attached to a resource. These resource shares are visible only to the AWS account
that created it. They cannot be modified in AWS RAM.
PROMOTING_TO_STANDARD - The resource share is in the process of being promoted. For more
information, see PromoteResourceShareCreatedFromPolicy.
STANDARD - Indicates that the resource share was created in AWS RAM using the console or APIs. These
resource shares are visible to all principals. They can be modified in AWS RAM.
If the service returns an enum value that is not available in the current SDK version, featureSet will
return ResourceShareFeatureSet.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from featureSetAsString().
CREATED_FROM_POLICY - Indicates that the resource share was created from an AWS Identity and
Access Management (AWS IAM) policy attached to a resource. These resource shares are visible only to the
AWS account that created it. They cannot be modified in AWS RAM.
PROMOTING_TO_STANDARD - The resource share is in the process of being promoted. For more
information, see PromoteResourceShareCreatedFromPolicy.
STANDARD - Indicates that the resource share was created in AWS RAM using the console or
APIs. These resource shares are visible to all principals. They can be modified in AWS RAM.
ResourceShareFeatureSetpublic ResourceShare.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<ResourceShare.Builder,ResourceShare>public static ResourceShare.Builder builder()
public static Class<? extends ResourceShare.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.