@Generated(value="software.amazon.awssdk:codegen") public final class ResourceMetadata extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ResourceMetadata.Builder,ResourceMetadata>
An object that represents metadata for a resource.
Modifier and Type | Class and Description |
---|---|
static interface |
ResourceMetadata.Builder |
Modifier and Type | Method and Description |
---|---|
String |
arn()
The full Amazon Resource Name (ARN) for the resource.
|
static ResourceMetadata.Builder |
builder() |
Instant |
createdAt()
The Unix epoch timestamp in seconds for when the resource 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 |
lastUpdatedAt()
The Unix epoch timestamp in seconds for when the resource was last updated.
|
String |
meshOwner()
The AWS IAM account ID of the service mesh owner.
|
String |
resourceOwner()
The AWS IAM account ID of the resource owner.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends ResourceMetadata.Builder> |
serializableBuilderClass() |
ResourceMetadata.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.
|
String |
uid()
The unique identifier for the resource.
|
Long |
version()
The version of the resource.
|
copy
public final String arn()
The full Amazon Resource Name (ARN) for the resource.
public final Instant createdAt()
The Unix epoch timestamp in seconds for when the resource was created.
public final Instant lastUpdatedAt()
The Unix epoch timestamp in seconds for when the resource was last updated.
public final String meshOwner()
The AWS IAM account ID of the service mesh owner. If the account ID is not your own, then it's the ID of the account that shared the mesh with your account. For more information about mesh sharing, see Working with shared meshes.
public final String resourceOwner()
The AWS IAM account ID of the resource owner. If the account ID is not your own, then it's the ID of the mesh owner or of another account that the mesh is shared with. For more information about mesh sharing, see Working with shared meshes.
public final String uid()
The unique identifier for the resource.
public final Long version()
The version of the resource. Resources are created at version 1, and this version is incremented each time that they're updated.
public ResourceMetadata.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<ResourceMetadata.Builder,ResourceMetadata>
public static ResourceMetadata.Builder builder()
public static Class<? extends ResourceMetadata.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()