@Generated(value="software.amazon.awssdk:codegen") public final class ContactMethod extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ContactMethod.Builder,ContactMethod>
Describes a contact method.
A contact method is a way to send you notifications. For more information, see Notifications in Amazon Lightsail.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ContactMethod.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
arn()
The Amazon Resource Name (ARN) of the contact method.
|
static ContactMethod.Builder |
builder() |
String |
contactEndpoint()
The destination of the contact method, such as an email address or a mobile phone number.
|
Instant |
createdAt()
The timestamp when the contact method was created.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
ResourceLocation |
location()
An object that describes the location of the contact method, such as the Amazon Web Services Region and
Availability Zone.
|
String |
name()
The name of the contact method.
|
ContactProtocol |
protocol()
The protocol of the contact method, such as email or SMS (text messaging).
|
String |
protocolAsString()
The protocol of the contact method, such as email or SMS (text messaging).
|
ResourceType |
resourceType()
The Lightsail resource type (e.g.,
ContactMethod). |
String |
resourceTypeAsString()
The Lightsail resource type (e.g.,
ContactMethod). |
List<SdkField<?>> |
sdkFields() |
static Class<? extends ContactMethod.Builder> |
serializableBuilderClass() |
ContactMethodStatus |
status()
The current status of the contact method.
|
String |
statusAsString()
The current status of the contact method.
|
String |
supportCode()
The support code.
|
ContactMethod.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String contactEndpoint()
The destination of the contact method, such as an email address or a mobile phone number.
public final 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.
If the service returns an enum value that is not available in the current SDK version, status will
return ContactMethodStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from statusAsString().
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.
ContactMethodStatuspublic final String statusAsString()
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.
If the service returns an enum value that is not available in the current SDK version, status will
return ContactMethodStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from statusAsString().
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.
ContactMethodStatuspublic final ContactProtocol protocol()
The protocol of the contact method, such as email or SMS (text messaging).
If the service returns an enum value that is not available in the current SDK version, protocol will
return ContactProtocol.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
protocolAsString().
ContactProtocolpublic final String protocolAsString()
The protocol of the contact method, such as email or SMS (text messaging).
If the service returns an enum value that is not available in the current SDK version, protocol will
return ContactProtocol.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
protocolAsString().
ContactProtocolpublic final String name()
The name of the contact method.
public final String arn()
The Amazon Resource Name (ARN) of the contact method.
public final Instant createdAt()
The timestamp when the contact method was created.
public final ResourceLocation location()
An object that describes the location of the contact method, such as the Amazon Web Services Region and Availability Zone.
public final ResourceType resourceType()
The Lightsail resource type (e.g., ContactMethod).
If the service returns an enum value that is not available in the current SDK version, resourceType will
return ResourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
resourceTypeAsString().
ContactMethod).ResourceTypepublic final String resourceTypeAsString()
The Lightsail resource type (e.g., ContactMethod).
If the service returns an enum value that is not available in the current SDK version, resourceType will
return ResourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
resourceTypeAsString().
ContactMethod).ResourceTypepublic final 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.
public ContactMethod.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<ContactMethod.Builder,ContactMethod>public static ContactMethod.Builder builder()
public static Class<? extends ContactMethod.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.