/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.lightsail.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* Describes a contact method. *

*

* A contact method is a way to send you notifications. For more information, see Notifications in Amazon * Lightsail. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ContactMethod implements Serializable, Cloneable, StructuredPojo { /** *

* The destination of the contact method, such as an email address or a mobile phone number. *

*/ private String contactEndpoint; /** *

* The current status of the contact method. *

*

* A contact method has the following possible status: *

* */ private String status; /** *

* The protocol of the contact method, such as email or SMS (text messaging). *

*/ private String protocol; /** *

* The name of the contact method. *

*/ private String name; /** *

* The Amazon Resource Name (ARN) of the contact method. *

*/ private String arn; /** *

* The timestamp when the contact method was created. *

*/ private java.util.Date createdAt; /** *

* An object that describes the location of the contact method, such as the Amazon Web Services Region and * Availability Zone. *

*/ private ResourceLocation location; /** *

* The Lightsail resource type (e.g., ContactMethod). *

*/ private String resourceType; /** *

* 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. *

*/ private String supportCode; /** *

* The destination of the contact method, such as an email address or a mobile phone number. *

* * @param contactEndpoint * The destination of the contact method, such as an email address or a mobile phone number. */ public void setContactEndpoint(String contactEndpoint) { this.contactEndpoint = contactEndpoint; } /** *

* The destination of the contact method, such as an email address or a mobile phone number. *

* * @return The destination of the contact method, such as an email address or a mobile phone number. */ public String getContactEndpoint() { return this.contactEndpoint; } /** *

* The destination of the contact method, such as an email address or a mobile phone number. *

* * @param contactEndpoint * The destination of the contact method, such as an email address or a mobile phone number. * @return Returns a reference to this object so that method calls can be chained together. */ public ContactMethod withContactEndpoint(String contactEndpoint) { setContactEndpoint(contactEndpoint); return this; } /** *

* The current status of the contact method. *

*

* A contact method has the following possible status: *

* * * @param status * The current status of the contact method.

*

* A contact method has the following possible status: *

*