public class Relationship
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
The relationship of the related resource to the main resource.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
relationshipName
The type of relationship with the related resource.
|
private java.lang.String |
resourceId
The ID of the related resource (for example,
sg-xxxxxx ). |
private java.lang.String |
resourceName
The custom name of the related resource, if available.
|
private java.lang.String |
resourceType
The resource type of the related resource.
|
Constructor and Description |
---|
Relationship() |
Modifier and Type | Method and Description |
---|---|
Relationship |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getRelationshipName()
The type of relationship with the related resource.
|
java.lang.String |
getResourceId()
The ID of the related resource (for example,
sg-xxxxxx ). |
java.lang.String |
getResourceName()
The custom name of the related resource, if available.
|
java.lang.String |
getResourceType()
The resource type of the related resource.
|
int |
hashCode() |
void |
setRelationshipName(java.lang.String relationshipName)
The type of relationship with the related resource.
|
void |
setResourceId(java.lang.String resourceId)
The ID of the related resource (for example,
sg-xxxxxx ). |
void |
setResourceName(java.lang.String resourceName)
The custom name of the related resource, if available.
|
void |
setResourceType(ResourceType resourceType)
The resource type of the related resource.
|
void |
setResourceType(java.lang.String resourceType)
The resource type of the related resource.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Relationship |
withRelationshipName(java.lang.String relationshipName)
The type of relationship with the related resource.
|
Relationship |
withResourceId(java.lang.String resourceId)
The ID of the related resource (for example,
sg-xxxxxx ). |
Relationship |
withResourceName(java.lang.String resourceName)
The custom name of the related resource, if available.
|
Relationship |
withResourceType(ResourceType resourceType)
The resource type of the related resource.
|
Relationship |
withResourceType(java.lang.String resourceType)
The resource type of the related resource.
|
private java.lang.String resourceType
The resource type of the related resource.
private java.lang.String resourceId
The ID of the related resource (for example, sg-xxxxxx
).
private java.lang.String resourceName
The custom name of the related resource, if available.
private java.lang.String relationshipName
The type of relationship with the related resource.
public void setResourceType(java.lang.String resourceType)
The resource type of the related resource.
resourceType
- The resource type of the related resource.ResourceType
public java.lang.String getResourceType()
The resource type of the related resource.
ResourceType
public Relationship withResourceType(java.lang.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(java.lang.String resourceId)
The ID of the related resource (for example, sg-xxxxxx
).
resourceId
- The ID of the related resource (for example,
sg-xxxxxx
).public java.lang.String getResourceId()
The ID of the related resource (for example, sg-xxxxxx
).
sg-xxxxxx
).public Relationship withResourceId(java.lang.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(java.lang.String resourceName)
The custom name of the related resource, if available.
resourceName
- The custom name of the related resource, if available.public java.lang.String getResourceName()
The custom name of the related resource, if available.
public Relationship withResourceName(java.lang.String resourceName)
The custom name of the related resource, if available.
resourceName
- The custom name of the related resource, if available.public void setRelationshipName(java.lang.String relationshipName)
The type of relationship with the related resource.
relationshipName
- The type of relationship with the related resource.public java.lang.String getRelationshipName()
The type of relationship with the related resource.
public Relationship withRelationshipName(java.lang.String relationshipName)
The type of relationship with the related resource.
relationshipName
- The type of relationship with the related resource.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Relationship clone()
clone
in class java.lang.Object