Interface CreateContactRequest.Builder

    • Method Detail

      • alias

        CreateContactRequest.Builder alias​(String alias)

        The short name to quickly identify a contact or escalation plan. The contact alias must be unique and identifiable.

        Parameters:
        alias - The short name to quickly identify a contact or escalation plan. The contact alias must be unique and identifiable.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • displayName

        CreateContactRequest.Builder displayName​(String displayName)

        The full name of the contact or escalation plan.

        Parameters:
        displayName - The full name of the contact or escalation plan.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • type

        CreateContactRequest.Builder type​(String type)

        To create an escalation plan use ESCALATION. To create a contact use PERSONAL.

        Parameters:
        type - To create an escalation plan use ESCALATION. To create a contact use PERSONAL.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ContactType, ContactType
      • type

        CreateContactRequest.Builder type​(ContactType type)

        To create an escalation plan use ESCALATION. To create a contact use PERSONAL.

        Parameters:
        type - To create an escalation plan use ESCALATION. To create a contact use PERSONAL.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ContactType, ContactType
      • plan

        CreateContactRequest.Builder plan​(Plan plan)

        A list of stages. A contact has an engagement plan with stages that contact specified contact channels. An escalation plan uses stages that contact specified contacts.

        Parameters:
        plan - A list of stages. A contact has an engagement plan with stages that contact specified contact channels. An escalation plan uses stages that contact specified contacts.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • plan

        default CreateContactRequest.Builder plan​(Consumer<Plan.Builder> plan)

        A list of stages. A contact has an engagement plan with stages that contact specified contact channels. An escalation plan uses stages that contact specified contacts.

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

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

        Parameters:
        plan - a consumer that will call methods on Plan.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        plan(Plan)
      • tags

        CreateContactRequest.Builder tags​(Collection<Tag> tags)

        Adds a tag to the target. You can only tag resources created in the first Region of your replication set.

        Parameters:
        tags - Adds a tag to the target. You can only tag resources created in the first Region of your replication set.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        CreateContactRequest.Builder tags​(Tag... tags)

        Adds a tag to the target. You can only tag resources created in the first Region of your replication set.

        Parameters:
        tags - Adds a tag to the target. You can only tag resources created in the first Region of your replication set.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        CreateContactRequest.Builder tags​(Consumer<Tag.Builder>... tags)

        Adds a tag to the target. You can only tag resources created in the first Region of your replication set.

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

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #tags(List).

        Parameters:
        tags - a consumer that will call methods on Tag.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #tags(java.util.Collection)
      • idempotencyToken

        CreateContactRequest.Builder idempotencyToken​(String idempotencyToken)

        A token ensuring that the operation is called only once with the specified details.

        Parameters:
        idempotencyToken - A token ensuring that the operation is called only once with the specified details.
        Returns:
        Returns a reference to this object so that method calls can be chained together.