@Generated(value="software.amazon.awssdk:codegen") public final class Resource extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Resource.Builder,Resource>
Describes a resource associated with a resource share.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Resource.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
arn()
The Amazon Resource Name (ARN) of the resource.
|
static Resource.Builder |
builder() |
Instant |
creationTime()
The time when the resource was associated with the resource share.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Instant |
lastUpdatedTime()
The time when the association was last updated.
|
String |
resourceGroupArn()
The ARN of the resource group.
|
String |
resourceShareArn()
The Amazon Resource Name (ARN) of the resource share.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Resource.Builder> |
serializableBuilderClass() |
ResourceStatus |
status()
The status of the resource.
|
String |
statusAsString()
The status of the resource.
|
String |
statusMessage()
A message about the status of the resource.
|
Resource.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
type()
The resource type.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String arn()
The Amazon Resource Name (ARN) of the resource.
public final String type()
The resource type.
public final String resourceShareArn()
The Amazon Resource Name (ARN) of the resource share.
public final String resourceGroupArn()
The ARN of the resource group. This value is returned only if the resource is a resource group.
public final ResourceStatus status()
The status of the resource.
If the service returns an enum value that is not available in the current SDK version, status will
return ResourceStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
ResourceStatuspublic final String statusAsString()
The status of the resource.
If the service returns an enum value that is not available in the current SDK version, status will
return ResourceStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
ResourceStatuspublic final String statusMessage()
A message about the status of the resource.
public final Instant creationTime()
The time when the resource was associated with the resource share.
public final Instant lastUpdatedTime()
The time when the association was last updated.
public Resource.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Resource.Builder,Resource>public static Resource.Builder builder()
public static Class<? extends Resource.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.