/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace SSMContacts { namespace Model { /** */ class CreateContactChannelRequest : public SSMContactsRequest { public: AWS_SSMCONTACTS_API CreateContactChannelRequest(); // 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 "CreateContactChannel"; } AWS_SSMCONTACTS_API Aws::String SerializePayload() const override; AWS_SSMCONTACTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The Amazon Resource Name (ARN) of the contact you are adding the contact * channel to.

*/ inline const Aws::String& GetContactId() const{ return m_contactId; } /** *

The Amazon Resource Name (ARN) of the contact you are adding the contact * channel to.

*/ inline bool ContactIdHasBeenSet() const { return m_contactIdHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the contact you are adding the contact * channel to.

*/ inline void SetContactId(const Aws::String& value) { m_contactIdHasBeenSet = true; m_contactId = value; } /** *

The Amazon Resource Name (ARN) of the contact you are adding the contact * channel to.

*/ inline void SetContactId(Aws::String&& value) { m_contactIdHasBeenSet = true; m_contactId = std::move(value); } /** *

The Amazon Resource Name (ARN) of the contact you are adding the contact * channel to.

*/ inline void SetContactId(const char* value) { m_contactIdHasBeenSet = true; m_contactId.assign(value); } /** *

The Amazon Resource Name (ARN) of the contact you are adding the contact * channel to.

*/ inline CreateContactChannelRequest& WithContactId(const Aws::String& value) { SetContactId(value); return *this;} /** *

The Amazon Resource Name (ARN) of the contact you are adding the contact * channel to.

*/ inline CreateContactChannelRequest& WithContactId(Aws::String&& value) { SetContactId(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the contact you are adding the contact * channel to.

*/ inline CreateContactChannelRequest& WithContactId(const char* value) { SetContactId(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 CreateContactChannelRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the contact channel.

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

The name of the contact channel.

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

Incident Manager supports three types of contact channels:

  • * SMS

  • VOICE

  • * EMAIL

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

Incident Manager supports three types of contact channels:

  • * SMS

  • VOICE

  • * EMAIL

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

Incident Manager supports three types of contact channels:

  • * SMS

  • VOICE

  • * EMAIL

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

Incident Manager supports three types of contact channels:

  • * SMS

  • VOICE

  • * EMAIL

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

Incident Manager supports three types of contact channels:

  • * SMS

  • VOICE

  • * EMAIL

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

Incident Manager supports three types of contact channels:

  • * SMS

  • VOICE

  • * EMAIL

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

The details that Incident Manager uses when trying to engage the contact * channel. 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 ContactChannelAddress& GetDeliveryAddress() const{ return m_deliveryAddress; } /** *

The details that Incident Manager uses when trying to engage the contact * channel. 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 DeliveryAddressHasBeenSet() const { return m_deliveryAddressHasBeenSet; } /** *

The details that Incident Manager uses when trying to engage the contact * channel. 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 SetDeliveryAddress(const ContactChannelAddress& value) { m_deliveryAddressHasBeenSet = true; m_deliveryAddress = value; } /** *

The details that Incident Manager uses when trying to engage the contact * channel. 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 SetDeliveryAddress(ContactChannelAddress&& value) { m_deliveryAddressHasBeenSet = true; m_deliveryAddress = std::move(value); } /** *

The details that Incident Manager uses when trying to engage the contact * channel. 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 CreateContactChannelRequest& WithDeliveryAddress(const ContactChannelAddress& value) { SetDeliveryAddress(value); return *this;} /** *

The details that Incident Manager uses when trying to engage the contact * channel. 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 CreateContactChannelRequest& WithDeliveryAddress(ContactChannelAddress&& value) { SetDeliveryAddress(std::move(value)); return *this;} /** *

If you want to activate the channel at a later time, you can choose to defer * activation. Incident Manager can't engage your contact channel until it has been * activated.

*/ inline bool GetDeferActivation() const{ return m_deferActivation; } /** *

If you want to activate the channel at a later time, you can choose to defer * activation. Incident Manager can't engage your contact channel until it has been * activated.

*/ inline bool DeferActivationHasBeenSet() const { return m_deferActivationHasBeenSet; } /** *

If you want to activate the channel at a later time, you can choose to defer * activation. Incident Manager can't engage your contact channel until it has been * activated.

*/ inline void SetDeferActivation(bool value) { m_deferActivationHasBeenSet = true; m_deferActivation = value; } /** *

If you want to activate the channel at a later time, you can choose to defer * activation. Incident Manager can't engage your contact channel until it has been * activated.

*/ inline CreateContactChannelRequest& WithDeferActivation(bool value) { SetDeferActivation(value); return *this;} /** *

A token ensuring that the operation is called only once with the specified * details.

*/ inline const Aws::String& GetIdempotencyToken() const{ return m_idempotencyToken; } /** *

A token ensuring that the operation is called only once with the specified * details.

*/ inline bool IdempotencyTokenHasBeenSet() const { return m_idempotencyTokenHasBeenSet; } /** *

A token ensuring that the operation is called only once with the specified * details.

*/ inline void SetIdempotencyToken(const Aws::String& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = value; } /** *

A token ensuring that the operation is called only once with the specified * details.

*/ inline void SetIdempotencyToken(Aws::String&& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = std::move(value); } /** *

A token ensuring that the operation is called only once with the specified * details.

*/ inline void SetIdempotencyToken(const char* value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken.assign(value); } /** *

A token ensuring that the operation is called only once with the specified * details.

*/ inline CreateContactChannelRequest& WithIdempotencyToken(const Aws::String& value) { SetIdempotencyToken(value); return *this;} /** *

A token ensuring that the operation is called only once with the specified * details.

*/ inline CreateContactChannelRequest& WithIdempotencyToken(Aws::String&& value) { SetIdempotencyToken(std::move(value)); return *this;} /** *

A token ensuring that the operation is called only once with the specified * details.

*/ inline CreateContactChannelRequest& WithIdempotencyToken(const char* value) { SetIdempotencyToken(value); return *this;} private: Aws::String m_contactId; bool m_contactIdHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; ChannelType m_type; bool m_typeHasBeenSet = false; ContactChannelAddress m_deliveryAddress; bool m_deliveryAddressHasBeenSet = false; bool m_deferActivation; bool m_deferActivationHasBeenSet = false; Aws::String m_idempotencyToken; bool m_idempotencyTokenHasBeenSet = false; }; } // namespace Model } // namespace SSMContacts } // namespace Aws