Interface Contact.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Contact.Builder,Contact>, SdkBuilder<Contact.Builder,Contact>, SdkPojo
Enclosing class:
Contact

public static interface Contact.Builder extends SdkPojo, CopyableBuilder<Contact.Builder,Contact>
  • Method Details

    • arn

      The Amazon Resource Name (ARN) for the contact.

      Parameters:
      arn - The Amazon Resource Name (ARN) for the contact.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • id

      The identifier for the contact.

      Parameters:
      id - The identifier for the contact.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • initialContactId

      Contact.Builder initialContactId(String initialContactId)

      If this contact is related to other contacts, this is the ID of the initial contact.

      Parameters:
      initialContactId - If this contact is related to other contacts, this is the ID of the initial contact.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • previousContactId

      Contact.Builder previousContactId(String previousContactId)

      If this contact is not the first contact, this is the ID of the previous contact.

      Parameters:
      previousContactId - If this contact is not the first contact, this is the ID of the previous contact.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • initiationMethod

      Contact.Builder initiationMethod(String initiationMethod)

      Indicates how the contact was initiated.

      Parameters:
      initiationMethod - Indicates how the contact was initiated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • initiationMethod

      Contact.Builder initiationMethod(ContactInitiationMethod initiationMethod)

      Indicates how the contact was initiated.

      Parameters:
      initiationMethod - Indicates how the contact was initiated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • name

      Contact.Builder name(String name)

      The name of the contact.

      Parameters:
      name - The name of the contact.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      Contact.Builder description(String description)

      The description of the contact.

      Parameters:
      description - The description of the contact.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • channel

      Contact.Builder channel(String channel)

      How the contact reached your contact center.

      Parameters:
      channel - How the contact reached your contact center.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • channel

      Contact.Builder channel(Channel channel)

      How the contact reached your contact center.

      Parameters:
      channel - How the contact reached your contact center.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • queueInfo

      Contact.Builder queueInfo(QueueInfo queueInfo)

      If this contact was queued, this contains information about the queue.

      Parameters:
      queueInfo - If this contact was queued, this contains information about the queue.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • queueInfo

      default Contact.Builder queueInfo(Consumer<QueueInfo.Builder> queueInfo)

      If this contact was queued, this contains information about the queue.

      This is a convenience method that creates an instance of the QueueInfo.Builder avoiding the need to create one manually via QueueInfo.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to queueInfo(QueueInfo).

      Parameters:
      queueInfo - a consumer that will call methods on QueueInfo.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • agentInfo

      Contact.Builder agentInfo(AgentInfo agentInfo)

      Information about the agent who accepted the contact.

      Parameters:
      agentInfo - Information about the agent who accepted the contact.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • agentInfo

      default Contact.Builder agentInfo(Consumer<AgentInfo.Builder> agentInfo)

      Information about the agent who accepted the contact.

      This is a convenience method that creates an instance of the AgentInfo.Builder avoiding the need to create one manually via AgentInfo.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to agentInfo(AgentInfo).

      Parameters:
      agentInfo - a consumer that will call methods on AgentInfo.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • initiationTimestamp

      Contact.Builder initiationTimestamp(Instant initiationTimestamp)

      The date and time this contact was initiated, in UTC time. For INBOUND, this is when the contact arrived. For OUTBOUND, this is when the agent began dialing. For CALLBACK, this is when the callback contact was created. For TRANSFER and QUEUE_TRANSFER, this is when the transfer was initiated. For API, this is when the request arrived. For EXTERNAL_OUTBOUND, this is when the agent started dialing the external participant. For MONITOR, this is when the supervisor started listening to a contact.

      Parameters:
      initiationTimestamp - The date and time this contact was initiated, in UTC time. For INBOUND, this is when the contact arrived. For OUTBOUND, this is when the agent began dialing. For CALLBACK, this is when the callback contact was created. For TRANSFER and QUEUE_TRANSFER, this is when the transfer was initiated. For API, this is when the request arrived. For EXTERNAL_OUTBOUND, this is when the agent started dialing the external participant. For MONITOR, this is when the supervisor started listening to a contact.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • disconnectTimestamp

      Contact.Builder disconnectTimestamp(Instant disconnectTimestamp)

      The timestamp when the customer endpoint disconnected from Amazon Connect.

      Parameters:
      disconnectTimestamp - The timestamp when the customer endpoint disconnected from Amazon Connect.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lastUpdateTimestamp

      Contact.Builder lastUpdateTimestamp(Instant lastUpdateTimestamp)

      The timestamp when contact was last updated.

      Parameters:
      lastUpdateTimestamp - The timestamp when contact was last updated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • scheduledTimestamp

      Contact.Builder scheduledTimestamp(Instant scheduledTimestamp)

      The timestamp, in Unix epoch time format, at which to start running the inbound flow.

      Parameters:
      scheduledTimestamp - The timestamp, in Unix epoch time format, at which to start running the inbound flow.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • relatedContactId

      Contact.Builder relatedContactId(String relatedContactId)

      The contactId that is related to this contact.

      Parameters:
      relatedContactId - The contactId that is related to this contact.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • wisdomInfo

      Contact.Builder wisdomInfo(WisdomInfo wisdomInfo)

      Information about Amazon Connect Wisdom.

      Parameters:
      wisdomInfo - Information about Amazon Connect Wisdom.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • wisdomInfo

      default Contact.Builder wisdomInfo(Consumer<WisdomInfo.Builder> wisdomInfo)

      Information about Amazon Connect Wisdom.

      This is a convenience method that creates an instance of the WisdomInfo.Builder avoiding the need to create one manually via WisdomInfo.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to wisdomInfo(WisdomInfo).

      Parameters:
      wisdomInfo - a consumer that will call methods on WisdomInfo.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: