Class EmailContact
- java.lang.Object
-
- software.amazon.awssdk.services.notificationscontacts.model.EmailContact
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<EmailContact.Builder,EmailContact>
@Generated("software.amazon.awssdk:codegen") public final class EmailContact extends Object implements SdkPojo, Serializable, ToCopyableBuilder<EmailContact.Builder,EmailContact>
An email contact.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceEmailContact.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringaddress()The email address this email contact points to.Stringarn()The Amazon Resource Name (ARN) of the email contact.static EmailContact.Builderbuilder()InstantcreationTime()The creation time of the resource.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringname()The name of the email contact.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends EmailContact.Builder>serializableBuilderClass()EmailContactStatusstatus()The status of the email contact.StringstatusAsString()The status of the email contact.EmailContact.BuildertoBuilder()StringtoString()Returns a string representation of this object.InstantupdateTime()The time the resource was last updated.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
arn
public final String arn()
The Amazon Resource Name (ARN) of the email contact.
- Returns:
- The Amazon Resource Name (ARN) of the email contact.
-
name
public final String name()
The name of the email contact.
- Returns:
- The name of the email contact.
-
address
public final String address()
The email address this email contact points to. The activation email and any subscribed emails are sent here.
- Returns:
- The email address this email contact points to. The activation email and any subscribed emails are sent here.
-
status
public final EmailContactStatus status()
The status of the email contact. Only activated email contacts receive emails.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnEmailContactStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The status of the email contact. Only activated email contacts receive emails.
- See Also:
EmailContactStatus
-
statusAsString
public final String statusAsString()
The status of the email contact. Only activated email contacts receive emails.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnEmailContactStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The status of the email contact. Only activated email contacts receive emails.
- See Also:
EmailContactStatus
-
creationTime
public final Instant creationTime()
The creation time of the resource.
- Returns:
- The creation time of the resource.
-
updateTime
public final Instant updateTime()
The time the resource was last updated.
- Returns:
- The time the resource was last updated.
-
toBuilder
public EmailContact.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<EmailContact.Builder,EmailContact>
-
builder
public static EmailContact.Builder builder()
-
serializableBuilderClass
public static Class<? extends EmailContact.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-