public class ClassicLinkInstance extends Object implements Serializable, Cloneable
Describes a linked EC2-Classic instance.
Constructor and Description |
---|
ClassicLinkInstance() |
Modifier and Type | Method and Description |
---|---|
ClassicLinkInstance |
clone() |
boolean |
equals(Object obj) |
List<GroupIdentifier> |
getGroups()
A list of security groups.
|
String |
getInstanceId()
The ID of the instance.
|
List<Tag> |
getTags()
Any tags assigned to the instance.
|
String |
getVpcId()
The ID of the VPC.
|
int |
hashCode() |
void |
setGroups(Collection<GroupIdentifier> groups)
A list of security groups.
|
void |
setInstanceId(String instanceId)
The ID of the instance.
|
void |
setTags(Collection<Tag> tags)
Any tags assigned to the instance.
|
void |
setVpcId(String vpcId)
The ID of the VPC.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ClassicLinkInstance |
withGroups(Collection<GroupIdentifier> groups)
A list of security groups.
|
ClassicLinkInstance |
withGroups(GroupIdentifier... groups)
A list of security groups.
|
ClassicLinkInstance |
withInstanceId(String instanceId)
The ID of the instance.
|
ClassicLinkInstance |
withTags(Collection<Tag> tags)
Any tags assigned to the instance.
|
ClassicLinkInstance |
withTags(Tag... tags)
Any tags assigned to the instance.
|
ClassicLinkInstance |
withVpcId(String vpcId)
The ID of the VPC.
|
public String getInstanceId()
public void setInstanceId(String instanceId)
instanceId
- The ID of the instance.public ClassicLinkInstance withInstanceId(String instanceId)
Returns a reference to this object so that method calls can be chained together.
instanceId
- The ID of the instance.public String getVpcId()
public void setVpcId(String vpcId)
vpcId
- The ID of the VPC.public ClassicLinkInstance withVpcId(String vpcId)
Returns a reference to this object so that method calls can be chained together.
vpcId
- The ID of the VPC.public List<GroupIdentifier> getGroups()
public void setGroups(Collection<GroupIdentifier> groups)
groups
- A list of security groups.public ClassicLinkInstance withGroups(GroupIdentifier... 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.
Returns a reference to this object so that method calls can be chained together.
groups
- A list of security groups.public ClassicLinkInstance withGroups(Collection<GroupIdentifier> groups)
Returns a reference to this object so that method calls can be chained together.
groups
- A list of security groups.public List<Tag> getTags()
public void setTags(Collection<Tag> tags)
tags
- Any tags assigned to the instance.public ClassicLinkInstance withTags(Tag... tags)
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.
Returns a reference to this object so that method calls can be chained together.
tags
- Any tags assigned to the instance.public ClassicLinkInstance withTags(Collection<Tag> tags)
Returns a reference to this object so that method calls can be chained together.
tags
- Any tags assigned to the instance.public String toString()
toString
in class Object
Object.toString()
public ClassicLinkInstance clone()
Copyright © 2015. All rights reserved.