/** * 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 { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SSMContacts { namespace Model { /** *

The method that Incident Manager uses to engage a contact.

See * Also:

AWS * API Reference

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

The Amazon Resource Name (ARN) of the contact channel.

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

The Amazon Resource Name (ARN) of the contact channel.

*/ inline bool ContactChannelArnHasBeenSet() const { return m_contactChannelArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the contact channel.

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

The Amazon Resource Name (ARN) of the contact channel.

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

The Amazon Resource Name (ARN) of the contact channel.

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

The Amazon Resource Name (ARN) of the contact channel.

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

The Amazon Resource Name (ARN) of the contact channel.

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

The Amazon Resource Name (ARN) of the contact channel.

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

The ARN of the contact that contains the contact channel.

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

The ARN of the contact that contains the contact channel.

*/ inline bool ContactArnHasBeenSet() const { return m_contactArnHasBeenSet; } /** *

The ARN of the contact that contains the contact channel.

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

The ARN of the contact that contains the contact channel.

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

The ARN of the contact that contains the contact channel.

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

The ARN of the contact that contains the contact channel.

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

The ARN of the contact that contains the contact channel.

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

The ARN of the contact that contains the contact channel.

*/ inline ContactChannel& WithContactArn(const char* value) { SetContactArn(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 bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the contact channel.

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

The name of the contact channel.

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

The name of the contact channel.

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

The name of the contact channel.

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

The name of the contact channel.

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

The name of the contact channel.

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

The type of the contact channel. Incident Manager supports three contact * methods:

  • SMS

  • VOICE

  • *

    EMAIL

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

The type of the contact channel. Incident Manager supports three contact * methods:

  • SMS

  • VOICE

  • *

    EMAIL

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of the contact channel. Incident Manager supports three contact * methods:

  • SMS

  • VOICE

  • *

    EMAIL

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

The type of the contact channel. Incident Manager supports three contact * methods:

  • SMS

  • VOICE

  • *

    EMAIL

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

The type of the contact channel. Incident Manager supports three contact * methods:

  • SMS

  • VOICE

  • *

    EMAIL

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

The type of the contact channel. Incident Manager supports three contact * methods:

  • SMS

  • VOICE

  • *

    EMAIL

*/ inline ContactChannel& 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 bool DeliveryAddressHasBeenSet() const { return m_deliveryAddressHasBeenSet; } /** *

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

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

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

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

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

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

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

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

A Boolean value describing if the contact channel has been activated or not. * If the contact channel isn't activated, Incident Manager can't engage the * contact through it.

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

A Boolean value describing if the contact channel has been activated or not. * If the contact channel isn't activated, Incident Manager can't engage the * contact through it.

*/ inline bool ActivationStatusHasBeenSet() const { return m_activationStatusHasBeenSet; } /** *

A Boolean value describing if the contact channel has been activated or not. * If the contact channel isn't activated, Incident Manager can't engage the * contact through it.

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

A Boolean value describing if the contact channel has been activated or not. * If the contact channel isn't activated, Incident Manager can't engage the * contact through it.

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

A Boolean value describing if the contact channel has been activated or not. * If the contact channel isn't activated, Incident Manager can't engage the * contact through it.

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

A Boolean value describing if the contact channel has been activated or not. * If the contact channel isn't activated, Incident Manager can't engage the * contact through it.

*/ inline ContactChannel& WithActivationStatus(ActivationStatus&& value) { SetActivationStatus(std::move(value)); return *this;} private: Aws::String m_contactChannelArn; bool m_contactChannelArnHasBeenSet = false; Aws::String m_contactArn; bool m_contactArnHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; ChannelType m_type; bool m_typeHasBeenSet = false; ContactChannelAddress m_deliveryAddress; bool m_deliveryAddressHasBeenSet = false; ActivationStatus m_activationStatus; bool m_activationStatusHasBeenSet = false; }; } // namespace Model } // namespace SSMContacts } // namespace Aws