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

The name of the Voice Connector.

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

The name of the Voice Connector.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the Voice Connector.

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

The name of the Voice Connector.

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

The name of the Voice Connector.

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

The name of the Voice Connector.

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

The name of the Voice Connector.

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

The name of the Voice Connector.

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

The AWS Region in which the Amazon Chime SDK Voice Connector is created. * Default value: us-east-1 .

*/ inline const VoiceConnectorAwsRegion& GetAwsRegion() const{ return m_awsRegion; } /** *

The AWS Region in which the Amazon Chime SDK Voice Connector is created. * Default value: us-east-1 .

*/ inline bool AwsRegionHasBeenSet() const { return m_awsRegionHasBeenSet; } /** *

The AWS Region in which the Amazon Chime SDK Voice Connector is created. * Default value: us-east-1 .

*/ inline void SetAwsRegion(const VoiceConnectorAwsRegion& value) { m_awsRegionHasBeenSet = true; m_awsRegion = value; } /** *

The AWS Region in which the Amazon Chime SDK Voice Connector is created. * Default value: us-east-1 .

*/ inline void SetAwsRegion(VoiceConnectorAwsRegion&& value) { m_awsRegionHasBeenSet = true; m_awsRegion = std::move(value); } /** *

The AWS Region in which the Amazon Chime SDK Voice Connector is created. * Default value: us-east-1 .

*/ inline CreateVoiceConnectorRequest& WithAwsRegion(const VoiceConnectorAwsRegion& value) { SetAwsRegion(value); return *this;} /** *

The AWS Region in which the Amazon Chime SDK Voice Connector is created. * Default value: us-east-1 .

*/ inline CreateVoiceConnectorRequest& WithAwsRegion(VoiceConnectorAwsRegion&& value) { SetAwsRegion(std::move(value)); return *this;} /** *

Enables or disables encryption for the Voice Connector.

*/ inline bool GetRequireEncryption() const{ return m_requireEncryption; } /** *

Enables or disables encryption for the Voice Connector.

*/ inline bool RequireEncryptionHasBeenSet() const { return m_requireEncryptionHasBeenSet; } /** *

Enables or disables encryption for the Voice Connector.

*/ inline void SetRequireEncryption(bool value) { m_requireEncryptionHasBeenSet = true; m_requireEncryption = value; } /** *

Enables or disables encryption for the Voice Connector.

*/ inline CreateVoiceConnectorRequest& WithRequireEncryption(bool value) { SetRequireEncryption(value); return *this;} /** *

The tags assigned to the Voice Connector.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

The tags assigned to the Voice Connector.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The tags assigned to the Voice Connector.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

The tags assigned to the Voice Connector.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

The tags assigned to the Voice Connector.

*/ inline CreateVoiceConnectorRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

The tags assigned to the Voice Connector.

*/ inline CreateVoiceConnectorRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

The tags assigned to the Voice Connector.

*/ inline CreateVoiceConnectorRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

The tags assigned to the Voice Connector.

*/ inline CreateVoiceConnectorRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet = false; VoiceConnectorAwsRegion m_awsRegion; bool m_awsRegionHasBeenSet = false; bool m_requireEncryption; bool m_requireEncryptionHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace ChimeSDKVoice } // namespace Aws