@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) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Instant |
lastUpdatedTime()
The time when the association was last updated.
|
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()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
String |
type()
The resource type.
|
copy
public String arn()
The Amazon Resource Name (ARN) of the resource.
public String type()
The resource type.
public String resourceShareArn()
The Amazon Resource Name (ARN) of the resource share.
public 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()
.
ResourceStatus
public 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()
.
ResourceStatus
public String statusMessage()
A message about the status of the resource.
public Instant creationTime()
The time when the resource was associated with the resource share.
public Instant lastUpdatedTime()
The time when the association was last updated.
public Resource.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Resource.Builder,Resource>
public static Resource.Builder builder()
public static Class<? extends Resource.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.