@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class NewSessionDetails extends Object implements Serializable, Cloneable, StructuredPojo
Payload of chat properties to apply when starting a new contact.
Constructor and Description |
---|
NewSessionDetails() |
Modifier and Type | Method and Description |
---|---|
NewSessionDetails |
addAttributesEntry(String key,
String value)
Add a single Attributes entry
|
NewSessionDetails |
clearAttributesEntries()
Removes all the entries added into Attributes.
|
NewSessionDetails |
clone() |
boolean |
equals(Object obj) |
Map<String,String> |
getAttributes()
A custom key-value pair using an attribute map.
|
ParticipantDetails |
getParticipantDetails() |
ChatStreamingConfiguration |
getStreamingConfiguration() |
List<String> |
getSupportedMessagingContentTypes()
The supported chat message content types.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAttributes(Map<String,String> attributes)
A custom key-value pair using an attribute map.
|
void |
setParticipantDetails(ParticipantDetails participantDetails) |
void |
setStreamingConfiguration(ChatStreamingConfiguration streamingConfiguration) |
void |
setSupportedMessagingContentTypes(Collection<String> supportedMessagingContentTypes)
The supported chat message content types.
|
String |
toString()
Returns a string representation of this object.
|
NewSessionDetails |
withAttributes(Map<String,String> attributes)
A custom key-value pair using an attribute map.
|
NewSessionDetails |
withParticipantDetails(ParticipantDetails participantDetails) |
NewSessionDetails |
withStreamingConfiguration(ChatStreamingConfiguration streamingConfiguration) |
NewSessionDetails |
withSupportedMessagingContentTypes(Collection<String> supportedMessagingContentTypes)
The supported chat message content types.
|
NewSessionDetails |
withSupportedMessagingContentTypes(String... supportedMessagingContentTypes)
The supported chat message content types.
|
public List<String> getSupportedMessagingContentTypes()
The supported chat message content types. Supported types are text/plain
, text/markdown
, application/json
, application/vnd.amazonaws.connect.message.interactive
, and
application/vnd.amazonaws.connect.message.interactive.response
.
Content types must always contain text/plain
. You can then put any other supported type in the
list. For example, all the following lists are valid because they contain text/plain
:
[text/plain, text/markdown, application/json]
, [text/markdown, text/plain]
,
[text/plain, application/json, application/vnd.amazonaws.connect.message.interactive.response]
.
text/plain
,
text/markdown
, application/json
,
application/vnd.amazonaws.connect.message.interactive
, and
application/vnd.amazonaws.connect.message.interactive.response
.
Content types must always contain text/plain
. You can then put any other supported type in
the list. For example, all the following lists are valid because they contain text/plain
:
[text/plain, text/markdown, application/json]
, [text/markdown, text/plain]
,
[text/plain, application/json, application/vnd.amazonaws.connect.message.interactive.response]
.
public void setSupportedMessagingContentTypes(Collection<String> supportedMessagingContentTypes)
The supported chat message content types. Supported types are text/plain
, text/markdown
, application/json
, application/vnd.amazonaws.connect.message.interactive
, and
application/vnd.amazonaws.connect.message.interactive.response
.
Content types must always contain text/plain
. You can then put any other supported type in the
list. For example, all the following lists are valid because they contain text/plain
:
[text/plain, text/markdown, application/json]
, [text/markdown, text/plain]
,
[text/plain, application/json, application/vnd.amazonaws.connect.message.interactive.response]
.
supportedMessagingContentTypes
- The supported chat message content types. Supported types are text/plain
,
text/markdown
, application/json
,
application/vnd.amazonaws.connect.message.interactive
, and
application/vnd.amazonaws.connect.message.interactive.response
.
Content types must always contain text/plain
. You can then put any other supported type in
the list. For example, all the following lists are valid because they contain text/plain
:
[text/plain, text/markdown, application/json]
, [text/markdown, text/plain]
,
[text/plain, application/json, application/vnd.amazonaws.connect.message.interactive.response]
.
public NewSessionDetails withSupportedMessagingContentTypes(String... supportedMessagingContentTypes)
The supported chat message content types. Supported types are text/plain
, text/markdown
, application/json
, application/vnd.amazonaws.connect.message.interactive
, and
application/vnd.amazonaws.connect.message.interactive.response
.
Content types must always contain text/plain
. You can then put any other supported type in the
list. For example, all the following lists are valid because they contain text/plain
:
[text/plain, text/markdown, application/json]
, [text/markdown, text/plain]
,
[text/plain, application/json, application/vnd.amazonaws.connect.message.interactive.response]
.
NOTE: This method appends the values to the existing list (if any). Use
setSupportedMessagingContentTypes(java.util.Collection)
or
withSupportedMessagingContentTypes(java.util.Collection)
if you want to override the existing values.
supportedMessagingContentTypes
- The supported chat message content types. Supported types are text/plain
,
text/markdown
, application/json
,
application/vnd.amazonaws.connect.message.interactive
, and
application/vnd.amazonaws.connect.message.interactive.response
.
Content types must always contain text/plain
. You can then put any other supported type in
the list. For example, all the following lists are valid because they contain text/plain
:
[text/plain, text/markdown, application/json]
, [text/markdown, text/plain]
,
[text/plain, application/json, application/vnd.amazonaws.connect.message.interactive.response]
.
public NewSessionDetails withSupportedMessagingContentTypes(Collection<String> supportedMessagingContentTypes)
The supported chat message content types. Supported types are text/plain
, text/markdown
, application/json
, application/vnd.amazonaws.connect.message.interactive
, and
application/vnd.amazonaws.connect.message.interactive.response
.
Content types must always contain text/plain
. You can then put any other supported type in the
list. For example, all the following lists are valid because they contain text/plain
:
[text/plain, text/markdown, application/json]
, [text/markdown, text/plain]
,
[text/plain, application/json, application/vnd.amazonaws.connect.message.interactive.response]
.
supportedMessagingContentTypes
- The supported chat message content types. Supported types are text/plain
,
text/markdown
, application/json
,
application/vnd.amazonaws.connect.message.interactive
, and
application/vnd.amazonaws.connect.message.interactive.response
.
Content types must always contain text/plain
. You can then put any other supported type in
the list. For example, all the following lists are valid because they contain text/plain
:
[text/plain, text/markdown, application/json]
, [text/markdown, text/plain]
,
[text/plain, application/json, application/vnd.amazonaws.connect.message.interactive.response]
.
public void setParticipantDetails(ParticipantDetails participantDetails)
participantDetails
- public ParticipantDetails getParticipantDetails()
public NewSessionDetails withParticipantDetails(ParticipantDetails participantDetails)
participantDetails
- public Map<String,String> getAttributes()
A custom key-value pair using an attribute map. The attributes are standard Amazon Connect attributes. They can be accessed in flows just like any other contact attributes.
There can be up to 32,768 UTF-8 bytes across all key-value pairs per contact. Attribute keys can include only alphanumeric, dash, and underscore characters.
There can be up to 32,768 UTF-8 bytes across all key-value pairs per contact. Attribute keys can include only alphanumeric, dash, and underscore characters.
public void setAttributes(Map<String,String> attributes)
A custom key-value pair using an attribute map. The attributes are standard Amazon Connect attributes. They can be accessed in flows just like any other contact attributes.
There can be up to 32,768 UTF-8 bytes across all key-value pairs per contact. Attribute keys can include only alphanumeric, dash, and underscore characters.
attributes
- A custom key-value pair using an attribute map. The attributes are standard Amazon Connect attributes.
They can be accessed in flows just like any other contact attributes.
There can be up to 32,768 UTF-8 bytes across all key-value pairs per contact. Attribute keys can include only alphanumeric, dash, and underscore characters.
public NewSessionDetails withAttributes(Map<String,String> attributes)
A custom key-value pair using an attribute map. The attributes are standard Amazon Connect attributes. They can be accessed in flows just like any other contact attributes.
There can be up to 32,768 UTF-8 bytes across all key-value pairs per contact. Attribute keys can include only alphanumeric, dash, and underscore characters.
attributes
- A custom key-value pair using an attribute map. The attributes are standard Amazon Connect attributes.
They can be accessed in flows just like any other contact attributes.
There can be up to 32,768 UTF-8 bytes across all key-value pairs per contact. Attribute keys can include only alphanumeric, dash, and underscore characters.
public NewSessionDetails addAttributesEntry(String key, String value)
public NewSessionDetails clearAttributesEntries()
public void setStreamingConfiguration(ChatStreamingConfiguration streamingConfiguration)
streamingConfiguration
- public ChatStreamingConfiguration getStreamingConfiguration()
public NewSessionDetails withStreamingConfiguration(ChatStreamingConfiguration streamingConfiguration)
streamingConfiguration
- public String toString()
toString
in class Object
Object.toString()
public NewSessionDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.