Class AgentContactReference
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<AgentContactReference.Builder,
AgentContactReference>
Information about the contact associated to the user.
- See Also:
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal ContactState
The state of the contact.final String
The state of the contact.builder()
final Channel
channel()
The channel of the contact.final String
The channel of the contact.final Instant
The time at which the contact was connected to an agent.final String
The identifier of the contact in this instance of Amazon Connect.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final int
hashCode()
final ContactInitiationMethod
How the contact was initiated.final String
How the contact was initiated.final QueueReference
queue()
Returns the value of the Queue property for this object.static Class
<? extends AgentContactReference.Builder> final Instant
The epoch timestamp when the contact state started.Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
contactId
The identifier of the contact in this instance of Amazon Connect.
- Returns:
- The identifier of the contact in this instance of Amazon Connect.
-
channel
The channel of the contact.
If the service returns an enum value that is not available in the current SDK version,
channel
will returnChannel.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromchannelAsString()
.- Returns:
- The channel of the contact.
- See Also:
-
channelAsString
The channel of the contact.
If the service returns an enum value that is not available in the current SDK version,
channel
will returnChannel.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromchannelAsString()
.- Returns:
- The channel of the contact.
- See Also:
-
initiationMethod
How the contact was initiated.
If the service returns an enum value that is not available in the current SDK version,
initiationMethod
will returnContactInitiationMethod.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available frominitiationMethodAsString()
.- Returns:
- How the contact was initiated.
- See Also:
-
initiationMethodAsString
How the contact was initiated.
If the service returns an enum value that is not available in the current SDK version,
initiationMethod
will returnContactInitiationMethod.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available frominitiationMethodAsString()
.- Returns:
- How the contact was initiated.
- See Also:
-
agentContactState
The state of the contact.
When
AgentContactState
is set toCONNECTED_ONHOLD
,StateStartTimestamp
is not changed. Instead,StateStartTimestamp
reflects the time the contact wasCONNECTED
to the agent.If the service returns an enum value that is not available in the current SDK version,
agentContactState
will returnContactState.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromagentContactStateAsString()
.- Returns:
- The state of
the contact.
When
AgentContactState
is set toCONNECTED_ONHOLD
,StateStartTimestamp
is not changed. Instead,StateStartTimestamp
reflects the time the contact wasCONNECTED
to the agent. - See Also:
-
agentContactStateAsString
The state of the contact.
When
AgentContactState
is set toCONNECTED_ONHOLD
,StateStartTimestamp
is not changed. Instead,StateStartTimestamp
reflects the time the contact wasCONNECTED
to the agent.If the service returns an enum value that is not available in the current SDK version,
agentContactState
will returnContactState.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromagentContactStateAsString()
.- Returns:
- The state of
the contact.
When
AgentContactState
is set toCONNECTED_ONHOLD
,StateStartTimestamp
is not changed. Instead,StateStartTimestamp
reflects the time the contact wasCONNECTED
to the agent. - See Also:
-
stateStartTimestamp
The epoch timestamp when the contact state started.
- Returns:
- The epoch timestamp when the contact state started.
-
connectedToAgentTimestamp
The time at which the contact was connected to an agent.
- Returns:
- The time at which the contact was connected to an agent.
-
queue
Returns the value of the Queue property for this object.- Returns:
- The value of the Queue property for this object.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<AgentContactReference.Builder,
AgentContactReference> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
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. -
getValueForField
-
sdkFields
-