public class Relationship extends Object implements Serializable, Cloneable
The relationship of the related resource to the main resource.
| Constructor and Description |
|---|
Relationship() |
| Modifier and Type | Method and Description |
|---|---|
Relationship |
clone() |
boolean |
equals(Object obj) |
String |
getRelationshipName()
The name of the related resource.
|
String |
getResourceId()
The resource ID of the related resource (for example,
sg-xxxxxx). |
String |
getResourceType()
The resource type of the related resource.
|
int |
hashCode() |
void |
setRelationshipName(String relationshipName)
The name of the related resource.
|
void |
setResourceId(String resourceId)
The resource ID of the related resource (for example,
sg-xxxxxx). |
void |
setResourceType(ResourceType resourceType)
The resource type of the related resource.
|
void |
setResourceType(String resourceType)
The resource type of the related resource.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Relationship |
withRelationshipName(String relationshipName)
The name of the related resource.
|
Relationship |
withResourceId(String resourceId)
The resource ID of the related resource (for example,
sg-xxxxxx). |
Relationship |
withResourceType(ResourceType resourceType)
The resource type of the related resource.
|
Relationship |
withResourceType(String resourceType)
The resource type of the related resource.
|
public String getResourceType()
Constraints:
Allowed Values: AWS::EC2::CustomerGateway, AWS::EC2::EIP, AWS::EC2::Instance, AWS::EC2::InternetGateway, AWS::EC2::NetworkAcl, AWS::EC2::NetworkInterface, AWS::EC2::RouteTable, AWS::EC2::SecurityGroup, AWS::EC2::Subnet, AWS::CloudTrail::Trail, AWS::EC2::Volume, AWS::EC2::VPC, AWS::EC2::VPNConnection, AWS::EC2::VPNGateway
ResourceTypepublic void setResourceType(String resourceType)
Constraints:
Allowed Values: AWS::EC2::CustomerGateway, AWS::EC2::EIP, AWS::EC2::Instance, AWS::EC2::InternetGateway, AWS::EC2::NetworkAcl, AWS::EC2::NetworkInterface, AWS::EC2::RouteTable, AWS::EC2::SecurityGroup, AWS::EC2::Subnet, AWS::CloudTrail::Trail, AWS::EC2::Volume, AWS::EC2::VPC, AWS::EC2::VPNConnection, AWS::EC2::VPNGateway
resourceType - The resource type of the related resource.ResourceTypepublic Relationship withResourceType(String resourceType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: AWS::EC2::CustomerGateway, AWS::EC2::EIP, AWS::EC2::Instance, AWS::EC2::InternetGateway, AWS::EC2::NetworkAcl, AWS::EC2::NetworkInterface, AWS::EC2::RouteTable, AWS::EC2::SecurityGroup, AWS::EC2::Subnet, AWS::CloudTrail::Trail, AWS::EC2::Volume, AWS::EC2::VPC, AWS::EC2::VPNConnection, AWS::EC2::VPNGateway
resourceType - The resource type of the related resource.ResourceTypepublic void setResourceType(ResourceType resourceType)
Constraints:
Allowed Values: AWS::EC2::CustomerGateway, AWS::EC2::EIP, AWS::EC2::Instance, AWS::EC2::InternetGateway, AWS::EC2::NetworkAcl, AWS::EC2::NetworkInterface, AWS::EC2::RouteTable, AWS::EC2::SecurityGroup, AWS::EC2::Subnet, AWS::CloudTrail::Trail, AWS::EC2::Volume, AWS::EC2::VPC, AWS::EC2::VPNConnection, AWS::EC2::VPNGateway
resourceType - The resource type of the related resource.ResourceTypepublic Relationship withResourceType(ResourceType resourceType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: AWS::EC2::CustomerGateway, AWS::EC2::EIP, AWS::EC2::Instance, AWS::EC2::InternetGateway, AWS::EC2::NetworkAcl, AWS::EC2::NetworkInterface, AWS::EC2::RouteTable, AWS::EC2::SecurityGroup, AWS::EC2::Subnet, AWS::CloudTrail::Trail, AWS::EC2::Volume, AWS::EC2::VPC, AWS::EC2::VPNConnection, AWS::EC2::VPNGateway
resourceType - The resource type of the related resource.ResourceTypepublic String getResourceId()
sg-xxxxxx).sg-xxxxxx).public void setResourceId(String resourceId)
sg-xxxxxx).resourceId - The resource ID of the related resource (for example,
sg-xxxxxx).public Relationship withResourceId(String resourceId)
sg-xxxxxx).
Returns a reference to this object so that method calls can be chained together.
resourceId - The resource ID of the related resource (for example,
sg-xxxxxx).public String getRelationshipName()
public void setRelationshipName(String relationshipName)
relationshipName - The name of the related resource.public Relationship withRelationshipName(String relationshipName)
Returns a reference to this object so that method calls can be chained together.
relationshipName - The name of the related resource.public String toString()
toString in class ObjectObject.toString()public Relationship clone()
Copyright © 2015. All rights reserved.