@Generated(value="software.amazon.awssdk:codegen") public final class RelatedItemContent extends Object implements SdkPojo, Serializable, ToCopyableBuilder<RelatedItemContent.Builder,RelatedItemContent>
Represents the content of a particular type of related item.
| Modifier and Type | Class and Description |
|---|---|
static interface |
RelatedItemContent.Builder |
static class |
RelatedItemContent.Type |
| Modifier and Type | Method and Description |
|---|---|
static RelatedItemContent.Builder |
builder() |
CommentContent |
comment()
Represents the content of a comment to be returned to agents.
|
ContactContent |
contact()
Represents the content of a contact to be returned to agents.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
static RelatedItemContent |
fromComment(CommentContent comment)
Create an instance of this class with
comment() initialized to the given value. |
static RelatedItemContent |
fromComment(Consumer<CommentContent.Builder> comment)
Create an instance of this class with
comment() initialized to the given value. |
static RelatedItemContent |
fromContact(Consumer<ContactContent.Builder> contact)
Create an instance of this class with
contact() initialized to the given value. |
static RelatedItemContent |
fromContact(ContactContent contact)
Create an instance of this class with
contact() initialized to the given value. |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends RelatedItemContent.Builder> |
serializableBuilderClass() |
RelatedItemContent.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
RelatedItemContent.Type |
type()
Retrieve an enum value representing which member of this object is populated.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final CommentContent comment()
Represents the content of a comment to be returned to agents.
public final ContactContent contact()
Represents the content of a contact to be returned to agents.
public RelatedItemContent.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<RelatedItemContent.Builder,RelatedItemContent>public static RelatedItemContent.Builder builder()
public static Class<? extends RelatedItemContent.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public static RelatedItemContent fromComment(CommentContent comment)
comment() initialized to the given value.
Represents the content of a comment to be returned to agents.
comment - Represents the content of a comment to be returned to agents.public static RelatedItemContent fromComment(Consumer<CommentContent.Builder> comment)
comment() initialized to the given value.
Represents the content of a comment to be returned to agents.
comment - Represents the content of a comment to be returned to agents.public static RelatedItemContent fromContact(ContactContent contact)
contact() initialized to the given value.
Represents the content of a contact to be returned to agents.
contact - Represents the content of a contact to be returned to agents.public static RelatedItemContent fromContact(Consumer<ContactContent.Builder> contact)
contact() initialized to the given value.
Represents the content of a contact to be returned to agents.
contact - Represents the content of a contact to be returned to agents.public RelatedItemContent.Type type()
RelatedItemContent.Type.UNKNOWN_TO_SDK_VERSION if the
service returned a member that is only known to a newer SDK version.
When this class is created directly in your code, this will be RelatedItemContent.Type.UNKNOWN_TO_SDK_VERSION if zero
members are set, and null if more than one member is set.Copyright © 2023. All rights reserved.