Class RelatedItemContent
- java.lang.Object
-
- software.amazon.awssdk.services.connectcases.model.RelatedItemContent
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<RelatedItemContent.Builder,RelatedItemContent>
@Generated("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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceRelatedItemContent.Builderstatic classRelatedItemContent.Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RelatedItemContent.Builderbuilder()CommentContentcomment()Represents the content of a comment to be returned to agents.ContactContentcontact()Represents the content of a contact to be returned to agents.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)FileContentfile()Represents the content of a File to be returned to agents.static RelatedItemContentfromComment(Consumer<CommentContent.Builder> comment)Create an instance of this class withcomment()initialized to the given value.static RelatedItemContentfromComment(CommentContent comment)Create an instance of this class withcomment()initialized to the given value.static RelatedItemContentfromContact(Consumer<ContactContent.Builder> contact)Create an instance of this class withcontact()initialized to the given value.static RelatedItemContentfromContact(ContactContent contact)Create an instance of this class withcontact()initialized to the given value.static RelatedItemContentfromFile(Consumer<FileContent.Builder> file)Create an instance of this class withfile()initialized to the given value.static RelatedItemContentfromFile(FileContent file)Create an instance of this class withfile()initialized to the given value.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends RelatedItemContent.Builder>serializableBuilderClass()RelatedItemContent.BuildertoBuilder()StringtoString()Returns a string representation of this object.RelatedItemContent.Typetype()Retrieve an enum value representing which member of this object is populated.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
comment
public final CommentContent comment()
Represents the content of a comment to be returned to agents.
- Returns:
- Represents the content of a comment to be returned to agents.
-
contact
public final ContactContent contact()
Represents the content of a contact to be returned to agents.
- Returns:
- Represents the content of a contact to be returned to agents.
-
file
public final FileContent file()
Represents the content of a File to be returned to agents.
- Returns:
- Represents the content of a File to be returned to agents.
-
toBuilder
public RelatedItemContent.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<RelatedItemContent.Builder,RelatedItemContent>
-
builder
public static RelatedItemContent.Builder builder()
-
serializableBuilderClass
public static Class<? extends RelatedItemContent.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
fromComment
public static RelatedItemContent fromComment(CommentContent comment)
Create an instance of this class withcomment()initialized to the given value.Represents the content of a comment to be returned to agents.
- Parameters:
comment- Represents the content of a comment to be returned to agents.
-
fromComment
public static RelatedItemContent fromComment(Consumer<CommentContent.Builder> comment)
Create an instance of this class withcomment()initialized to the given value.Represents the content of a comment to be returned to agents.
- Parameters:
comment- Represents the content of a comment to be returned to agents.
-
fromContact
public static RelatedItemContent fromContact(ContactContent contact)
Create an instance of this class withcontact()initialized to the given value.Represents the content of a contact to be returned to agents.
- Parameters:
contact- Represents the content of a contact to be returned to agents.
-
fromContact
public static RelatedItemContent fromContact(Consumer<ContactContent.Builder> contact)
Create an instance of this class withcontact()initialized to the given value.Represents the content of a contact to be returned to agents.
- Parameters:
contact- Represents the content of a contact to be returned to agents.
-
fromFile
public static RelatedItemContent fromFile(FileContent file)
Create an instance of this class withfile()initialized to the given value.Represents the content of a File to be returned to agents.
- Parameters:
file- Represents the content of a File to be returned to agents.
-
fromFile
public static RelatedItemContent fromFile(Consumer<FileContent.Builder> file)
Create an instance of this class withfile()initialized to the given value.Represents the content of a File to be returned to agents.
- Parameters:
file- Represents the content of a File to be returned to agents.
-
type
public RelatedItemContent.Type type()
Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will beRelatedItemContent.Type.UNKNOWN_TO_SDK_VERSIONif 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 beRelatedItemContent.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set.
-
-