public static interface ContactMethod.Builder extends SdkPojo, CopyableBuilder<ContactMethod.Builder,ContactMethod>
Modifier and Type | Method and Description |
---|---|
ContactMethod.Builder |
arn(String arn)
The Amazon Resource Name (ARN) of the contact method.
|
ContactMethod.Builder |
contactEndpoint(String contactEndpoint)
The destination of the contact method, such as an email address or a mobile phone number.
|
ContactMethod.Builder |
createdAt(Instant createdAt)
The timestamp when the contact method was created.
|
default ContactMethod.Builder |
location(Consumer<ResourceLocation.Builder> location)
Sets the value of the Location property for this object.
|
ContactMethod.Builder |
location(ResourceLocation location)
Sets the value of the Location property for this object.
|
ContactMethod.Builder |
name(String name)
The name of the contact method.
|
ContactMethod.Builder |
protocol(ContactProtocol protocol)
The protocol of the contact method, such as email or SMS (text messaging).
|
ContactMethod.Builder |
protocol(String protocol)
The protocol of the contact method, such as email or SMS (text messaging).
|
ContactMethod.Builder |
resourceType(ResourceType resourceType)
The Lightsail resource type (e.g.,
ContactMethod ). |
ContactMethod.Builder |
resourceType(String resourceType)
The Lightsail resource type (e.g.,
ContactMethod ). |
ContactMethod.Builder |
status(ContactMethodStatus status)
The current status of the contact method.
|
ContactMethod.Builder |
status(String status)
The current status of the contact method.
|
ContactMethod.Builder |
supportCode(String supportCode)
The support code.
|
equalsBySdkFields, sdkFields
copy
applyMutation, build
ContactMethod.Builder contactEndpoint(String contactEndpoint)
The destination of the contact method, such as an email address or a mobile phone number.
contactEndpoint
- The destination of the contact method, such as an email address or a mobile phone number.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.
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.
ContactMethodStatus
,
ContactMethodStatus
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.
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.
ContactMethodStatus
,
ContactMethodStatus
ContactMethod.Builder protocol(String protocol)
The protocol of the contact method, such as email or SMS (text messaging).
protocol
- The protocol of the contact method, such as email or SMS (text messaging).ContactProtocol
,
ContactProtocol
ContactMethod.Builder protocol(ContactProtocol protocol)
The protocol of the contact method, such as email or SMS (text messaging).
protocol
- The protocol of the contact method, such as email or SMS (text messaging).ContactProtocol
,
ContactProtocol
ContactMethod.Builder name(String name)
The name of the contact method.
name
- The name of the contact method.ContactMethod.Builder arn(String arn)
The Amazon Resource Name (ARN) of the contact method.
arn
- The Amazon Resource Name (ARN) of the contact method.ContactMethod.Builder createdAt(Instant createdAt)
The timestamp when the contact method was created.
createdAt
- The timestamp when the contact method was created.ContactMethod.Builder location(ResourceLocation location)
location
- The new value for the Location property for this object.default ContactMethod.Builder location(Consumer<ResourceLocation.Builder> location)
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)
.location
- a consumer that will call methods on ResourceLocation.Builder
location(ResourceLocation)
ContactMethod.Builder resourceType(String resourceType)
The Lightsail resource type (e.g., ContactMethod
).
resourceType
- The Lightsail resource type (e.g., ContactMethod
).ResourceType
,
ResourceType
ContactMethod.Builder resourceType(ResourceType resourceType)
The Lightsail resource type (e.g., ContactMethod
).
resourceType
- The Lightsail resource type (e.g., ContactMethod
).ResourceType
,
ResourceType
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.
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.