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()
boolean
The 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.int
hashCode()
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.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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-