Class ClassicLinkInstance
- All Implemented Interfaces:
Serializable,Cloneable
Describes a linked EC2-Classic instance.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanA list of security groups.The ID of the instance.getTags()Any tags assigned to the instance.getVpcId()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.voidThe ID of the VPC.toString()Returns a string representation of this object; useful for testing and debugging.withGroups(GroupIdentifier... groups) A list of security groups.withGroups(Collection<GroupIdentifier> groups) A list of security groups.withInstanceId(String instanceId) The ID of the instance.Any tags assigned to the instance.withTags(Collection<Tag> tags) Any tags assigned to the instance.The ID of the VPC.
-
Constructor Details
-
ClassicLinkInstance
public ClassicLinkInstance()
-
-
Method Details
-
setInstanceId
The ID of the instance.
- Parameters:
instanceId- The ID of the instance.
-
getInstanceId
The ID of the instance.
- Returns:
- The ID of the instance.
-
withInstanceId
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
The ID of the VPC.
- Parameters:
vpcId- The ID of the VPC.
-
getVpcId
The ID of the VPC.
- Returns:
- The ID of the VPC.
-
withVpcId
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
A list of security groups.
- Returns:
- A list of security groups.
-
setGroups
A list of security groups.
- Parameters:
groups- A list of security groups.
-
withGroups
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
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
Any tags assigned to the instance.
- Returns:
- Any tags assigned to the instance.
-
setTags
Any tags assigned to the instance.
- Parameters:
tags- Any tags assigned to the instance.
-
withTags
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
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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-