Interface ContactMethod.Builder

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

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

    • contactEndpoint

      ContactMethod.Builder contactEndpoint(String contactEndpoint)

      The destination of the contact method, such as an email address or a mobile phone number.

      Parameters:
      contactEndpoint - The destination of the contact method, such as an email address or a mobile phone number.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • status

      ContactMethod.Builder status(String status)

      The current status of the contact method.

      A contact method has the following possible status:

      • PendingVerification - The contact method has not yet been verified, and the verification has not yet expired.

      • Valid - The contact method has been verified.

      • InValid - An attempt was made to verify the contact method, but the verification has expired.

      Parameters:
      status - The current status of the contact method.

      A contact method has the following possible status:

      • PendingVerification - The contact method has not yet been verified, and the verification has not yet expired.

      • Valid - The contact method has been verified.

      • InValid - An attempt was made to verify the contact method, but the verification has expired.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      The current status of the contact method.

      A contact method has the following possible status:

      • PendingVerification - The contact method has not yet been verified, and the verification has not yet expired.

      • Valid - The contact method has been verified.

      • InValid - An attempt was made to verify the contact method, but the verification has expired.

      Parameters:
      status - The current status of the contact method.

      A contact method has the following possible status:

      • PendingVerification - The contact method has not yet been verified, and the verification has not yet expired.

      • Valid - The contact method has been verified.

      • InValid - An attempt was made to verify the contact method, but the verification has expired.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • protocol

      ContactMethod.Builder protocol(String protocol)

      The protocol of the contact method, such as email or SMS (text messaging).

      Parameters:
      protocol - The protocol of the contact method, such as email or SMS (text messaging).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • protocol

      The protocol of the contact method, such as email or SMS (text messaging).

      Parameters:
      protocol - The protocol of the contact method, such as email or SMS (text messaging).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • name

      The name of the contact method.

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

      The Amazon Resource Name (ARN) of the contact method.

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

      ContactMethod.Builder createdAt(Instant createdAt)

      The timestamp when the contact method was created.

      Parameters:
      createdAt - The timestamp when the contact method was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • location

      An object that describes the location of the contact method, such as the Amazon Web Services Region and Availability Zone.

      Parameters:
      location - An object that describes the location of the contact method, such as the Amazon Web Services Region and Availability Zone.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • location

      An object that describes the location of the contact method, such as the Amazon Web Services Region and Availability Zone.

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

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

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

      ContactMethod.Builder resourceType(String resourceType)

      The Lightsail resource type of the contact method.

      Parameters:
      resourceType - The Lightsail resource type of the contact method.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • resourceType

      ContactMethod.Builder resourceType(ResourceType resourceType)

      The Lightsail resource type of the contact method.

      Parameters:
      resourceType - The Lightsail resource type of the contact method.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • supportCode

      ContactMethod.Builder supportCode(String supportCode)

      The support code. Include this code in your email to support when you have questions about your Lightsail contact method. This code enables our support team to look up your Lightsail information more easily.

      Parameters:
      supportCode - The support code. Include this code in your email to support when you have questions about your Lightsail contact method. This code enables our support team to look up your Lightsail information more easily.
      Returns:
      Returns a reference to this object so that method calls can be chained together.