Class Relationship
- All Implemented Interfaces:
Serializable, Cloneable
The relationship of the related resource to the main resource.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanThe type of relationship with the related resource.The ID of the related resource (for example,sg-xxxxxx).The custom name of the related resource, if available.The resource type of the related resource.inthashCode()voidsetRelationshipName(String relationshipName) The type of relationship with the related resource.voidsetResourceId(String resourceId) The ID of the related resource (for example,sg-xxxxxx).voidsetResourceName(String resourceName) The custom name of the related resource, if available.voidsetResourceType(ResourceType resourceType) The resource type of the related resource.voidsetResourceType(String resourceType) The resource type of the related resource.toString()Returns a string representation of this object; useful for testing and debugging.withRelationshipName(String relationshipName) The type of relationship with the related resource.withResourceId(String resourceId) The ID of the related resource (for example,sg-xxxxxx).withResourceName(String resourceName) The custom name of the related resource, if available.withResourceType(ResourceType resourceType) The resource type of the related resource.withResourceType(String resourceType) The resource type of the related resource.
-
Constructor Details
-
Relationship
public Relationship()
-
-
Method Details
-
setResourceType
The resource type of the related resource.
- Parameters:
resourceType- The resource type of the related resource.- See Also:
-
getResourceType
The resource type of the related resource.
- Returns:
- The resource type of the related resource.
- See Also:
-
withResourceType
The resource type of the related resource.
- Parameters:
resourceType- The resource type of the related resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setResourceType
The resource type of the related resource.
- Parameters:
resourceType- The resource type of the related resource.- See Also:
-
withResourceType
The resource type of the related resource.
- Parameters:
resourceType- The resource type of the related resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setResourceId
The ID of the related resource (for example,
sg-xxxxxx).- Parameters:
resourceId- The ID of the related resource (for example,sg-xxxxxx).
-
getResourceId
The ID of the related resource (for example,
sg-xxxxxx).- Returns:
- The ID of the related resource (for example,
sg-xxxxxx).
-
withResourceId
The ID of the related resource (for example,
sg-xxxxxx).- Parameters:
resourceId- The ID of the related resource (for example,sg-xxxxxx).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setResourceName
The custom name of the related resource, if available.
- Parameters:
resourceName- The custom name of the related resource, if available.
-
getResourceName
The custom name of the related resource, if available.
- Returns:
- The custom name of the related resource, if available.
-
withResourceName
The custom name of the related resource, if available.
- Parameters:
resourceName- The custom name of the related resource, if available.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRelationshipName
The type of relationship with the related resource.
- Parameters:
relationshipName- The type of relationship with the related resource.
-
getRelationshipName
The type of relationship with the related resource.
- Returns:
- The type of relationship with the related resource.
-
withRelationshipName
The type of relationship with the related resource.
- Parameters:
relationshipName- The type of relationship with the related resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
-
equals
-
hashCode
-
clone
-