@Generated(value="software.amazon.awssdk:codegen") public final class Relationship extends Object implements StructuredPojo, 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) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
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.
|
static Class<? extends Relationship.Builder> |
serializableBuilderClass() |
Relationship.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public 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()
.
ResourceType
public 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()
.
ResourceType
public String resourceId()
The ID of the related resource (for example, sg-xxxxxx
).
sg-xxxxxx
).public String resourceName()
The custom name of the related resource, if available.
public String relationshipName()
The type of relationship with the related resource.
public Relationship.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Relationship.Builder,Relationship>
public static Relationship.Builder builder()
public static Class<? extends Relationship.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.