public class ClassicLinkInstance
extends java.lang.Object
implements java.io.Serializable
Describes a linked EC2-Classic instance.
Constructor and Description |
---|
ClassicLinkInstance() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.util.List<GroupIdentifier> |
getGroups()
A list of security groups.
|
java.lang.String |
getInstanceId()
The ID of the instance.
|
java.util.List<Tag> |
getTags()
Any tags assigned to the instance.
|
java.lang.String |
getVpcId()
The ID of the VPC.
|
int |
hashCode() |
void |
setGroups(java.util.Collection<GroupIdentifier> groups)
A list of security groups.
|
void |
setInstanceId(java.lang.String instanceId)
The ID of the instance.
|
void |
setTags(java.util.Collection<Tag> tags)
Any tags assigned to the instance.
|
void |
setVpcId(java.lang.String vpcId)
The ID of the VPC.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ClassicLinkInstance |
withGroups(java.util.Collection<GroupIdentifier> groups)
A list of security groups.
|
ClassicLinkInstance |
withGroups(GroupIdentifier... groups)
A list of security groups.
|
ClassicLinkInstance |
withInstanceId(java.lang.String instanceId)
The ID of the instance.
|
ClassicLinkInstance |
withTags(java.util.Collection<Tag> tags)
Any tags assigned to the instance.
|
ClassicLinkInstance |
withTags(Tag... tags)
Any tags assigned to the instance.
|
ClassicLinkInstance |
withVpcId(java.lang.String vpcId)
The ID of the VPC.
|
public java.lang.String getInstanceId()
public void setInstanceId(java.lang.String instanceId)
instanceId
- The ID of the instance.public ClassicLinkInstance withInstanceId(java.lang.String instanceId)
Returns a reference to this object so that method calls can be chained together.
instanceId
- The ID of the instance.public java.lang.String getVpcId()
public void setVpcId(java.lang.String vpcId)
vpcId
- The ID of the VPC.public ClassicLinkInstance withVpcId(java.lang.String vpcId)
Returns a reference to this object so that method calls can be chained together.
vpcId
- The ID of the VPC.public java.util.List<GroupIdentifier> getGroups()
public void setGroups(java.util.Collection<GroupIdentifier> groups)
groups
- A list of security groups.public ClassicLinkInstance withGroups(GroupIdentifier... groups)
Returns a reference to this object so that method calls can be chained together.
groups
- A list of security groups.public ClassicLinkInstance withGroups(java.util.Collection<GroupIdentifier> groups)
Returns a reference to this object so that method calls can be chained together.
groups
- A list of security groups.public java.util.List<Tag> getTags()
public void setTags(java.util.Collection<Tag> tags)
tags
- Any tags assigned to the instance.public ClassicLinkInstance withTags(Tag... tags)
Returns a reference to this object so that method calls can be chained together.
tags
- Any tags assigned to the instance.public ClassicLinkInstance withTags(java.util.Collection<Tag> tags)
Returns a reference to this object so that method calls can be chained together.
tags
- Any tags assigned to the instance.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.