/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SSMContacts { namespace Model { /** *

The details that Incident Manager uses when trying to engage the contact * channel.

See Also:

AWS * API Reference

*/ class ContactChannelAddress { public: AWS_SSMCONTACTS_API ContactChannelAddress(); AWS_SSMCONTACTS_API ContactChannelAddress(Aws::Utils::Json::JsonView jsonValue); AWS_SSMCONTACTS_API ContactChannelAddress& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SSMCONTACTS_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The format is dependent on the type of the contact channel. The following are * the expected formats:

  • SMS - '+' followed by the country code * and phone number

  • VOICE - '+' followed by the country code and * phone number

  • EMAIL - any standard email format

*/ inline const Aws::String& GetSimpleAddress() const{ return m_simpleAddress; } /** *

The format is dependent on the type of the contact channel. The following are * the expected formats:

  • SMS - '+' followed by the country code * and phone number

  • VOICE - '+' followed by the country code and * phone number

  • EMAIL - any standard email format

*/ inline bool SimpleAddressHasBeenSet() const { return m_simpleAddressHasBeenSet; } /** *

The format is dependent on the type of the contact channel. The following are * the expected formats:

  • SMS - '+' followed by the country code * and phone number

  • VOICE - '+' followed by the country code and * phone number

  • EMAIL - any standard email format

*/ inline void SetSimpleAddress(const Aws::String& value) { m_simpleAddressHasBeenSet = true; m_simpleAddress = value; } /** *

The format is dependent on the type of the contact channel. The following are * the expected formats:

  • SMS - '+' followed by the country code * and phone number

  • VOICE - '+' followed by the country code and * phone number

  • EMAIL - any standard email format

*/ inline void SetSimpleAddress(Aws::String&& value) { m_simpleAddressHasBeenSet = true; m_simpleAddress = std::move(value); } /** *

The format is dependent on the type of the contact channel. The following are * the expected formats:

  • SMS - '+' followed by the country code * and phone number

  • VOICE - '+' followed by the country code and * phone number

  • EMAIL - any standard email format

*/ inline void SetSimpleAddress(const char* value) { m_simpleAddressHasBeenSet = true; m_simpleAddress.assign(value); } /** *

The format is dependent on the type of the contact channel. The following are * the expected formats:

  • SMS - '+' followed by the country code * and phone number

  • VOICE - '+' followed by the country code and * phone number

  • EMAIL - any standard email format

*/ inline ContactChannelAddress& WithSimpleAddress(const Aws::String& value) { SetSimpleAddress(value); return *this;} /** *

The format is dependent on the type of the contact channel. The following are * the expected formats:

  • SMS - '+' followed by the country code * and phone number

  • VOICE - '+' followed by the country code and * phone number

  • EMAIL - any standard email format

*/ inline ContactChannelAddress& WithSimpleAddress(Aws::String&& value) { SetSimpleAddress(std::move(value)); return *this;} /** *

The format is dependent on the type of the contact channel. The following are * the expected formats:

  • SMS - '+' followed by the country code * and phone number

  • VOICE - '+' followed by the country code and * phone number

  • EMAIL - any standard email format

*/ inline ContactChannelAddress& WithSimpleAddress(const char* value) { SetSimpleAddress(value); return *this;} private: Aws::String m_simpleAddress; bool m_simpleAddressHasBeenSet = false; }; } // namespace Model } // namespace SSMContacts } // namespace Aws