/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes a contact method. A contact method is a way to send you
* notifications. For more information, see Notifications
* in Amazon Lightsail.See Also:
AWS
* API Reference
The destination of the contact method, such as an email address or a mobile * phone number.
*/ inline const Aws::String& GetContactEndpoint() const{ return m_contactEndpoint; } /** *The destination of the contact method, such as an email address or a mobile * phone number.
*/ inline bool ContactEndpointHasBeenSet() const { return m_contactEndpointHasBeenSet; } /** *The destination of the contact method, such as an email address or a mobile * phone number.
*/ inline void SetContactEndpoint(const Aws::String& value) { m_contactEndpointHasBeenSet = true; m_contactEndpoint = value; } /** *The destination of the contact method, such as an email address or a mobile * phone number.
*/ inline void SetContactEndpoint(Aws::String&& value) { m_contactEndpointHasBeenSet = true; m_contactEndpoint = std::move(value); } /** *The destination of the contact method, such as an email address or a mobile * phone number.
*/ inline void SetContactEndpoint(const char* value) { m_contactEndpointHasBeenSet = true; m_contactEndpoint.assign(value); } /** *The destination of the contact method, such as an email address or a mobile * phone number.
*/ inline ContactMethod& WithContactEndpoint(const Aws::String& value) { SetContactEndpoint(value); return *this;} /** *The destination of the contact method, such as an email address or a mobile * phone number.
*/ inline ContactMethod& WithContactEndpoint(Aws::String&& value) { SetContactEndpoint(std::move(value)); return *this;} /** *The destination of the contact method, such as an email address or a mobile * phone number.
*/ inline ContactMethod& WithContactEndpoint(const char* value) { SetContactEndpoint(value); return *this;} /** *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.
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.
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.
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.
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.
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.
The protocol of the contact method, such as email or SMS (text * messaging).
*/ inline const ContactProtocol& GetProtocol() const{ return m_protocol; } /** *The protocol of the contact method, such as email or SMS (text * messaging).
*/ inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; } /** *The protocol of the contact method, such as email or SMS (text * messaging).
*/ inline void SetProtocol(const ContactProtocol& value) { m_protocolHasBeenSet = true; m_protocol = value; } /** *The protocol of the contact method, such as email or SMS (text * messaging).
*/ inline void SetProtocol(ContactProtocol&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); } /** *The protocol of the contact method, such as email or SMS (text * messaging).
*/ inline ContactMethod& WithProtocol(const ContactProtocol& value) { SetProtocol(value); return *this;} /** *The protocol of the contact method, such as email or SMS (text * messaging).
*/ inline ContactMethod& WithProtocol(ContactProtocol&& value) { SetProtocol(std::move(value)); return *this;} /** *The name of the contact method.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *The name of the contact method.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The name of the contact method.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *The name of the contact method.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *The name of the contact method.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *The name of the contact method.
*/ inline ContactMethod& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The name of the contact method.
*/ inline ContactMethod& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The name of the contact method.
*/ inline ContactMethod& WithName(const char* value) { SetName(value); return *this;} /** *The Amazon Resource Name (ARN) of the contact method.
*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *The Amazon Resource Name (ARN) of the contact method.
*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *The Amazon Resource Name (ARN) of the contact method.
*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *The Amazon Resource Name (ARN) of the contact method.
*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *The Amazon Resource Name (ARN) of the contact method.
*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *The Amazon Resource Name (ARN) of the contact method.
*/ inline ContactMethod& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *The Amazon Resource Name (ARN) of the contact method.
*/ inline ContactMethod& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) of the contact method.
*/ inline ContactMethod& WithArn(const char* value) { SetArn(value); return *this;} /** *The timestamp when the contact method was created.
*/ inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } /** *The timestamp when the contact method was created.
*/ inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } /** *The timestamp when the contact method was created.
*/ inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } /** *The timestamp when the contact method was created.
*/ inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } /** *The timestamp when the contact method was created.
*/ inline ContactMethod& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *The timestamp when the contact method was created.
*/ inline ContactMethod& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} /** *An object that describes the location of the contact method, such as the * Amazon Web Services Region and Availability Zone.
*/ inline const ResourceLocation& GetLocation() const{ return m_location; } /** *An object that describes the location of the contact method, such as the * Amazon Web Services Region and Availability Zone.
*/ inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; } /** *An object that describes the location of the contact method, such as the * Amazon Web Services Region and Availability Zone.
*/ inline void SetLocation(const ResourceLocation& value) { m_locationHasBeenSet = true; m_location = value; } /** *An object that describes the location of the contact method, such as the * Amazon Web Services Region and Availability Zone.
*/ inline void SetLocation(ResourceLocation&& value) { m_locationHasBeenSet = true; m_location = std::move(value); } /** *An object that describes the location of the contact method, such as the * Amazon Web Services Region and Availability Zone.
*/ inline ContactMethod& WithLocation(const ResourceLocation& value) { SetLocation(value); return *this;} /** *An object that describes the location of the contact method, such as the * Amazon Web Services Region and Availability Zone.
*/ inline ContactMethod& WithLocation(ResourceLocation&& value) { SetLocation(std::move(value)); return *this;} /** *The Lightsail resource type (e.g., ContactMethod
).
The Lightsail resource type (e.g., ContactMethod
).
The Lightsail resource type (e.g., ContactMethod
).
The Lightsail resource type (e.g., ContactMethod
).
The Lightsail resource type (e.g., ContactMethod
).
The Lightsail resource type (e.g., ContactMethod
).
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.
*/ inline const Aws::String& GetSupportCode() const{ return m_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.
*/ inline bool SupportCodeHasBeenSet() const { return m_supportCodeHasBeenSet; } /** *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.
*/ inline void SetSupportCode(const Aws::String& value) { m_supportCodeHasBeenSet = true; m_supportCode = value; } /** *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.
*/ inline void SetSupportCode(Aws::String&& value) { m_supportCodeHasBeenSet = true; m_supportCode = std::move(value); } /** *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.
*/ inline void SetSupportCode(const char* value) { m_supportCodeHasBeenSet = true; m_supportCode.assign(value); } /** *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.
*/ inline ContactMethod& WithSupportCode(const Aws::String& value) { SetSupportCode(value); return *this;} /** *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.
*/ inline ContactMethod& WithSupportCode(Aws::String&& value) { SetSupportCode(std::move(value)); return *this;} /** *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.
*/ inline ContactMethod& WithSupportCode(const char* value) { SetSupportCode(value); return *this;} private: Aws::String m_contactEndpoint; bool m_contactEndpointHasBeenSet = false; ContactMethodStatus m_status; bool m_statusHasBeenSet = false; ContactProtocol m_protocol; bool m_protocolHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet = false; ResourceLocation m_location; bool m_locationHasBeenSet = false; ResourceType m_resourceType; bool m_resourceTypeHasBeenSet = false; Aws::String m_supportCode; bool m_supportCodeHasBeenSet = false; }; } // namespace Model } // namespace Lightsail } // namespace Aws