Class InstanceInfo
- java.lang.Object
-
- com.amazonaws.services.codedeploy.model.InstanceInfo
-
- All Implemented Interfaces:
Serializable,Cloneable
public class InstanceInfo extends Object implements Serializable, Cloneable
Information about an on-premises instance.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InstanceInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InstanceInfoclone()booleanequals(Object obj)DategetDeregisterTime()If the on-premises instance was deregistered, the time at which the on-premises instance was deregistered.StringgetIamUserArn()The IAM user ARN associated with the on-premises instance.StringgetInstanceArn()The ARN of the on-premises instance.StringgetInstanceName()The name of the on-premises instance.DategetRegisterTime()The time at which the on-premises instance was registered.List<Tag>getTags()The tags currently associated with the on-premises instance.inthashCode()voidsetDeregisterTime(Date deregisterTime)If the on-premises instance was deregistered, the time at which the on-premises instance was deregistered.voidsetIamUserArn(String iamUserArn)The IAM user ARN associated with the on-premises instance.voidsetInstanceArn(String instanceArn)The ARN of the on-premises instance.voidsetInstanceName(String instanceName)The name of the on-premises instance.voidsetRegisterTime(Date registerTime)The time at which the on-premises instance was registered.voidsetTags(Collection<Tag> tags)The tags currently associated with the on-premises instance.StringtoString()Returns a string representation of this object; useful for testing and debugging.InstanceInfowithDeregisterTime(Date deregisterTime)If the on-premises instance was deregistered, the time at which the on-premises instance was deregistered.InstanceInfowithIamUserArn(String iamUserArn)The IAM user ARN associated with the on-premises instance.InstanceInfowithInstanceArn(String instanceArn)The ARN of the on-premises instance.InstanceInfowithInstanceName(String instanceName)The name of the on-premises instance.InstanceInfowithRegisterTime(Date registerTime)The time at which the on-premises instance was registered.InstanceInfowithTags(Tag... tags)The tags currently associated with the on-premises instance.InstanceInfowithTags(Collection<Tag> tags)The tags currently associated with the on-premises instance.
-
-
-
Method Detail
-
setInstanceName
public void setInstanceName(String instanceName)
The name of the on-premises instance.
- Parameters:
instanceName- The name of the on-premises instance.
-
getInstanceName
public String getInstanceName()
The name of the on-premises instance.
- Returns:
- The name of the on-premises instance.
-
withInstanceName
public InstanceInfo withInstanceName(String instanceName)
The name of the on-premises instance.
- Parameters:
instanceName- The name of the on-premises instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setIamUserArn
public void setIamUserArn(String iamUserArn)
The IAM user ARN associated with the on-premises instance.
- Parameters:
iamUserArn- The IAM user ARN associated with the on-premises instance.
-
getIamUserArn
public String getIamUserArn()
The IAM user ARN associated with the on-premises instance.
- Returns:
- The IAM user ARN associated with the on-premises instance.
-
withIamUserArn
public InstanceInfo withIamUserArn(String iamUserArn)
The IAM user ARN associated with the on-premises instance.
- Parameters:
iamUserArn- The IAM user ARN associated with the on-premises instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInstanceArn
public void setInstanceArn(String instanceArn)
The ARN of the on-premises instance.
- Parameters:
instanceArn- The ARN of the on-premises instance.
-
getInstanceArn
public String getInstanceArn()
The ARN of the on-premises instance.
- Returns:
- The ARN of the on-premises instance.
-
withInstanceArn
public InstanceInfo withInstanceArn(String instanceArn)
The ARN of the on-premises instance.
- Parameters:
instanceArn- The ARN of the on-premises instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRegisterTime
public void setRegisterTime(Date registerTime)
The time at which the on-premises instance was registered.
- Parameters:
registerTime- The time at which the on-premises instance was registered.
-
getRegisterTime
public Date getRegisterTime()
The time at which the on-premises instance was registered.
- Returns:
- The time at which the on-premises instance was registered.
-
withRegisterTime
public InstanceInfo withRegisterTime(Date registerTime)
The time at which the on-premises instance was registered.
- Parameters:
registerTime- The time at which the on-premises instance was registered.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDeregisterTime
public void setDeregisterTime(Date deregisterTime)
If the on-premises instance was deregistered, the time at which the on-premises instance was deregistered.
- Parameters:
deregisterTime- If the on-premises instance was deregistered, the time at which the on-premises instance was deregistered.
-
getDeregisterTime
public Date getDeregisterTime()
If the on-premises instance was deregistered, the time at which the on-premises instance was deregistered.
- Returns:
- If the on-premises instance was deregistered, the time at which the on-premises instance was deregistered.
-
withDeregisterTime
public InstanceInfo withDeregisterTime(Date deregisterTime)
If the on-premises instance was deregistered, the time at which the on-premises instance was deregistered.
- Parameters:
deregisterTime- If the on-premises instance was deregistered, the time at which the on-premises instance was deregistered.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getTags
public List<Tag> getTags()
The tags currently associated with the on-premises instance.
- Returns:
- The tags currently associated with the on-premises instance.
-
setTags
public void setTags(Collection<Tag> tags)
The tags currently associated with the on-premises instance.
- Parameters:
tags- The tags currently associated with the on-premises instance.
-
withTags
public InstanceInfo withTags(Tag... tags)
The tags currently associated with the on-premises instance.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)orwithTags(java.util.Collection)if you want to override the existing values.- Parameters:
tags- The tags currently associated with the on-premises instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withTags
public InstanceInfo withTags(Collection<Tag> tags)
The tags currently associated with the on-premises instance.
- Parameters:
tags- The tags currently associated with the on-premises instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public InstanceInfo clone()
-
-