@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ResourceMetadata extends Object implements Serializable, Cloneable, StructuredPojo
An object representing metadata for a resource.
Constructor and Description |
---|
ResourceMetadata() |
Modifier and Type | Method and Description |
---|---|
ResourceMetadata |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The full Amazon Resource Name (ARN) for the resource.
|
Date |
getCreatedAt()
The Unix epoch timestamp in seconds for when the cluster was created.
|
Date |
getLastUpdatedAt()
The Unix epoch timestamp in seconds for when the cluster was last updated.
|
String |
getUid()
The unique identifier for the resource.
|
Long |
getVersion()
The version of the resource.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setArn(String arn)
The full Amazon Resource Name (ARN) for the resource.
|
void |
setCreatedAt(Date createdAt)
The Unix epoch timestamp in seconds for when the cluster was created.
|
void |
setLastUpdatedAt(Date lastUpdatedAt)
The Unix epoch timestamp in seconds for when the cluster was last updated.
|
void |
setUid(String uid)
The unique identifier for the resource.
|
void |
setVersion(Long version)
The version of the resource.
|
String |
toString()
Returns a string representation of this object.
|
ResourceMetadata |
withArn(String arn)
The full Amazon Resource Name (ARN) for the resource.
|
ResourceMetadata |
withCreatedAt(Date createdAt)
The Unix epoch timestamp in seconds for when the cluster was created.
|
ResourceMetadata |
withLastUpdatedAt(Date lastUpdatedAt)
The Unix epoch timestamp in seconds for when the cluster was last updated.
|
ResourceMetadata |
withUid(String uid)
The unique identifier for the resource.
|
ResourceMetadata |
withVersion(Long version)
The version of the resource.
|
public void setArn(String arn)
The full Amazon Resource Name (ARN) for the resource.
After you create a virtual node, set this value (either the full ARN or the truncated resource name, for example,
mesh/default/virtualNode/simpleapp
, as the APPMESH_VIRTUAL_NODE_NAME
environment
variable for your task group's Envoy proxy container in your task definition or pod spec. This is then mapped to
the node.id
and node.cluster
Envoy parameters.
If you require your Envoy stats or tracing to use a different name, you can override the
node.cluster
value that is set by APPMESH_VIRTUAL_NODE_NAME
with the
APPMESH_VIRTUAL_NODE_CLUSTER
environment variable.
arn
- The full Amazon Resource Name (ARN) for the resource.
After you create a virtual node, set this value (either the full ARN or the truncated resource name, for
example, mesh/default/virtualNode/simpleapp
, as the APPMESH_VIRTUAL_NODE_NAME
environment variable for your task group's Envoy proxy container in your task definition or pod spec. This
is then mapped to the node.id
and node.cluster
Envoy parameters.
If you require your Envoy stats or tracing to use a different name, you can override the
node.cluster
value that is set by APPMESH_VIRTUAL_NODE_NAME
with the
APPMESH_VIRTUAL_NODE_CLUSTER
environment variable.
public String getArn()
The full Amazon Resource Name (ARN) for the resource.
After you create a virtual node, set this value (either the full ARN or the truncated resource name, for example,
mesh/default/virtualNode/simpleapp
, as the APPMESH_VIRTUAL_NODE_NAME
environment
variable for your task group's Envoy proxy container in your task definition or pod spec. This is then mapped to
the node.id
and node.cluster
Envoy parameters.
If you require your Envoy stats or tracing to use a different name, you can override the
node.cluster
value that is set by APPMESH_VIRTUAL_NODE_NAME
with the
APPMESH_VIRTUAL_NODE_CLUSTER
environment variable.
After you create a virtual node, set this value (either the full ARN or the truncated resource name, for
example, mesh/default/virtualNode/simpleapp
, as the APPMESH_VIRTUAL_NODE_NAME
environment variable for your task group's Envoy proxy container in your task definition or pod spec.
This is then mapped to the node.id
and node.cluster
Envoy parameters.
If you require your Envoy stats or tracing to use a different name, you can override the
node.cluster
value that is set by APPMESH_VIRTUAL_NODE_NAME
with the
APPMESH_VIRTUAL_NODE_CLUSTER
environment variable.
public ResourceMetadata withArn(String arn)
The full Amazon Resource Name (ARN) for the resource.
After you create a virtual node, set this value (either the full ARN or the truncated resource name, for example,
mesh/default/virtualNode/simpleapp
, as the APPMESH_VIRTUAL_NODE_NAME
environment
variable for your task group's Envoy proxy container in your task definition or pod spec. This is then mapped to
the node.id
and node.cluster
Envoy parameters.
If you require your Envoy stats or tracing to use a different name, you can override the
node.cluster
value that is set by APPMESH_VIRTUAL_NODE_NAME
with the
APPMESH_VIRTUAL_NODE_CLUSTER
environment variable.
arn
- The full Amazon Resource Name (ARN) for the resource.
After you create a virtual node, set this value (either the full ARN or the truncated resource name, for
example, mesh/default/virtualNode/simpleapp
, as the APPMESH_VIRTUAL_NODE_NAME
environment variable for your task group's Envoy proxy container in your task definition or pod spec. This
is then mapped to the node.id
and node.cluster
Envoy parameters.
If you require your Envoy stats or tracing to use a different name, you can override the
node.cluster
value that is set by APPMESH_VIRTUAL_NODE_NAME
with the
APPMESH_VIRTUAL_NODE_CLUSTER
environment variable.
public void setCreatedAt(Date createdAt)
The Unix epoch timestamp in seconds for when the cluster was created.
createdAt
- The Unix epoch timestamp in seconds for when the cluster was created.public Date getCreatedAt()
The Unix epoch timestamp in seconds for when the cluster was created.
public ResourceMetadata withCreatedAt(Date createdAt)
The Unix epoch timestamp in seconds for when the cluster was created.
createdAt
- The Unix epoch timestamp in seconds for when the cluster was created.public void setLastUpdatedAt(Date lastUpdatedAt)
The Unix epoch timestamp in seconds for when the cluster was last updated.
lastUpdatedAt
- The Unix epoch timestamp in seconds for when the cluster was last updated.public Date getLastUpdatedAt()
The Unix epoch timestamp in seconds for when the cluster was last updated.
public ResourceMetadata withLastUpdatedAt(Date lastUpdatedAt)
The Unix epoch timestamp in seconds for when the cluster was last updated.
lastUpdatedAt
- The Unix epoch timestamp in seconds for when the cluster was last updated.public void setUid(String uid)
The unique identifier for the resource.
uid
- The unique identifier for the resource.public String getUid()
The unique identifier for the resource.
public ResourceMetadata withUid(String uid)
The unique identifier for the resource.
uid
- The unique identifier for the resource.public void setVersion(Long version)
The version of the resource. Resources are created at version 1, and this version is incremented each time they are updated.
version
- The version of the resource. Resources are created at version 1, and this version is incremented each time
they are updated.public Long getVersion()
The version of the resource. Resources are created at version 1, and this version is incremented each time they are updated.
public ResourceMetadata withVersion(Long version)
The version of the resource. Resources are created at version 1, and this version is incremented each time they are updated.
version
- The version of the resource. Resources are created at version 1, and this version is incremented each time
they are updated.public String toString()
toString
in class Object
Object.toString()
public ResourceMetadata clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.