Class ClassicLinkInstance
- java.lang.Object
-
- com.amazonaws.services.ec2.model.ClassicLinkInstance
-
- All Implemented Interfaces:
Serializable,Cloneable
public class ClassicLinkInstance extends Object implements Serializable, Cloneable
Describes a linked EC2-Classic instance.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ClassicLinkInstance()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClassicLinkInstanceclone()booleanequals(Object obj)List<GroupIdentifier>getGroups()A list of security groups.StringgetInstanceId()The ID of the instance.List<Tag>getTags()Any tags assigned to the instance.StringgetVpcId()The ID of the VPC.inthashCode()voidsetGroups(Collection<GroupIdentifier> groups)A list of security groups.voidsetInstanceId(String instanceId)The ID of the instance.voidsetTags(Collection<Tag> tags)Any tags assigned to the instance.voidsetVpcId(String vpcId)The ID of the VPC.StringtoString()Returns a string representation of this object; useful for testing and debugging.ClassicLinkInstancewithGroups(GroupIdentifier... groups)A list of security groups.ClassicLinkInstancewithGroups(Collection<GroupIdentifier> groups)A list of security groups.ClassicLinkInstancewithInstanceId(String instanceId)The ID of the instance.ClassicLinkInstancewithTags(Tag... tags)Any tags assigned to the instance.ClassicLinkInstancewithTags(Collection<Tag> tags)Any tags assigned to the instance.ClassicLinkInstancewithVpcId(String vpcId)The ID of the VPC.
-
-
-
Method Detail
-
setInstanceId
public void setInstanceId(String instanceId)
The ID of the instance.
- Parameters:
instanceId- The ID of the instance.
-
getInstanceId
public String getInstanceId()
The ID of the instance.
- Returns:
- The ID of the instance.
-
withInstanceId
public ClassicLinkInstance withInstanceId(String instanceId)
The ID of the instance.
- Parameters:
instanceId- The ID of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setVpcId
public void setVpcId(String vpcId)
The ID of the VPC.
- Parameters:
vpcId- The ID of the VPC.
-
getVpcId
public String getVpcId()
The ID of the VPC.
- Returns:
- The ID of the VPC.
-
withVpcId
public ClassicLinkInstance withVpcId(String vpcId)
The ID of the VPC.
- Parameters:
vpcId- The ID of the VPC.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getGroups
public List<GroupIdentifier> getGroups()
A list of security groups.
- Returns:
- A list of security groups.
-
setGroups
public void setGroups(Collection<GroupIdentifier> groups)
A list of security groups.
- Parameters:
groups- A list of security groups.
-
withGroups
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)orwithGroups(java.util.Collection)if you want to override the existing values.- Parameters:
groups- A list of security groups.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withGroups
public ClassicLinkInstance withGroups(Collection<GroupIdentifier> groups)
A list of security groups.
- Parameters:
groups- A list of security groups.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getTags
public List<Tag> getTags()
Any tags assigned to the instance.
- Returns:
- Any tags assigned to the instance.
-
setTags
public void setTags(Collection<Tag> tags)
Any tags assigned to the instance.
- Parameters:
tags- Any tags assigned to the instance.
-
withTags
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)orwithTags(java.util.Collection)if you want to override the existing values.- Parameters:
tags- Any tags assigned to the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withTags
public ClassicLinkInstance withTags(Collection<Tag> tags)
Any tags assigned to the instance.
- Parameters:
tags- Any tags assigned to the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ClassicLinkInstance clone()
-
-