/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace SSMContacts { namespace Model { class GetContactChannelResult { public: AWS_SSMCONTACTS_API GetContactChannelResult(); AWS_SSMCONTACTS_API GetContactChannelResult(const Aws::AmazonWebServiceResult& result); AWS_SSMCONTACTS_API GetContactChannelResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The ARN of the contact that the channel belongs to.

*/ inline const Aws::String& GetContactArn() const{ return m_contactArn; } /** *

The ARN of the contact that the channel belongs to.

*/ inline void SetContactArn(const Aws::String& value) { m_contactArn = value; } /** *

The ARN of the contact that the channel belongs to.

*/ inline void SetContactArn(Aws::String&& value) { m_contactArn = std::move(value); } /** *

The ARN of the contact that the channel belongs to.

*/ inline void SetContactArn(const char* value) { m_contactArn.assign(value); } /** *

The ARN of the contact that the channel belongs to.

*/ inline GetContactChannelResult& WithContactArn(const Aws::String& value) { SetContactArn(value); return *this;} /** *

The ARN of the contact that the channel belongs to.

*/ inline GetContactChannelResult& WithContactArn(Aws::String&& value) { SetContactArn(std::move(value)); return *this;} /** *

The ARN of the contact that the channel belongs to.

*/ inline GetContactChannelResult& WithContactArn(const char* value) { SetContactArn(value); return *this;} /** *

The ARN of the contact channel.

*/ inline const Aws::String& GetContactChannelArn() const{ return m_contactChannelArn; } /** *

The ARN of the contact channel.

*/ inline void SetContactChannelArn(const Aws::String& value) { m_contactChannelArn = value; } /** *

The ARN of the contact channel.

*/ inline void SetContactChannelArn(Aws::String&& value) { m_contactChannelArn = std::move(value); } /** *

The ARN of the contact channel.

*/ inline void SetContactChannelArn(const char* value) { m_contactChannelArn.assign(value); } /** *

The ARN of the contact channel.

*/ inline GetContactChannelResult& WithContactChannelArn(const Aws::String& value) { SetContactChannelArn(value); return *this;} /** *

The ARN of the contact channel.

*/ inline GetContactChannelResult& WithContactChannelArn(Aws::String&& value) { SetContactChannelArn(std::move(value)); return *this;} /** *

The ARN of the contact channel.

*/ inline GetContactChannelResult& WithContactChannelArn(const char* value) { SetContactChannelArn(value); return *this;} /** *

The name of the contact channel

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the contact channel

*/ inline void SetName(const Aws::String& value) { m_name = value; } /** *

The name of the contact channel

*/ inline void SetName(Aws::String&& value) { m_name = std::move(value); } /** *

The name of the contact channel

*/ inline void SetName(const char* value) { m_name.assign(value); } /** *

The name of the contact channel

*/ inline GetContactChannelResult& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the contact channel

*/ inline GetContactChannelResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the contact channel

*/ inline GetContactChannelResult& WithName(const char* value) { SetName(value); return *this;} /** *

The type of contact channel. The type is SMS, * VOICE, or EMAIL.

*/ inline const ChannelType& GetType() const{ return m_type; } /** *

The type of contact channel. The type is SMS, * VOICE, or EMAIL.

*/ inline void SetType(const ChannelType& value) { m_type = value; } /** *

The type of contact channel. The type is SMS, * VOICE, or EMAIL.

*/ inline void SetType(ChannelType&& value) { m_type = std::move(value); } /** *

The type of contact channel. The type is SMS, * VOICE, or EMAIL.

*/ inline GetContactChannelResult& WithType(const ChannelType& value) { SetType(value); return *this;} /** *

The type of contact channel. The type is SMS, * VOICE, or EMAIL.

*/ inline GetContactChannelResult& WithType(ChannelType&& value) { SetType(std::move(value)); return *this;} /** *

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

*/ inline const ContactChannelAddress& GetDeliveryAddress() const{ return m_deliveryAddress; } /** *

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

*/ inline void SetDeliveryAddress(const ContactChannelAddress& value) { m_deliveryAddress = value; } /** *

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

*/ inline void SetDeliveryAddress(ContactChannelAddress&& value) { m_deliveryAddress = std::move(value); } /** *

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

*/ inline GetContactChannelResult& WithDeliveryAddress(const ContactChannelAddress& value) { SetDeliveryAddress(value); return *this;} /** *

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

*/ inline GetContactChannelResult& WithDeliveryAddress(ContactChannelAddress&& value) { SetDeliveryAddress(std::move(value)); return *this;} /** *

A Boolean value indicating if the contact channel has been activated or * not.

*/ inline const ActivationStatus& GetActivationStatus() const{ return m_activationStatus; } /** *

A Boolean value indicating if the contact channel has been activated or * not.

*/ inline void SetActivationStatus(const ActivationStatus& value) { m_activationStatus = value; } /** *

A Boolean value indicating if the contact channel has been activated or * not.

*/ inline void SetActivationStatus(ActivationStatus&& value) { m_activationStatus = std::move(value); } /** *

A Boolean value indicating if the contact channel has been activated or * not.

*/ inline GetContactChannelResult& WithActivationStatus(const ActivationStatus& value) { SetActivationStatus(value); return *this;} /** *

A Boolean value indicating if the contact channel has been activated or * not.

*/ inline GetContactChannelResult& WithActivationStatus(ActivationStatus&& value) { SetActivationStatus(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetContactChannelResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetContactChannelResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetContactChannelResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_contactArn; Aws::String m_contactChannelArn; Aws::String m_name; ChannelType m_type; ContactChannelAddress m_deliveryAddress; ActivationStatus m_activationStatus; Aws::String m_requestId; }; } // namespace Model } // namespace SSMContacts } // namespace Aws