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 Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ContactMethod.Builderarn(String arn)The Amazon Resource Name (ARN) of the contact method.ContactMethod.BuildercontactEndpoint(String contactEndpoint)The destination of the contact method, such as an email address or a mobile phone number.ContactMethod.BuildercreatedAt(Instant createdAt)The timestamp when the contact method was created.default ContactMethod.Builderlocation(Consumer<ResourceLocation.Builder> location)An object that describes the location of the contact method, such as the Amazon Web Services Region and Availability Zone.ContactMethod.Builderlocation(ResourceLocation location)An object that describes the location of the contact method, such as the Amazon Web Services Region and Availability Zone.ContactMethod.Buildername(String name)The name of the contact method.ContactMethod.Builderprotocol(String protocol)The protocol of the contact method, such as email or SMS (text messaging).ContactMethod.Builderprotocol(ContactProtocol protocol)The protocol of the contact method, such as email or SMS (text messaging).ContactMethod.BuilderresourceType(String resourceType)The Lightsail resource type of the contact method.ContactMethod.BuilderresourceType(ResourceType resourceType)The Lightsail resource type of the contact method.ContactMethod.Builderstatus(String status)The current status of the contact method.ContactMethod.Builderstatus(ContactMethodStatus status)The current status of the contact method.ContactMethod.BuildersupportCode(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 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.
-
location
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.
This is a convenience method that creates an instance of theResourceLocation.Builderavoiding the need to create one manually viaResourceLocation.builder().When the
Consumercompletes,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:
location(ResourceLocation)
-
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.
-
-