@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Relationship extends Object implements Serializable, Cloneable, StructuredPojo
Describes a resource relationship.
| Constructor and Description |
|---|
Relationship() |
| Modifier and Type | Method and Description |
|---|---|
Relationship |
clone() |
boolean |
equals(Object obj) |
String |
getFrom()
The ARN of the resource.
|
String |
getTo()
The ARN of the resource.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setFrom(String from)
The ARN of the resource.
|
void |
setTo(String to)
The ARN of the resource.
|
String |
toString()
Returns a string representation of this object.
|
Relationship |
withFrom(String from)
The ARN of the resource.
|
Relationship |
withTo(String to)
The ARN of the resource.
|
public void setFrom(String from)
The ARN of the resource.
from - The ARN of the resource.public String getFrom()
The ARN of the resource.
public Relationship withFrom(String from)
The ARN of the resource.
from - The ARN of the resource.public void setTo(String to)
The ARN of the resource.
to - The ARN of the resource.public String getTo()
The ARN of the resource.
public Relationship withTo(String to)
The ARN of the resource.
to - The ARN of the resource.public String toString()
toString in class ObjectObject.toString()public Relationship clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.