Class RelatedItemInputContent
- java.lang.Object
-
- software.amazon.awssdk.services.connectcases.model.RelatedItemInputContent
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<RelatedItemInputContent.Builder,RelatedItemInputContent>
@Generated("software.amazon.awssdk:codegen") public final class RelatedItemInputContent extends Object implements SdkPojo, Serializable, ToCopyableBuilder<RelatedItemInputContent.Builder,RelatedItemInputContent>
Represents the content of a related item to be created.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceRelatedItemInputContent.Builderstatic classRelatedItemInputContent.Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RelatedItemInputContent.Builderbuilder()CommentContentcomment()Represents the content of a comment to be returned to agents.Contactcontact()Object representing a contact in Amazon Connect as an API request field.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)FileContentfile()A file of related items.static RelatedItemInputContentfromComment(Consumer<CommentContent.Builder> comment)Create an instance of this class withcomment()initialized to the given value.static RelatedItemInputContentfromComment(CommentContent comment)Create an instance of this class withcomment()initialized to the given value.static RelatedItemInputContentfromContact(Consumer<Contact.Builder> contact)Create an instance of this class withcontact()initialized to the given value.static RelatedItemInputContentfromContact(Contact contact)Create an instance of this class withcontact()initialized to the given value.static RelatedItemInputContentfromFile(Consumer<FileContent.Builder> file)Create an instance of this class withfile()initialized to the given value.static RelatedItemInputContentfromFile(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 RelatedItemInputContent.Builder>serializableBuilderClass()RelatedItemInputContent.BuildertoBuilder()StringtoString()Returns a string representation of this object.RelatedItemInputContent.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 Contact contact()
Object representing a contact in Amazon Connect as an API request field.
- Returns:
- Object representing a contact in Amazon Connect as an API request field.
-
file
public final FileContent file()
A file of related items.
- Returns:
- A file of related items.
-
toBuilder
public RelatedItemInputContent.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<RelatedItemInputContent.Builder,RelatedItemInputContent>
-
builder
public static RelatedItemInputContent.Builder builder()
-
serializableBuilderClass
public static Class<? extends RelatedItemInputContent.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 RelatedItemInputContent 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 RelatedItemInputContent 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 RelatedItemInputContent fromContact(Contact contact)
Create an instance of this class withcontact()initialized to the given value.Object representing a contact in Amazon Connect as an API request field.
- Parameters:
contact- Object representing a contact in Amazon Connect as an API request field.
-
fromContact
public static RelatedItemInputContent fromContact(Consumer<Contact.Builder> contact)
Create an instance of this class withcontact()initialized to the given value.Object representing a contact in Amazon Connect as an API request field.
- Parameters:
contact- Object representing a contact in Amazon Connect as an API request field.
-
fromFile
public static RelatedItemInputContent fromFile(FileContent file)
Create an instance of this class withfile()initialized to the given value.A file of related items.
- Parameters:
file- A file of related items.
-
fromFile
public static RelatedItemInputContent fromFile(Consumer<FileContent.Builder> file)
Create an instance of this class withfile()initialized to the given value.A file of related items.
- Parameters:
file- A file of related items.
-
type
public RelatedItemInputContent.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 beRelatedItemInputContent.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 beRelatedItemInputContent.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set.
-
-