@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LifecycleExecutionResource extends Object implements Serializable, Cloneable, StructuredPojo
Contains details for a resource that the runtime instance of the lifecycle policy identified for action.
Constructor and Description |
---|
LifecycleExecutionResource() |
Modifier and Type | Method and Description |
---|---|
LifecycleExecutionResource |
clone() |
boolean |
equals(Object obj) |
String |
getAccountId()
The account that owns the impacted resource.
|
LifecycleExecutionResourceAction |
getAction()
The action to take for the identified resource.
|
Date |
getEndTime()
The ending timestamp from the lifecycle action that was applied to the resource.
|
List<String> |
getImageUris()
For an impacted container image, this identifies a list of URIs for associated container images distributed to
ECR repositories.
|
String |
getRegion()
The Amazon Web Services Region where the lifecycle execution resource is stored.
|
String |
getResourceId()
Identifies the impacted resource.
|
List<LifecycleExecutionSnapshotResource> |
getSnapshots()
A list of associated resource snapshots for the impacted resource if it’s an AMI.
|
Date |
getStartTime()
The starting timestamp from the lifecycle action that was applied to the resource.
|
LifecycleExecutionResourceState |
getState()
The runtime state for the lifecycle execution.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAccountId(String accountId)
The account that owns the impacted resource.
|
void |
setAction(LifecycleExecutionResourceAction action)
The action to take for the identified resource.
|
void |
setEndTime(Date endTime)
The ending timestamp from the lifecycle action that was applied to the resource.
|
void |
setImageUris(Collection<String> imageUris)
For an impacted container image, this identifies a list of URIs for associated container images distributed to
ECR repositories.
|
void |
setRegion(String region)
The Amazon Web Services Region where the lifecycle execution resource is stored.
|
void |
setResourceId(String resourceId)
Identifies the impacted resource.
|
void |
setSnapshots(Collection<LifecycleExecutionSnapshotResource> snapshots)
A list of associated resource snapshots for the impacted resource if it’s an AMI.
|
void |
setStartTime(Date startTime)
The starting timestamp from the lifecycle action that was applied to the resource.
|
void |
setState(LifecycleExecutionResourceState state)
The runtime state for the lifecycle execution.
|
String |
toString()
Returns a string representation of this object.
|
LifecycleExecutionResource |
withAccountId(String accountId)
The account that owns the impacted resource.
|
LifecycleExecutionResource |
withAction(LifecycleExecutionResourceAction action)
The action to take for the identified resource.
|
LifecycleExecutionResource |
withEndTime(Date endTime)
The ending timestamp from the lifecycle action that was applied to the resource.
|
LifecycleExecutionResource |
withImageUris(Collection<String> imageUris)
For an impacted container image, this identifies a list of URIs for associated container images distributed to
ECR repositories.
|
LifecycleExecutionResource |
withImageUris(String... imageUris)
For an impacted container image, this identifies a list of URIs for associated container images distributed to
ECR repositories.
|
LifecycleExecutionResource |
withRegion(String region)
The Amazon Web Services Region where the lifecycle execution resource is stored.
|
LifecycleExecutionResource |
withResourceId(String resourceId)
Identifies the impacted resource.
|
LifecycleExecutionResource |
withSnapshots(Collection<LifecycleExecutionSnapshotResource> snapshots)
A list of associated resource snapshots for the impacted resource if it’s an AMI.
|
LifecycleExecutionResource |
withSnapshots(LifecycleExecutionSnapshotResource... snapshots)
A list of associated resource snapshots for the impacted resource if it’s an AMI.
|
LifecycleExecutionResource |
withStartTime(Date startTime)
The starting timestamp from the lifecycle action that was applied to the resource.
|
LifecycleExecutionResource |
withState(LifecycleExecutionResourceState state)
The runtime state for the lifecycle execution.
|
public void setAccountId(String accountId)
The account that owns the impacted resource.
accountId
- The account that owns the impacted resource.public String getAccountId()
The account that owns the impacted resource.
public LifecycleExecutionResource withAccountId(String accountId)
The account that owns the impacted resource.
accountId
- The account that owns the impacted resource.public void setResourceId(String resourceId)
Identifies the impacted resource. The resource ID depends on the type of resource, as follows.
Image Builder image resources: Amazon Resource Name (ARN)
Distributed AMIs: AMI ID
Container images distributed to an ECR repository: image URI or SHA Digest
resourceId
- Identifies the impacted resource. The resource ID depends on the type of resource, as follows.
Image Builder image resources: Amazon Resource Name (ARN)
Distributed AMIs: AMI ID
Container images distributed to an ECR repository: image URI or SHA Digest
public String getResourceId()
Identifies the impacted resource. The resource ID depends on the type of resource, as follows.
Image Builder image resources: Amazon Resource Name (ARN)
Distributed AMIs: AMI ID
Container images distributed to an ECR repository: image URI or SHA Digest
Image Builder image resources: Amazon Resource Name (ARN)
Distributed AMIs: AMI ID
Container images distributed to an ECR repository: image URI or SHA Digest
public LifecycleExecutionResource withResourceId(String resourceId)
Identifies the impacted resource. The resource ID depends on the type of resource, as follows.
Image Builder image resources: Amazon Resource Name (ARN)
Distributed AMIs: AMI ID
Container images distributed to an ECR repository: image URI or SHA Digest
resourceId
- Identifies the impacted resource. The resource ID depends on the type of resource, as follows.
Image Builder image resources: Amazon Resource Name (ARN)
Distributed AMIs: AMI ID
Container images distributed to an ECR repository: image URI or SHA Digest
public void setState(LifecycleExecutionResourceState state)
The runtime state for the lifecycle execution.
state
- The runtime state for the lifecycle execution.public LifecycleExecutionResourceState getState()
The runtime state for the lifecycle execution.
public LifecycleExecutionResource withState(LifecycleExecutionResourceState state)
The runtime state for the lifecycle execution.
state
- The runtime state for the lifecycle execution.public void setAction(LifecycleExecutionResourceAction action)
The action to take for the identified resource.
action
- The action to take for the identified resource.public LifecycleExecutionResourceAction getAction()
The action to take for the identified resource.
public LifecycleExecutionResource withAction(LifecycleExecutionResourceAction action)
The action to take for the identified resource.
action
- The action to take for the identified resource.public void setRegion(String region)
The Amazon Web Services Region where the lifecycle execution resource is stored.
region
- The Amazon Web Services Region where the lifecycle execution resource is stored.public String getRegion()
The Amazon Web Services Region where the lifecycle execution resource is stored.
public LifecycleExecutionResource withRegion(String region)
The Amazon Web Services Region where the lifecycle execution resource is stored.
region
- The Amazon Web Services Region where the lifecycle execution resource is stored.public List<LifecycleExecutionSnapshotResource> getSnapshots()
A list of associated resource snapshots for the impacted resource if it’s an AMI.
public void setSnapshots(Collection<LifecycleExecutionSnapshotResource> snapshots)
A list of associated resource snapshots for the impacted resource if it’s an AMI.
snapshots
- A list of associated resource snapshots for the impacted resource if it’s an AMI.public LifecycleExecutionResource withSnapshots(LifecycleExecutionSnapshotResource... snapshots)
A list of associated resource snapshots for the impacted resource if it’s an AMI.
NOTE: This method appends the values to the existing list (if any). Use
setSnapshots(java.util.Collection)
or withSnapshots(java.util.Collection)
if you want to
override the existing values.
snapshots
- A list of associated resource snapshots for the impacted resource if it’s an AMI.public LifecycleExecutionResource withSnapshots(Collection<LifecycleExecutionSnapshotResource> snapshots)
A list of associated resource snapshots for the impacted resource if it’s an AMI.
snapshots
- A list of associated resource snapshots for the impacted resource if it’s an AMI.public List<String> getImageUris()
For an impacted container image, this identifies a list of URIs for associated container images distributed to ECR repositories.
public void setImageUris(Collection<String> imageUris)
For an impacted container image, this identifies a list of URIs for associated container images distributed to ECR repositories.
imageUris
- For an impacted container image, this identifies a list of URIs for associated container images
distributed to ECR repositories.public LifecycleExecutionResource withImageUris(String... imageUris)
For an impacted container image, this identifies a list of URIs for associated container images distributed to ECR repositories.
NOTE: This method appends the values to the existing list (if any). Use
setImageUris(java.util.Collection)
or withImageUris(java.util.Collection)
if you want to
override the existing values.
imageUris
- For an impacted container image, this identifies a list of URIs for associated container images
distributed to ECR repositories.public LifecycleExecutionResource withImageUris(Collection<String> imageUris)
For an impacted container image, this identifies a list of URIs for associated container images distributed to ECR repositories.
imageUris
- For an impacted container image, this identifies a list of URIs for associated container images
distributed to ECR repositories.public void setStartTime(Date startTime)
The starting timestamp from the lifecycle action that was applied to the resource.
startTime
- The starting timestamp from the lifecycle action that was applied to the resource.public Date getStartTime()
The starting timestamp from the lifecycle action that was applied to the resource.
public LifecycleExecutionResource withStartTime(Date startTime)
The starting timestamp from the lifecycle action that was applied to the resource.
startTime
- The starting timestamp from the lifecycle action that was applied to the resource.public void setEndTime(Date endTime)
The ending timestamp from the lifecycle action that was applied to the resource.
endTime
- The ending timestamp from the lifecycle action that was applied to the resource.public Date getEndTime()
The ending timestamp from the lifecycle action that was applied to the resource.
public LifecycleExecutionResource withEndTime(Date endTime)
The ending timestamp from the lifecycle action that was applied to the resource.
endTime
- The ending timestamp from the lifecycle action that was applied to the resource.public String toString()
toString
in class Object
Object.toString()
public LifecycleExecutionResource clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.