@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Relationship extends Object implements Serializable, Cloneable, StructuredPojo
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 type of relationship with the related resource.
|
String |
getResourceId()
The ID of the related resource (for example,
sg-xxxxxx ). |
String |
getResourceName()
The custom name of the related resource, if available.
|
String |
getResourceType()
The resource type of the related resource.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setRelationshipName(String relationshipName)
The type of relationship with the related resource.
|
void |
setResourceId(String resourceId)
The ID of the related resource (for example,
sg-xxxxxx ). |
void |
setResourceName(String resourceName)
The custom name of the related resource, if available.
|
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 type of relationship with the related resource.
|
Relationship |
withResourceId(String resourceId)
The ID of the related resource (for example,
sg-xxxxxx ). |
Relationship |
withResourceName(String resourceName)
The custom name of the related resource, if available.
|
Relationship |
withResourceType(ResourceType resourceType)
The resource type of the related resource.
|
Relationship |
withResourceType(String resourceType)
The resource type of the related resource.
|
public void setResourceType(String resourceType)
The resource type of the related resource.
resourceType
- The resource type of the related resource.ResourceType
public String getResourceType()
The resource type of the related resource.
ResourceType
public Relationship withResourceType(String resourceType)
The resource type of the related resource.
resourceType
- The resource type of the related resource.ResourceType
public void setResourceType(ResourceType resourceType)
The resource type of the related resource.
resourceType
- The resource type of the related resource.ResourceType
public Relationship withResourceType(ResourceType resourceType)
The resource type of the related resource.
resourceType
- The resource type of the related resource.ResourceType
public void setResourceId(String resourceId)
The ID of the related resource (for example, sg-xxxxxx
).
resourceId
- The ID of the related resource (for example, sg-xxxxxx
).public String getResourceId()
The ID of the related resource (for example, sg-xxxxxx
).
sg-xxxxxx
).public Relationship withResourceId(String resourceId)
The ID of the related resource (for example, sg-xxxxxx
).
resourceId
- The ID of the related resource (for example, sg-xxxxxx
).public void setResourceName(String resourceName)
The custom name of the related resource, if available.
resourceName
- The custom name of the related resource, if available.public String getResourceName()
The custom name of the related resource, if available.
public Relationship withResourceName(String resourceName)
The custom name of the related resource, if available.
resourceName
- The custom name of the related resource, if available.public void setRelationshipName(String relationshipName)
The type of relationship with the related resource.
relationshipName
- The type of relationship with the related resource.public String getRelationshipName()
The type of relationship with the related resource.
public Relationship withRelationshipName(String relationshipName)
The type of relationship with the related resource.
relationshipName
- The type of relationship with the related resource.public String toString()
toString
in class Object
Object.toString()
public Relationship clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.