/** * 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 AssociatePhoneNumbersWithVoiceConnectorGroupRequest : public ChimeSDKVoiceRequest { public: AWS_CHIMESDKVOICE_API AssociatePhoneNumbersWithVoiceConnectorGroupRequest(); // 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 "AssociatePhoneNumbersWithVoiceConnectorGroup"; } AWS_CHIMESDKVOICE_API Aws::String SerializePayload() const override; /** *

The Amazon Chime SDK Voice Connector group ID.

*/ inline const Aws::String& GetVoiceConnectorGroupId() const{ return m_voiceConnectorGroupId; } /** *

The Amazon Chime SDK Voice Connector group ID.

*/ inline bool VoiceConnectorGroupIdHasBeenSet() const { return m_voiceConnectorGroupIdHasBeenSet; } /** *

The Amazon Chime SDK Voice Connector group ID.

*/ inline void SetVoiceConnectorGroupId(const Aws::String& value) { m_voiceConnectorGroupIdHasBeenSet = true; m_voiceConnectorGroupId = value; } /** *

The Amazon Chime SDK Voice Connector group ID.

*/ inline void SetVoiceConnectorGroupId(Aws::String&& value) { m_voiceConnectorGroupIdHasBeenSet = true; m_voiceConnectorGroupId = std::move(value); } /** *

The Amazon Chime SDK Voice Connector group ID.

*/ inline void SetVoiceConnectorGroupId(const char* value) { m_voiceConnectorGroupIdHasBeenSet = true; m_voiceConnectorGroupId.assign(value); } /** *

The Amazon Chime SDK Voice Connector group ID.

*/ inline AssociatePhoneNumbersWithVoiceConnectorGroupRequest& WithVoiceConnectorGroupId(const Aws::String& value) { SetVoiceConnectorGroupId(value); return *this;} /** *

The Amazon Chime SDK Voice Connector group ID.

*/ inline AssociatePhoneNumbersWithVoiceConnectorGroupRequest& WithVoiceConnectorGroupId(Aws::String&& value) { SetVoiceConnectorGroupId(std::move(value)); return *this;} /** *

The Amazon Chime SDK Voice Connector group ID.

*/ inline AssociatePhoneNumbersWithVoiceConnectorGroupRequest& WithVoiceConnectorGroupId(const char* value) { SetVoiceConnectorGroupId(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 AssociatePhoneNumbersWithVoiceConnectorGroupRequest& WithE164PhoneNumbers(const Aws::Vector& value) { SetE164PhoneNumbers(value); return *this;} /** *

List of phone numbers, in E.164 format.

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

List of phone numbers, in E.164 format.

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

List of phone numbers, in E.164 format.

*/ inline AssociatePhoneNumbersWithVoiceConnectorGroupRequest& 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 AssociatePhoneNumbersWithVoiceConnectorGroupRequest& 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 Group 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 Group 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 Group 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 Group and removes any previously existing associations. If * false, does not associate any phone numbers that have previously existing * associations.

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