Interface ContactMethod.Builder

    • Method Detail

      • 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:
        ContactMethodStatus, ContactMethodStatus
      • status

        ContactMethod.Builder status​(ContactMethodStatus 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:
        ContactMethodStatus, ContactMethodStatus
      • 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:
        ContactProtocol, ContactProtocol
      • protocol

        ContactMethod.Builder protocol​(ContactProtocol 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:
        ContactProtocol, ContactProtocol
      • name

        ContactMethod.Builder name​(String 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

        ContactMethod.Builder arn​(String 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

        ContactMethod.Builder location​(ResourceLocation 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.
      • 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, ResourceType
      • 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:
        ResourceType, ResourceType
      • 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.