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 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(GroupIdentifier... groups)
A list of security groups.ClassicLinkInstance
withGroups(Collection<GroupIdentifier> groups)
A list of security groups.ClassicLinkInstance
withInstanceId(String instanceId)
The ID of the instance.ClassicLinkInstance
withTags(Tag... tags)
Any tags assigned to the instance.ClassicLinkInstance
withTags(Collection<Tag> tags)
Any tags assigned to the instance.ClassicLinkInstance
withVpcId(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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ClassicLinkInstance clone()
-
-