@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ClassicLinkInstance extends Object implements Serializable, Cloneable
Deprecated.
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()
The 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)
The 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.
|
ClassicLinkInstance |
withGroups(Collection<GroupIdentifier> groups)
The security groups.
|
ClassicLinkInstance |
withGroups(GroupIdentifier... groups)
The 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()
The security groups.
public void setGroups(Collection<GroupIdentifier> groups)
The security groups.
groups
- The security groups.public ClassicLinkInstance withGroups(GroupIdentifier... groups)
The 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
- The security groups.public ClassicLinkInstance withGroups(Collection<GroupIdentifier> groups)
The security groups.
groups
- The 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()