/** * 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 #include namespace Aws { namespace ConfigService { namespace Model { /** */ class PutConfigurationAggregatorRequest : public ConfigServiceRequest { public: AWS_CONFIGSERVICE_API PutConfigurationAggregatorRequest(); // 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 "PutConfigurationAggregator"; } AWS_CONFIGSERVICE_API Aws::String SerializePayload() const override; AWS_CONFIGSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the configuration aggregator.

*/ inline const Aws::String& GetConfigurationAggregatorName() const{ return m_configurationAggregatorName; } /** *

The name of the configuration aggregator.

*/ inline bool ConfigurationAggregatorNameHasBeenSet() const { return m_configurationAggregatorNameHasBeenSet; } /** *

The name of the configuration aggregator.

*/ inline void SetConfigurationAggregatorName(const Aws::String& value) { m_configurationAggregatorNameHasBeenSet = true; m_configurationAggregatorName = value; } /** *

The name of the configuration aggregator.

*/ inline void SetConfigurationAggregatorName(Aws::String&& value) { m_configurationAggregatorNameHasBeenSet = true; m_configurationAggregatorName = std::move(value); } /** *

The name of the configuration aggregator.

*/ inline void SetConfigurationAggregatorName(const char* value) { m_configurationAggregatorNameHasBeenSet = true; m_configurationAggregatorName.assign(value); } /** *

The name of the configuration aggregator.

*/ inline PutConfigurationAggregatorRequest& WithConfigurationAggregatorName(const Aws::String& value) { SetConfigurationAggregatorName(value); return *this;} /** *

The name of the configuration aggregator.

*/ inline PutConfigurationAggregatorRequest& WithConfigurationAggregatorName(Aws::String&& value) { SetConfigurationAggregatorName(std::move(value)); return *this;} /** *

The name of the configuration aggregator.

*/ inline PutConfigurationAggregatorRequest& WithConfigurationAggregatorName(const char* value) { SetConfigurationAggregatorName(value); return *this;} /** *

A list of AccountAggregationSource object.

*/ inline const Aws::Vector& GetAccountAggregationSources() const{ return m_accountAggregationSources; } /** *

A list of AccountAggregationSource object.

*/ inline bool AccountAggregationSourcesHasBeenSet() const { return m_accountAggregationSourcesHasBeenSet; } /** *

A list of AccountAggregationSource object.

*/ inline void SetAccountAggregationSources(const Aws::Vector& value) { m_accountAggregationSourcesHasBeenSet = true; m_accountAggregationSources = value; } /** *

A list of AccountAggregationSource object.

*/ inline void SetAccountAggregationSources(Aws::Vector&& value) { m_accountAggregationSourcesHasBeenSet = true; m_accountAggregationSources = std::move(value); } /** *

A list of AccountAggregationSource object.

*/ inline PutConfigurationAggregatorRequest& WithAccountAggregationSources(const Aws::Vector& value) { SetAccountAggregationSources(value); return *this;} /** *

A list of AccountAggregationSource object.

*/ inline PutConfigurationAggregatorRequest& WithAccountAggregationSources(Aws::Vector&& value) { SetAccountAggregationSources(std::move(value)); return *this;} /** *

A list of AccountAggregationSource object.

*/ inline PutConfigurationAggregatorRequest& AddAccountAggregationSources(const AccountAggregationSource& value) { m_accountAggregationSourcesHasBeenSet = true; m_accountAggregationSources.push_back(value); return *this; } /** *

A list of AccountAggregationSource object.

*/ inline PutConfigurationAggregatorRequest& AddAccountAggregationSources(AccountAggregationSource&& value) { m_accountAggregationSourcesHasBeenSet = true; m_accountAggregationSources.push_back(std::move(value)); return *this; } /** *

An OrganizationAggregationSource object.

*/ inline const OrganizationAggregationSource& GetOrganizationAggregationSource() const{ return m_organizationAggregationSource; } /** *

An OrganizationAggregationSource object.

*/ inline bool OrganizationAggregationSourceHasBeenSet() const { return m_organizationAggregationSourceHasBeenSet; } /** *

An OrganizationAggregationSource object.

*/ inline void SetOrganizationAggregationSource(const OrganizationAggregationSource& value) { m_organizationAggregationSourceHasBeenSet = true; m_organizationAggregationSource = value; } /** *

An OrganizationAggregationSource object.

*/ inline void SetOrganizationAggregationSource(OrganizationAggregationSource&& value) { m_organizationAggregationSourceHasBeenSet = true; m_organizationAggregationSource = std::move(value); } /** *

An OrganizationAggregationSource object.

*/ inline PutConfigurationAggregatorRequest& WithOrganizationAggregationSource(const OrganizationAggregationSource& value) { SetOrganizationAggregationSource(value); return *this;} /** *

An OrganizationAggregationSource object.

*/ inline PutConfigurationAggregatorRequest& WithOrganizationAggregationSource(OrganizationAggregationSource&& value) { SetOrganizationAggregationSource(std::move(value)); return *this;} /** *

An array of tag object.

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

An array of tag object.

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

An array of tag object.

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

An array of tag object.

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

An array of tag object.

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

An array of tag object.

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

An array of tag object.

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

An array of tag object.

*/ inline PutConfigurationAggregatorRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_configurationAggregatorName; bool m_configurationAggregatorNameHasBeenSet = false; Aws::Vector m_accountAggregationSources; bool m_accountAggregationSourcesHasBeenSet = false; OrganizationAggregationSource m_organizationAggregationSource; bool m_organizationAggregationSourceHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace ConfigService } // namespace Aws