public class InstanceInfo
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Information about an on-premises instance.
Modifier and Type | Field and Description |
---|---|
private java.util.Date |
deregisterTime
If the on-premises instance was deregistered, the time at which the
on-premises instance was deregistered.
|
private java.lang.String |
iamUserArn
The IAM user ARN associated with the on-premises instance.
|
private java.lang.String |
instanceArn
The ARN of the on-premises instance.
|
private java.lang.String |
instanceName
The name of the on-premises instance.
|
private java.util.Date |
registerTime
The time at which the on-premises instance was registered.
|
private SdkInternalList<Tag> |
tags
The tags currently associated with the on-premises instance.
|
Constructor and Description |
---|
InstanceInfo() |
Modifier and Type | Method and Description |
---|---|
InstanceInfo |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.Date |
getDeregisterTime()
If the on-premises instance was deregistered, the time at which the
on-premises instance was deregistered.
|
java.lang.String |
getIamUserArn()
The IAM user ARN associated with the on-premises instance.
|
java.lang.String |
getInstanceArn()
The ARN of the on-premises instance.
|
java.lang.String |
getInstanceName()
The name of the on-premises instance.
|
java.util.Date |
getRegisterTime()
The time at which the on-premises instance was registered.
|
java.util.List<Tag> |
getTags()
The tags currently associated with the on-premises instance.
|
int |
hashCode() |
void |
setDeregisterTime(java.util.Date deregisterTime)
If the on-premises instance was deregistered, the time at which the
on-premises instance was deregistered.
|
void |
setIamUserArn(java.lang.String iamUserArn)
The IAM user ARN associated with the on-premises instance.
|
void |
setInstanceArn(java.lang.String instanceArn)
The ARN of the on-premises instance.
|
void |
setInstanceName(java.lang.String instanceName)
The name of the on-premises instance.
|
void |
setRegisterTime(java.util.Date registerTime)
The time at which the on-premises instance was registered.
|
void |
setTags(java.util.Collection<Tag> tags)
The tags currently associated with the on-premises instance.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
InstanceInfo |
withDeregisterTime(java.util.Date deregisterTime)
If the on-premises instance was deregistered, the time at which the
on-premises instance was deregistered.
|
InstanceInfo |
withIamUserArn(java.lang.String iamUserArn)
The IAM user ARN associated with the on-premises instance.
|
InstanceInfo |
withInstanceArn(java.lang.String instanceArn)
The ARN of the on-premises instance.
|
InstanceInfo |
withInstanceName(java.lang.String instanceName)
The name of the on-premises instance.
|
InstanceInfo |
withRegisterTime(java.util.Date registerTime)
The time at which the on-premises instance was registered.
|
InstanceInfo |
withTags(java.util.Collection<Tag> tags)
The tags currently associated with the on-premises instance.
|
InstanceInfo |
withTags(Tag... tags)
The tags currently associated with the on-premises instance.
|
private java.lang.String instanceName
The name of the on-premises instance.
private java.lang.String iamUserArn
The IAM user ARN associated with the on-premises instance.
private java.lang.String instanceArn
The ARN of the on-premises instance.
private java.util.Date registerTime
The time at which the on-premises instance was registered.
private java.util.Date deregisterTime
If the on-premises instance was deregistered, the time at which the on-premises instance was deregistered.
private SdkInternalList<Tag> tags
The tags currently associated with the on-premises instance.
public void setInstanceName(java.lang.String instanceName)
The name of the on-premises instance.
instanceName
- The name of the on-premises instance.public java.lang.String getInstanceName()
The name of the on-premises instance.
public InstanceInfo withInstanceName(java.lang.String instanceName)
The name of the on-premises instance.
instanceName
- The name of the on-premises instance.public void setIamUserArn(java.lang.String iamUserArn)
The IAM user ARN associated with the on-premises instance.
iamUserArn
- The IAM user ARN associated with the on-premises instance.public java.lang.String getIamUserArn()
The IAM user ARN associated with the on-premises instance.
public InstanceInfo withIamUserArn(java.lang.String iamUserArn)
The IAM user ARN associated with the on-premises instance.
iamUserArn
- The IAM user ARN associated with the on-premises instance.public void setInstanceArn(java.lang.String instanceArn)
The ARN of the on-premises instance.
instanceArn
- The ARN of the on-premises instance.public java.lang.String getInstanceArn()
The ARN of the on-premises instance.
public InstanceInfo withInstanceArn(java.lang.String instanceArn)
The ARN of the on-premises instance.
instanceArn
- The ARN of the on-premises instance.public void setRegisterTime(java.util.Date registerTime)
The time at which the on-premises instance was registered.
registerTime
- The time at which the on-premises instance was registered.public java.util.Date getRegisterTime()
The time at which the on-premises instance was registered.
public InstanceInfo withRegisterTime(java.util.Date registerTime)
The time at which the on-premises instance was registered.
registerTime
- The time at which the on-premises instance was registered.public void setDeregisterTime(java.util.Date deregisterTime)
If the on-premises instance was deregistered, the time at which the on-premises instance was deregistered.
deregisterTime
- If the on-premises instance was deregistered, the time at which
the on-premises instance was deregistered.public java.util.Date getDeregisterTime()
If the on-premises instance was deregistered, the time at which the on-premises instance was deregistered.
public InstanceInfo withDeregisterTime(java.util.Date deregisterTime)
If the on-premises instance was deregistered, the time at which the on-premises instance was deregistered.
deregisterTime
- If the on-premises instance was deregistered, the time at which
the on-premises instance was deregistered.public java.util.List<Tag> getTags()
The tags currently associated with the on-premises instance.
public void setTags(java.util.Collection<Tag> tags)
The tags currently associated with the on-premises instance.
tags
- The tags currently associated with the on-premises instance.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)
or
withTags(java.util.Collection)
if you want to override the
existing values.
tags
- The tags currently associated with the on-premises instance.public InstanceInfo withTags(java.util.Collection<Tag> tags)
The tags currently associated with the on-premises instance.
tags
- The tags currently associated with the on-premises instance.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public InstanceInfo clone()
clone
in class java.lang.Object