@Generated(value="software.amazon.awssdk:codegen") public final class Relationship extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Relationship.Builder,Relationship>
The relationship of the related resource to the main resource.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Relationship.Builder |
| Modifier and Type | Method and Description |
|---|---|
static Relationship.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
relationshipName()
The type of relationship with the related resource.
|
String |
resourceId()
The ID of the related resource (for example,
sg-xxxxxx). |
String |
resourceName()
The custom name of the related resource, if available.
|
ResourceType |
resourceType()
The resource type of the related resource.
|
String |
resourceTypeAsString()
The resource type of the related resource.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Relationship.Builder> |
serializableBuilderClass() |
Relationship.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final ResourceType resourceType()
The resource type of the related resource.
If the service returns an enum value that is not available in the current SDK version, resourceType will
return ResourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
resourceTypeAsString().
ResourceTypepublic final String resourceTypeAsString()
The resource type of the related resource.
If the service returns an enum value that is not available in the current SDK version, resourceType will
return ResourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
resourceTypeAsString().
ResourceTypepublic final String resourceId()
The ID of the related resource (for example, sg-xxxxxx).
sg-xxxxxx).public final String resourceName()
The custom name of the related resource, if available.
public final String relationshipName()
The type of relationship with the related resource.
public Relationship.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Relationship.Builder,Relationship>public static Relationship.Builder builder()
public static Class<? extends Relationship.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.