@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 in RAM.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Resource.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
arn()
The Amazon Resoure Name
(ARN) of the resource.
|
static Resource.Builder |
builder() |
Instant |
creationTime()
The date and 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 date an time when the association was last updated.
|
String |
resourceGroupArn()
The Amazon Resoure Name
(ARN) of the resource group.
|
ResourceRegionScope |
resourceRegionScope()
Specifies the scope of visibility of this resource:
|
String |
resourceRegionScopeAsString()
Specifies the scope of visibility of this resource:
|
String |
resourceShareArn()
The Amazon Resoure Name
(ARN) of the resource share this resource is associated with.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Resource.Builder> |
serializableBuilderClass() |
ResourceStatus |
status()
The current status of the resource.
|
String |
statusAsString()
The current 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 Resoure Name (ARN) of the resource.
public final String type()
The resource type. This takes the form of: service-code:resource-code
service-code:resource-codepublic final String resourceShareArn()
The Amazon Resoure Name (ARN) of the resource share this resource is associated with.
public final String resourceGroupArn()
The Amazon Resoure Name (ARN) of the resource group. This value is available only if the resource is part of a resource group.
public final ResourceStatus status()
The current 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 current 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 date and time when the resource was associated with the resource share.
public final Instant lastUpdatedTime()
The date an time when the association was last updated.
public final ResourceRegionScope resourceRegionScope()
Specifies the scope of visibility of this resource:
REGIONAL – The resource can be accessed only by using requests that target the Amazon Web Services Region in which the resource exists.
GLOBAL – The resource can be accessed from any Amazon Web Services Region.
If the service returns an enum value that is not available in the current SDK version,
resourceRegionScope will return ResourceRegionScope.UNKNOWN_TO_SDK_VERSION. The raw value
returned by the service is available from resourceRegionScopeAsString().
REGIONAL – The resource can be accessed only by using requests that target the Amazon Web Services Region in which the resource exists.
GLOBAL – The resource can be accessed from any Amazon Web Services Region.
ResourceRegionScopepublic final String resourceRegionScopeAsString()
Specifies the scope of visibility of this resource:
REGIONAL – The resource can be accessed only by using requests that target the Amazon Web Services Region in which the resource exists.
GLOBAL – The resource can be accessed from any Amazon Web Services Region.
If the service returns an enum value that is not available in the current SDK version,
resourceRegionScope will return ResourceRegionScope.UNKNOWN_TO_SDK_VERSION. The raw value
returned by the service is available from resourceRegionScopeAsString().
REGIONAL – The resource can be accessed only by using requests that target the Amazon Web Services Region in which the resource exists.
GLOBAL – The resource can be accessed from any Amazon Web Services Region.
ResourceRegionScopepublic 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 © 2022. All rights reserved.