/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Lightsail { namespace Model { /** */ class CreateContactMethodRequest : public LightsailRequest { public: AWS_LIGHTSAIL_API CreateContactMethodRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateContactMethod"; } AWS_LIGHTSAIL_API Aws::String SerializePayload() const override; AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

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

The SMS protocol is * supported only in the following Amazon Web Services Regions.

  • US * East (N. Virginia) (us-east-1)

  • US West (Oregon) * (us-west-2)

  • Europe (Ireland) * (eu-west-1)

  • Asia Pacific (Tokyo) * (ap-northeast-1)

  • Asia Pacific (Singapore) * (ap-southeast-1)

  • Asia Pacific (Sydney) * (ap-southeast-2)

For a list of countries/regions * where SMS text messages can be sent, and the latest Amazon Web Services Regions * where SMS text messaging is supported, see Supported * Regions and Countries in the Amazon SNS Developer Guide.

For * more information about notifications in Amazon Lightsail, see Notifications * in Amazon Lightsail.

*/ inline const ContactProtocol& GetProtocol() const{ return m_protocol; } /** *

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

The SMS protocol is * supported only in the following Amazon Web Services Regions.

  • US * East (N. Virginia) (us-east-1)

  • US West (Oregon) * (us-west-2)

  • Europe (Ireland) * (eu-west-1)

  • Asia Pacific (Tokyo) * (ap-northeast-1)

  • Asia Pacific (Singapore) * (ap-southeast-1)

  • Asia Pacific (Sydney) * (ap-southeast-2)

For a list of countries/regions * where SMS text messages can be sent, and the latest Amazon Web Services Regions * where SMS text messaging is supported, see Supported * Regions and Countries in the Amazon SNS Developer Guide.

For * more information about notifications in Amazon Lightsail, see Notifications * in Amazon Lightsail.

*/ inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; } /** *

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

The SMS protocol is * supported only in the following Amazon Web Services Regions.

  • US * East (N. Virginia) (us-east-1)

  • US West (Oregon) * (us-west-2)

  • Europe (Ireland) * (eu-west-1)

  • Asia Pacific (Tokyo) * (ap-northeast-1)

  • Asia Pacific (Singapore) * (ap-southeast-1)

  • Asia Pacific (Sydney) * (ap-southeast-2)

For a list of countries/regions * where SMS text messages can be sent, and the latest Amazon Web Services Regions * where SMS text messaging is supported, see Supported * Regions and Countries in the Amazon SNS Developer Guide.

For * more information about notifications in Amazon Lightsail, see Notifications * in Amazon Lightsail.

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

The SMS protocol is * supported only in the following Amazon Web Services Regions.

  • US * East (N. Virginia) (us-east-1)

  • US West (Oregon) * (us-west-2)

  • Europe (Ireland) * (eu-west-1)

  • Asia Pacific (Tokyo) * (ap-northeast-1)

  • Asia Pacific (Singapore) * (ap-southeast-1)

  • Asia Pacific (Sydney) * (ap-southeast-2)

For a list of countries/regions * where SMS text messages can be sent, and the latest Amazon Web Services Regions * where SMS text messaging is supported, see Supported * Regions and Countries in the Amazon SNS Developer Guide.

For * more information about notifications in Amazon Lightsail, see Notifications * in Amazon Lightsail.

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

The SMS protocol is * supported only in the following Amazon Web Services Regions.

  • US * East (N. Virginia) (us-east-1)

  • US West (Oregon) * (us-west-2)

  • Europe (Ireland) * (eu-west-1)

  • Asia Pacific (Tokyo) * (ap-northeast-1)

  • Asia Pacific (Singapore) * (ap-southeast-1)

  • Asia Pacific (Sydney) * (ap-southeast-2)

For a list of countries/regions * where SMS text messages can be sent, and the latest Amazon Web Services Regions * where SMS text messaging is supported, see Supported * Regions and Countries in the Amazon SNS Developer Guide.

For * more information about notifications in Amazon Lightsail, see Notifications * in Amazon Lightsail.

*/ inline CreateContactMethodRequest& WithProtocol(const ContactProtocol& value) { SetProtocol(value); return *this;} /** *

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

The SMS protocol is * supported only in the following Amazon Web Services Regions.

  • US * East (N. Virginia) (us-east-1)

  • US West (Oregon) * (us-west-2)

  • Europe (Ireland) * (eu-west-1)

  • Asia Pacific (Tokyo) * (ap-northeast-1)

  • Asia Pacific (Singapore) * (ap-southeast-1)

  • Asia Pacific (Sydney) * (ap-southeast-2)

For a list of countries/regions * where SMS text messages can be sent, and the latest Amazon Web Services Regions * where SMS text messaging is supported, see Supported * Regions and Countries in the Amazon SNS Developer Guide.

For * more information about notifications in Amazon Lightsail, see Notifications * in Amazon Lightsail.

*/ inline CreateContactMethodRequest& WithProtocol(ContactProtocol&& value) { SetProtocol(std::move(value)); return *this;} /** *

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

Use the E.164 format when specifying a mobile phone number. * E.164 is a standard for the phone number structure used for international * telecommunication. Phone numbers that follow this format can have a maximum of * 15 digits, and they are prefixed with the plus character (+) and the country * code. For example, a U.S. phone number in E.164 format would be specified as * +1XXX5550100. For more information, see E.164 on Wikipedia.

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

Use the E.164 format when specifying a mobile phone number. * E.164 is a standard for the phone number structure used for international * telecommunication. Phone numbers that follow this format can have a maximum of * 15 digits, and they are prefixed with the plus character (+) and the country * code. For example, a U.S. phone number in E.164 format would be specified as * +1XXX5550100. For more information, see E.164 on Wikipedia.

*/ inline bool ContactEndpointHasBeenSet() const { return m_contactEndpointHasBeenSet; } /** *

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

Use the E.164 format when specifying a mobile phone number. * E.164 is a standard for the phone number structure used for international * telecommunication. Phone numbers that follow this format can have a maximum of * 15 digits, and they are prefixed with the plus character (+) and the country * code. For example, a U.S. phone number in E.164 format would be specified as * +1XXX5550100. For more information, see E.164 on Wikipedia.

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

Use the E.164 format when specifying a mobile phone number. * E.164 is a standard for the phone number structure used for international * telecommunication. Phone numbers that follow this format can have a maximum of * 15 digits, and they are prefixed with the plus character (+) and the country * code. For example, a U.S. phone number in E.164 format would be specified as * +1XXX5550100. For more information, see E.164 on Wikipedia.

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

Use the E.164 format when specifying a mobile phone number. * E.164 is a standard for the phone number structure used for international * telecommunication. Phone numbers that follow this format can have a maximum of * 15 digits, and they are prefixed with the plus character (+) and the country * code. For example, a U.S. phone number in E.164 format would be specified as * +1XXX5550100. For more information, see E.164 on Wikipedia.

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

Use the E.164 format when specifying a mobile phone number. * E.164 is a standard for the phone number structure used for international * telecommunication. Phone numbers that follow this format can have a maximum of * 15 digits, and they are prefixed with the plus character (+) and the country * code. For example, a U.S. phone number in E.164 format would be specified as * +1XXX5550100. For more information, see E.164 on Wikipedia.

*/ inline CreateContactMethodRequest& 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.

Use the E.164 format when specifying a mobile phone number. * E.164 is a standard for the phone number structure used for international * telecommunication. Phone numbers that follow this format can have a maximum of * 15 digits, and they are prefixed with the plus character (+) and the country * code. For example, a U.S. phone number in E.164 format would be specified as * +1XXX5550100. For more information, see E.164 on Wikipedia.

*/ inline CreateContactMethodRequest& 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.

Use the E.164 format when specifying a mobile phone number. * E.164 is a standard for the phone number structure used for international * telecommunication. Phone numbers that follow this format can have a maximum of * 15 digits, and they are prefixed with the plus character (+) and the country * code. For example, a U.S. phone number in E.164 format would be specified as * +1XXX5550100. For more information, see E.164 on Wikipedia.

*/ inline CreateContactMethodRequest& WithContactEndpoint(const char* value) { SetContactEndpoint(value); return *this;} private: ContactProtocol m_protocol; bool m_protocolHasBeenSet = false; Aws::String m_contactEndpoint; bool m_contactEndpointHasBeenSet = false; }; } // namespace Model } // namespace Lightsail } // namespace Aws