Class Relationship
- java.lang.Object
-
- com.amazonaws.services.config.model.Relationship
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class Relationship extends Object implements Serializable, Cloneable
The relationship of the related resource to the main resource.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Relationship()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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
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.
-
-
-
Method Detail
-
setResourceType
public void setResourceType(String resourceType)
The resource type of the related resource.
- Parameters:
resourceType
- The resource type of the related resource.- See Also:
ResourceType
-
getResourceType
public String getResourceType()
The resource type of the related resource.
- Returns:
- The resource type of the related resource.
- See Also:
ResourceType
-
withResourceType
public Relationship withResourceType(String resourceType)
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:
ResourceType
-
setResourceType
public void setResourceType(ResourceType resourceType)
The resource type of the related resource.
- Parameters:
resourceType
- The resource type of the related resource.- See Also:
ResourceType
-
withResourceType
public Relationship withResourceType(ResourceType resourceType)
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:
ResourceType
-
setResourceId
public void setResourceId(String resourceId)
The ID of the related resource (for example,
sg-xxxxxx
).- Parameters:
resourceId
- The ID of the related resource (for example,sg-xxxxxx
).
-
getResourceId
public String getResourceId()
The ID of the related resource (for example,
sg-xxxxxx
).- Returns:
- The ID of the related resource (for example,
sg-xxxxxx
).
-
withResourceId
public Relationship withResourceId(String resourceId)
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
public void setResourceName(String resourceName)
The custom name of the related resource, if available.
- Parameters:
resourceName
- The custom name of the related resource, if available.
-
getResourceName
public String getResourceName()
The custom name of the related resource, if available.
- Returns:
- The custom name of the related resource, if available.
-
withResourceName
public Relationship withResourceName(String resourceName)
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
public void setRelationshipName(String relationshipName)
The type of relationship with the related resource.
- Parameters:
relationshipName
- The type of relationship with the related resource.
-
getRelationshipName
public String getRelationshipName()
The type of relationship with the related resource.
- Returns:
- The type of relationship with the related resource.
-
withRelationshipName
public Relationship withRelationshipName(String relationshipName)
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
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public Relationship clone()
-
-