public class ClassicLinkInstance
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes a linked EC2-Classic instance.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<GroupIdentifier> |
groups
A list of security groups.
|
private java.lang.String |
instanceId
The ID of the instance.
|
private SdkInternalList<Tag> |
tags
Any tags assigned to the instance.
|
private java.lang.String |
vpcId
The ID of the VPC.
|
Constructor and Description |
---|
ClassicLinkInstance() |
Modifier and Type | Method and Description |
---|---|
ClassicLinkInstance |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<GroupIdentifier> |
getGroups()
A list of security groups.
|
java.lang.String |
getInstanceId()
The ID of the instance.
|
java.util.List<Tag> |
getTags()
Any tags assigned to the instance.
|
java.lang.String |
getVpcId()
The ID of the VPC.
|
int |
hashCode() |
void |
setGroups(java.util.Collection<GroupIdentifier> groups)
A list of security groups.
|
void |
setInstanceId(java.lang.String instanceId)
The ID of the instance.
|
void |
setTags(java.util.Collection<Tag> tags)
Any tags assigned to the instance.
|
void |
setVpcId(java.lang.String vpcId)
The ID of the VPC.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ClassicLinkInstance |
withGroups(java.util.Collection<GroupIdentifier> groups)
A list of security groups.
|
ClassicLinkInstance |
withGroups(GroupIdentifier... groups)
A list of security groups.
|
ClassicLinkInstance |
withInstanceId(java.lang.String instanceId)
The ID of the instance.
|
ClassicLinkInstance |
withTags(java.util.Collection<Tag> tags)
Any tags assigned to the instance.
|
ClassicLinkInstance |
withTags(Tag... tags)
Any tags assigned to the instance.
|
ClassicLinkInstance |
withVpcId(java.lang.String vpcId)
The ID of the VPC.
|
private java.lang.String instanceId
The ID of the instance.
private java.lang.String vpcId
The ID of the VPC.
private SdkInternalList<GroupIdentifier> groups
A list of security groups.
private SdkInternalList<Tag> tags
Any tags assigned to the instance.
public void setInstanceId(java.lang.String instanceId)
The ID of the instance.
instanceId
- The ID of the instance.public java.lang.String getInstanceId()
The ID of the instance.
public ClassicLinkInstance withInstanceId(java.lang.String instanceId)
The ID of the instance.
instanceId
- The ID of the instance.public void setVpcId(java.lang.String vpcId)
The ID of the VPC.
vpcId
- The ID of the VPC.public java.lang.String getVpcId()
The ID of the VPC.
public ClassicLinkInstance withVpcId(java.lang.String vpcId)
The ID of the VPC.
vpcId
- The ID of the VPC.public java.util.List<GroupIdentifier> getGroups()
A list of security groups.
public void setGroups(java.util.Collection<GroupIdentifier> groups)
A list of security groups.
groups
- A list of security groups.public ClassicLinkInstance withGroups(GroupIdentifier... groups)
A list of security groups.
NOTE: This method appends the values to the existing list (if
any). Use setGroups(java.util.Collection)
or
withGroups(java.util.Collection)
if you want to override the
existing values.
groups
- A list of security groups.public ClassicLinkInstance withGroups(java.util.Collection<GroupIdentifier> groups)
A list of security groups.
groups
- A list of security groups.public java.util.List<Tag> getTags()
Any tags assigned to the instance.
public void setTags(java.util.Collection<Tag> tags)
Any tags assigned to the instance.
tags
- Any tags assigned to the instance.public ClassicLinkInstance withTags(Tag... tags)
Any tags assigned to the 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
- Any tags assigned to the instance.public ClassicLinkInstance withTags(java.util.Collection<Tag> tags)
Any tags assigned to the instance.
tags
- Any tags assigned to the 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 ClassicLinkInstance clone()
clone
in class java.lang.Object