Interface ContactMethod.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ContactMethod.Builder,
,ContactMethod> SdkBuilder<ContactMethod.Builder,
,ContactMethod> SdkPojo
- Enclosing class:
ContactMethod
-
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) of the contact method.contactEndpoint
(String contactEndpoint) The destination of the contact method, such as an email address or a mobile phone number.The timestamp when the contact method was created.default ContactMethod.Builder
location
(Consumer<ResourceLocation.Builder> location) An object that describes the location of the contact method, such as the Amazon Web Services Region and Availability Zone.location
(ResourceLocation location) An object that describes the location of the contact method, such as the Amazon Web Services Region and Availability Zone.The name of the contact method.The protocol of the contact method, such as email or SMS (text messaging).protocol
(ContactProtocol protocol) The protocol of the contact method, such as email or SMS (text messaging).resourceType
(String resourceType) The Lightsail resource type of the contact method.resourceType
(ResourceType resourceType) The Lightsail resource type of the contact method.The current status of the contact method.status
(ContactMethodStatus status) The current status of the contact method.supportCode
(String supportCode) The support code.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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
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
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
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 theResourceLocation.Builder
avoiding the need to create one manually viaResourceLocation.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tolocation(ResourceLocation)
.- Parameters:
location
- a consumer that will call methods onResourceLocation.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
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
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.
-