/** * 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 ivschat { namespace Model { /** */ class CreateLoggingConfigurationRequest : public IvschatRequest { public: AWS_IVSCHAT_API CreateLoggingConfigurationRequest(); // 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 "CreateLoggingConfiguration"; } AWS_IVSCHAT_API Aws::String SerializePayload() const override; /** *

A complex type that contains a destination configuration for where chat * content will be logged. There can be only one type of destination * (cloudWatchLogs, firehose, or s3) in a * destinationConfiguration.

*/ inline const DestinationConfiguration& GetDestinationConfiguration() const{ return m_destinationConfiguration; } /** *

A complex type that contains a destination configuration for where chat * content will be logged. There can be only one type of destination * (cloudWatchLogs, firehose, or s3) in a * destinationConfiguration.

*/ inline bool DestinationConfigurationHasBeenSet() const { return m_destinationConfigurationHasBeenSet; } /** *

A complex type that contains a destination configuration for where chat * content will be logged. There can be only one type of destination * (cloudWatchLogs, firehose, or s3) in a * destinationConfiguration.

*/ inline void SetDestinationConfiguration(const DestinationConfiguration& value) { m_destinationConfigurationHasBeenSet = true; m_destinationConfiguration = value; } /** *

A complex type that contains a destination configuration for where chat * content will be logged. There can be only one type of destination * (cloudWatchLogs, firehose, or s3) in a * destinationConfiguration.

*/ inline void SetDestinationConfiguration(DestinationConfiguration&& value) { m_destinationConfigurationHasBeenSet = true; m_destinationConfiguration = std::move(value); } /** *

A complex type that contains a destination configuration for where chat * content will be logged. There can be only one type of destination * (cloudWatchLogs, firehose, or s3) in a * destinationConfiguration.

*/ inline CreateLoggingConfigurationRequest& WithDestinationConfiguration(const DestinationConfiguration& value) { SetDestinationConfiguration(value); return *this;} /** *

A complex type that contains a destination configuration for where chat * content will be logged. There can be only one type of destination * (cloudWatchLogs, firehose, or s3) in a * destinationConfiguration.

*/ inline CreateLoggingConfigurationRequest& WithDestinationConfiguration(DestinationConfiguration&& value) { SetDestinationConfiguration(std::move(value)); return *this;} /** *

Logging-configuration name. The value does not need to be unique.

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

Logging-configuration name. The value does not need to be unique.

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

Logging-configuration name. The value does not need to be unique.

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

Logging-configuration name. The value does not need to be unique.

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

Logging-configuration name. The value does not need to be unique.

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

Logging-configuration name. The value does not need to be unique.

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

Logging-configuration name. The value does not need to be unique.

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

Logging-configuration name. The value does not need to be unique.

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

Tags to attach to the resource. Array of maps, each of the form * string:string (key:value). See Tagging * AWS Resources for details, including restrictions that apply to tags and * "Tag naming limits and requirements"; Amazon IVS Chat has no constraints on tags * beyond what is documented there.

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

Tags to attach to the resource. Array of maps, each of the form * string:string (key:value). See Tagging * AWS Resources for details, including restrictions that apply to tags and * "Tag naming limits and requirements"; Amazon IVS Chat has no constraints on tags * beyond what is documented there.

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

Tags to attach to the resource. Array of maps, each of the form * string:string (key:value). See Tagging * AWS Resources for details, including restrictions that apply to tags and * "Tag naming limits and requirements"; Amazon IVS Chat has no constraints on tags * beyond what is documented there.

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

Tags to attach to the resource. Array of maps, each of the form * string:string (key:value). See Tagging * AWS Resources for details, including restrictions that apply to tags and * "Tag naming limits and requirements"; Amazon IVS Chat has no constraints on tags * beyond what is documented there.

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

Tags to attach to the resource. Array of maps, each of the form * string:string (key:value). See Tagging * AWS Resources for details, including restrictions that apply to tags and * "Tag naming limits and requirements"; Amazon IVS Chat has no constraints on tags * beyond what is documented there.

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

Tags to attach to the resource. Array of maps, each of the form * string:string (key:value). See Tagging * AWS Resources for details, including restrictions that apply to tags and * "Tag naming limits and requirements"; Amazon IVS Chat has no constraints on tags * beyond what is documented there.

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

Tags to attach to the resource. Array of maps, each of the form * string:string (key:value). See Tagging * AWS Resources for details, including restrictions that apply to tags and * "Tag naming limits and requirements"; Amazon IVS Chat has no constraints on tags * beyond what is documented there.

*/ inline CreateLoggingConfigurationRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

Tags to attach to the resource. Array of maps, each of the form * string:string (key:value). See Tagging * AWS Resources for details, including restrictions that apply to tags and * "Tag naming limits and requirements"; Amazon IVS Chat has no constraints on tags * beyond what is documented there.

*/ inline CreateLoggingConfigurationRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

Tags to attach to the resource. Array of maps, each of the form * string:string (key:value). See Tagging * AWS Resources for details, including restrictions that apply to tags and * "Tag naming limits and requirements"; Amazon IVS Chat has no constraints on tags * beyond what is documented there.

*/ inline CreateLoggingConfigurationRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

Tags to attach to the resource. Array of maps, each of the form * string:string (key:value). See Tagging * AWS Resources for details, including restrictions that apply to tags and * "Tag naming limits and requirements"; Amazon IVS Chat has no constraints on tags * beyond what is documented there.

*/ inline CreateLoggingConfigurationRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

Tags to attach to the resource. Array of maps, each of the form * string:string (key:value). See Tagging * AWS Resources for details, including restrictions that apply to tags and * "Tag naming limits and requirements"; Amazon IVS Chat has no constraints on tags * beyond what is documented there.

*/ inline CreateLoggingConfigurationRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

Tags to attach to the resource. Array of maps, each of the form * string:string (key:value). See Tagging * AWS Resources for details, including restrictions that apply to tags and * "Tag naming limits and requirements"; Amazon IVS Chat has no constraints on tags * beyond what is documented there.

*/ inline CreateLoggingConfigurationRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

Tags to attach to the resource. Array of maps, each of the form * string:string (key:value). See Tagging * AWS Resources for details, including restrictions that apply to tags and * "Tag naming limits and requirements"; Amazon IVS Chat has no constraints on tags * beyond what is documented there.

*/ inline CreateLoggingConfigurationRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: DestinationConfiguration m_destinationConfiguration; bool m_destinationConfigurationHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace ivschat } // namespace Aws