/** * 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 ChimeSDKVoice { namespace Model { /** */ class AssociatePhoneNumbersWithVoiceConnectorRequest : public ChimeSDKVoiceRequest { public: AWS_CHIMESDKVOICE_API AssociatePhoneNumbersWithVoiceConnectorRequest(); // 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 "AssociatePhoneNumbersWithVoiceConnector"; } AWS_CHIMESDKVOICE_API Aws::String SerializePayload() const override; /** *

The Voice Connector ID.

*/ inline const Aws::String& GetVoiceConnectorId() const{ return m_voiceConnectorId; } /** *

The Voice Connector ID.

*/ inline bool VoiceConnectorIdHasBeenSet() const { return m_voiceConnectorIdHasBeenSet; } /** *

The Voice Connector ID.

*/ inline void SetVoiceConnectorId(const Aws::String& value) { m_voiceConnectorIdHasBeenSet = true; m_voiceConnectorId = value; } /** *

The Voice Connector ID.

*/ inline void SetVoiceConnectorId(Aws::String&& value) { m_voiceConnectorIdHasBeenSet = true; m_voiceConnectorId = std::move(value); } /** *

The Voice Connector ID.

*/ inline void SetVoiceConnectorId(const char* value) { m_voiceConnectorIdHasBeenSet = true; m_voiceConnectorId.assign(value); } /** *

The Voice Connector ID.

*/ inline AssociatePhoneNumbersWithVoiceConnectorRequest& WithVoiceConnectorId(const Aws::String& value) { SetVoiceConnectorId(value); return *this;} /** *

The Voice Connector ID.

*/ inline AssociatePhoneNumbersWithVoiceConnectorRequest& WithVoiceConnectorId(Aws::String&& value) { SetVoiceConnectorId(std::move(value)); return *this;} /** *

The Voice Connector ID.

*/ inline AssociatePhoneNumbersWithVoiceConnectorRequest& WithVoiceConnectorId(const char* value) { SetVoiceConnectorId(value); return *this;} /** *

List of phone numbers, in E.164 format.

*/ inline const Aws::Vector& GetE164PhoneNumbers() const{ return m_e164PhoneNumbers; } /** *

List of phone numbers, in E.164 format.

*/ inline bool E164PhoneNumbersHasBeenSet() const { return m_e164PhoneNumbersHasBeenSet; } /** *

List of phone numbers, in E.164 format.

*/ inline void SetE164PhoneNumbers(const Aws::Vector& value) { m_e164PhoneNumbersHasBeenSet = true; m_e164PhoneNumbers = value; } /** *

List of phone numbers, in E.164 format.

*/ inline void SetE164PhoneNumbers(Aws::Vector&& value) { m_e164PhoneNumbersHasBeenSet = true; m_e164PhoneNumbers = std::move(value); } /** *

List of phone numbers, in E.164 format.

*/ inline AssociatePhoneNumbersWithVoiceConnectorRequest& WithE164PhoneNumbers(const Aws::Vector& value) { SetE164PhoneNumbers(value); return *this;} /** *

List of phone numbers, in E.164 format.

*/ inline AssociatePhoneNumbersWithVoiceConnectorRequest& WithE164PhoneNumbers(Aws::Vector&& value) { SetE164PhoneNumbers(std::move(value)); return *this;} /** *

List of phone numbers, in E.164 format.

*/ inline AssociatePhoneNumbersWithVoiceConnectorRequest& AddE164PhoneNumbers(const Aws::String& value) { m_e164PhoneNumbersHasBeenSet = true; m_e164PhoneNumbers.push_back(value); return *this; } /** *

List of phone numbers, in E.164 format.

*/ inline AssociatePhoneNumbersWithVoiceConnectorRequest& AddE164PhoneNumbers(Aws::String&& value) { m_e164PhoneNumbersHasBeenSet = true; m_e164PhoneNumbers.push_back(std::move(value)); return *this; } /** *

List of phone numbers, in E.164 format.

*/ inline AssociatePhoneNumbersWithVoiceConnectorRequest& AddE164PhoneNumbers(const char* value) { m_e164PhoneNumbersHasBeenSet = true; m_e164PhoneNumbers.push_back(value); return *this; } /** *

If true, associates the provided phone numbers with the provided Amazon Chime * SDK Voice Connector and removes any previously existing associations. If false, * does not associate any phone numbers that have previously existing * associations.

*/ inline bool GetForceAssociate() const{ return m_forceAssociate; } /** *

If true, associates the provided phone numbers with the provided Amazon Chime * SDK Voice Connector and removes any previously existing associations. If false, * does not associate any phone numbers that have previously existing * associations.

*/ inline bool ForceAssociateHasBeenSet() const { return m_forceAssociateHasBeenSet; } /** *

If true, associates the provided phone numbers with the provided Amazon Chime * SDK Voice Connector and removes any previously existing associations. If false, * does not associate any phone numbers that have previously existing * associations.

*/ inline void SetForceAssociate(bool value) { m_forceAssociateHasBeenSet = true; m_forceAssociate = value; } /** *

If true, associates the provided phone numbers with the provided Amazon Chime * SDK Voice Connector and removes any previously existing associations. If false, * does not associate any phone numbers that have previously existing * associations.

*/ inline AssociatePhoneNumbersWithVoiceConnectorRequest& WithForceAssociate(bool value) { SetForceAssociate(value); return *this;} private: Aws::String m_voiceConnectorId; bool m_voiceConnectorIdHasBeenSet = false; Aws::Vector m_e164PhoneNumbers; bool m_e164PhoneNumbersHasBeenSet = false; bool m_forceAssociate; bool m_forceAssociateHasBeenSet = false; }; } // namespace Model } // namespace ChimeSDKVoice } // namespace Aws