Class AgentContactReference
- java.lang.Object
-
- software.amazon.awssdk.services.connect.model.AgentContactReference
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<AgentContactReference.Builder,AgentContactReference>
@Generated("software.amazon.awssdk:codegen") public final class AgentContactReference extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AgentContactReference.Builder,AgentContactReference>
Information about the contact associated to the user.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAgentContactReference.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ContactStateagentContactState()The state of the contact.StringagentContactStateAsString()The state of the contact.static AgentContactReference.Builderbuilder()Channelchannel()The channel of the contact.StringchannelAsString()The channel of the contact.InstantconnectedToAgentTimestamp()The time at which the contact was connected to an agent.StringcontactId()The identifier of the contact in this instance of Amazon Connect.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()ContactInitiationMethodinitiationMethod()How the contact was initiated.StringinitiationMethodAsString()How the contact was initiated.QueueReferencequeue()Returns the value of the Queue property for this object.List<SdkField<?>>sdkFields()static Class<? extends AgentContactReference.Builder>serializableBuilderClass()InstantstateStartTimestamp()The epoch timestamp when the contact state started.AgentContactReference.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
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
-
contactId
public final String 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
public final Channel channel()
The channel of the contact.
If the service returns an enum value that is not available in the current SDK version,
channelwill returnChannel.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromchannelAsString().- Returns:
- The channel of the contact.
- See Also:
Channel
-
channelAsString
public final String channelAsString()
The channel of the contact.
If the service returns an enum value that is not available in the current SDK version,
channelwill returnChannel.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromchannelAsString().- Returns:
- The channel of the contact.
- See Also:
Channel
-
initiationMethod
public final ContactInitiationMethod initiationMethod()
How the contact was initiated.
If the service returns an enum value that is not available in the current SDK version,
initiationMethodwill returnContactInitiationMethod.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frominitiationMethodAsString().- Returns:
- How the contact was initiated.
- See Also:
ContactInitiationMethod
-
initiationMethodAsString
public final String initiationMethodAsString()
How the contact was initiated.
If the service returns an enum value that is not available in the current SDK version,
initiationMethodwill returnContactInitiationMethod.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frominitiationMethodAsString().- Returns:
- How the contact was initiated.
- See Also:
ContactInitiationMethod
-
agentContactState
public final ContactState agentContactState()
The state of the contact.
When
AgentContactStateis set toCONNECTED_ONHOLD,StateStartTimestampis not changed. Instead,StateStartTimestampreflects the time the contact wasCONNECTEDto the agent.If the service returns an enum value that is not available in the current SDK version,
agentContactStatewill returnContactState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromagentContactStateAsString().- Returns:
- The state of
the contact.
When
AgentContactStateis set toCONNECTED_ONHOLD,StateStartTimestampis not changed. Instead,StateStartTimestampreflects the time the contact wasCONNECTEDto the agent. - See Also:
ContactState
-
agentContactStateAsString
public final String agentContactStateAsString()
The state of the contact.
When
AgentContactStateis set toCONNECTED_ONHOLD,StateStartTimestampis not changed. Instead,StateStartTimestampreflects the time the contact wasCONNECTEDto the agent.If the service returns an enum value that is not available in the current SDK version,
agentContactStatewill returnContactState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromagentContactStateAsString().- Returns:
- The state of
the contact.
When
AgentContactStateis set toCONNECTED_ONHOLD,StateStartTimestampis not changed. Instead,StateStartTimestampreflects the time the contact wasCONNECTEDto the agent. - See Also:
ContactState
-
stateStartTimestamp
public final Instant stateStartTimestamp()
The epoch timestamp when the contact state started.
- Returns:
- The epoch timestamp when the contact state started.
-
connectedToAgentTimestamp
public final Instant 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
public final QueueReference queue()
Returns the value of the Queue property for this object.- Returns:
- The value of the Queue property for this object.
-
toBuilder
public AgentContactReference.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<AgentContactReference.Builder,AgentContactReference>
-
builder
public static AgentContactReference.Builder builder()
-
serializableBuilderClass
public static Class<? extends AgentContactReference.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.
-
-