@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class InstanceTarget extends Object implements Serializable, Cloneable, StructuredPojo
A target Amazon EC2 or on-premises instance during a deployment that uses the EC2/On-premises compute platform.
Constructor and Description |
---|
InstanceTarget() |
Modifier and Type | Method and Description |
---|---|
InstanceTarget |
clone() |
boolean |
equals(Object obj) |
String |
getDeploymentId()
The unique ID of a deployment.
|
String |
getInstanceLabel()
A label that identifies whether the instance is an original target (
BLUE ) or a replacement target (
GREEN ). |
Date |
getLastUpdatedAt()
The date and time when the target instance was updated by a deployment.
|
List<LifecycleEvent> |
getLifecycleEvents()
The lifecycle events of the deployment to this target instance.
|
String |
getStatus()
The status an EC2/On-premises deployment's target instance.
|
String |
getTargetArn()
The ARN of the target.
|
String |
getTargetId()
The unique ID of a deployment target that has a type of
instanceTarget . |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setDeploymentId(String deploymentId)
The unique ID of a deployment.
|
void |
setInstanceLabel(String instanceLabel)
A label that identifies whether the instance is an original target (
BLUE ) or a replacement target (
GREEN ). |
void |
setLastUpdatedAt(Date lastUpdatedAt)
The date and time when the target instance was updated by a deployment.
|
void |
setLifecycleEvents(Collection<LifecycleEvent> lifecycleEvents)
The lifecycle events of the deployment to this target instance.
|
void |
setStatus(String status)
The status an EC2/On-premises deployment's target instance.
|
void |
setTargetArn(String targetArn)
The ARN of the target.
|
void |
setTargetId(String targetId)
The unique ID of a deployment target that has a type of
instanceTarget . |
String |
toString()
Returns a string representation of this object.
|
InstanceTarget |
withDeploymentId(String deploymentId)
The unique ID of a deployment.
|
InstanceTarget |
withInstanceLabel(String instanceLabel)
A label that identifies whether the instance is an original target (
BLUE ) or a replacement target (
GREEN ). |
InstanceTarget |
withInstanceLabel(TargetLabel instanceLabel)
A label that identifies whether the instance is an original target (
BLUE ) or a replacement target (
GREEN ). |
InstanceTarget |
withLastUpdatedAt(Date lastUpdatedAt)
The date and time when the target instance was updated by a deployment.
|
InstanceTarget |
withLifecycleEvents(Collection<LifecycleEvent> lifecycleEvents)
The lifecycle events of the deployment to this target instance.
|
InstanceTarget |
withLifecycleEvents(LifecycleEvent... lifecycleEvents)
The lifecycle events of the deployment to this target instance.
|
InstanceTarget |
withStatus(String status)
The status an EC2/On-premises deployment's target instance.
|
InstanceTarget |
withStatus(TargetStatus status)
The status an EC2/On-premises deployment's target instance.
|
InstanceTarget |
withTargetArn(String targetArn)
The ARN of the target.
|
InstanceTarget |
withTargetId(String targetId)
The unique ID of a deployment target that has a type of
instanceTarget . |
public void setDeploymentId(String deploymentId)
The unique ID of a deployment.
deploymentId
- The unique ID of a deployment.public String getDeploymentId()
The unique ID of a deployment.
public InstanceTarget withDeploymentId(String deploymentId)
The unique ID of a deployment.
deploymentId
- The unique ID of a deployment.public void setTargetId(String targetId)
The unique ID of a deployment target that has a type of instanceTarget
.
targetId
- The unique ID of a deployment target that has a type of instanceTarget
.public String getTargetId()
The unique ID of a deployment target that has a type of instanceTarget
.
instanceTarget
.public InstanceTarget withTargetId(String targetId)
The unique ID of a deployment target that has a type of instanceTarget
.
targetId
- The unique ID of a deployment target that has a type of instanceTarget
.public void setTargetArn(String targetArn)
The ARN of the target.
targetArn
- The ARN of the target.public String getTargetArn()
The ARN of the target.
public InstanceTarget withTargetArn(String targetArn)
The ARN of the target.
targetArn
- The ARN of the target.public void setStatus(String status)
The status an EC2/On-premises deployment's target instance.
status
- The status an EC2/On-premises deployment's target instance.TargetStatus
public String getStatus()
The status an EC2/On-premises deployment's target instance.
TargetStatus
public InstanceTarget withStatus(String status)
The status an EC2/On-premises deployment's target instance.
status
- The status an EC2/On-premises deployment's target instance.TargetStatus
public InstanceTarget withStatus(TargetStatus status)
The status an EC2/On-premises deployment's target instance.
status
- The status an EC2/On-premises deployment's target instance.TargetStatus
public void setLastUpdatedAt(Date lastUpdatedAt)
The date and time when the target instance was updated by a deployment.
lastUpdatedAt
- The date and time when the target instance was updated by a deployment.public Date getLastUpdatedAt()
The date and time when the target instance was updated by a deployment.
public InstanceTarget withLastUpdatedAt(Date lastUpdatedAt)
The date and time when the target instance was updated by a deployment.
lastUpdatedAt
- The date and time when the target instance was updated by a deployment.public List<LifecycleEvent> getLifecycleEvents()
The lifecycle events of the deployment to this target instance.
public void setLifecycleEvents(Collection<LifecycleEvent> lifecycleEvents)
The lifecycle events of the deployment to this target instance.
lifecycleEvents
- The lifecycle events of the deployment to this target instance.public InstanceTarget withLifecycleEvents(LifecycleEvent... lifecycleEvents)
The lifecycle events of the deployment to this target instance.
NOTE: This method appends the values to the existing list (if any). Use
setLifecycleEvents(java.util.Collection)
or withLifecycleEvents(java.util.Collection)
if you
want to override the existing values.
lifecycleEvents
- The lifecycle events of the deployment to this target instance.public InstanceTarget withLifecycleEvents(Collection<LifecycleEvent> lifecycleEvents)
The lifecycle events of the deployment to this target instance.
lifecycleEvents
- The lifecycle events of the deployment to this target instance.public void setInstanceLabel(String instanceLabel)
A label that identifies whether the instance is an original target (BLUE
) or a replacement target (
GREEN
).
instanceLabel
- A label that identifies whether the instance is an original target (BLUE
) or a replacement
target (GREEN
).TargetLabel
public String getInstanceLabel()
A label that identifies whether the instance is an original target (BLUE
) or a replacement target (
GREEN
).
BLUE
) or a replacement
target (GREEN
).TargetLabel
public InstanceTarget withInstanceLabel(String instanceLabel)
A label that identifies whether the instance is an original target (BLUE
) or a replacement target (
GREEN
).
instanceLabel
- A label that identifies whether the instance is an original target (BLUE
) or a replacement
target (GREEN
).TargetLabel
public InstanceTarget withInstanceLabel(TargetLabel instanceLabel)
A label that identifies whether the instance is an original target (BLUE
) or a replacement target (
GREEN
).
instanceLabel
- A label that identifies whether the instance is an original target (BLUE
) or a replacement
target (GREEN
).TargetLabel
public String toString()
toString
in class Object
Object.toString()
public InstanceTarget clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall
in interface StructuredPojo
Copyright © 2019. All rights reserved.