@Generated(value="com.amazonaws:aws-java-sdk-code-generator") 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 List<GroupIdentifier> getGroups()
A list of security groups.
public void setGroups(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(Collection<GroupIdentifier> groups)
A list of security groups.
groups
- A list of security groups.public void setInstanceId(String instanceId)
The ID of the instance.
instanceId
- The ID of the instance.public String getInstanceId()
The ID of the instance.
public ClassicLinkInstance withInstanceId(String instanceId)
The ID of the instance.
instanceId
- The ID of the instance.public List<Tag> getTags()
Any tags assigned to the instance.
public void setTags(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(Collection<Tag> tags)
Any tags assigned to the instance.
tags
- Any tags assigned to the instance.public void setVpcId(String vpcId)
The ID of the VPC.
vpcId
- The ID of the VPC.public String getVpcId()
The ID of the VPC.
public ClassicLinkInstance withVpcId(String vpcId)
The ID of the VPC.
vpcId
- The ID of the VPC.public String toString()
toString
in class Object
Object.toString()
public ClassicLinkInstance clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.