/** * 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 Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ConfigService { namespace Model { /** *

The details about the configuration aggregator, including information about * source accounts, regions, and metadata of the aggregator.

See * Also:

AWS * API Reference

*/ class ConfigurationAggregator { public: AWS_CONFIGSERVICE_API ConfigurationAggregator(); AWS_CONFIGSERVICE_API ConfigurationAggregator(Aws::Utils::Json::JsonView jsonValue); AWS_CONFIGSERVICE_API ConfigurationAggregator& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The name of the aggregator.

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

The name of the aggregator.

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

The name of the aggregator.

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

The name of the aggregator.

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

The name of the aggregator.

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

The name of the aggregator.

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

The name of the aggregator.

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

The name of the aggregator.

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

The Amazon Resource Name (ARN) of the aggregator.

*/ inline const Aws::String& GetConfigurationAggregatorArn() const{ return m_configurationAggregatorArn; } /** *

The Amazon Resource Name (ARN) of the aggregator.

*/ inline bool ConfigurationAggregatorArnHasBeenSet() const { return m_configurationAggregatorArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the aggregator.

*/ inline void SetConfigurationAggregatorArn(const Aws::String& value) { m_configurationAggregatorArnHasBeenSet = true; m_configurationAggregatorArn = value; } /** *

The Amazon Resource Name (ARN) of the aggregator.

*/ inline void SetConfigurationAggregatorArn(Aws::String&& value) { m_configurationAggregatorArnHasBeenSet = true; m_configurationAggregatorArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the aggregator.

*/ inline void SetConfigurationAggregatorArn(const char* value) { m_configurationAggregatorArnHasBeenSet = true; m_configurationAggregatorArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the aggregator.

*/ inline ConfigurationAggregator& WithConfigurationAggregatorArn(const Aws::String& value) { SetConfigurationAggregatorArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the aggregator.

*/ inline ConfigurationAggregator& WithConfigurationAggregatorArn(Aws::String&& value) { SetConfigurationAggregatorArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the aggregator.

*/ inline ConfigurationAggregator& WithConfigurationAggregatorArn(const char* value) { SetConfigurationAggregatorArn(value); return *this;} /** *

Provides a list of source accounts and regions to be aggregated.

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

Provides a list of source accounts and regions to be aggregated.

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

Provides a list of source accounts and regions to be aggregated.

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

Provides a list of source accounts and regions to be aggregated.

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

Provides a list of source accounts and regions to be aggregated.

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

Provides a list of source accounts and regions to be aggregated.

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

Provides a list of source accounts and regions to be aggregated.

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

Provides a list of source accounts and regions to be aggregated.

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

Provides an organization and list of regions to be aggregated.

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

Provides an organization and list of regions to be aggregated.

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

Provides an organization and list of regions to be aggregated.

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

Provides an organization and list of regions to be aggregated.

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

Provides an organization and list of regions to be aggregated.

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

Provides an organization and list of regions to be aggregated.

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

The time stamp when the configuration aggregator was created.

*/ inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; } /** *

The time stamp when the configuration aggregator was created.

*/ inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; } /** *

The time stamp when the configuration aggregator was created.

*/ inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; } /** *

The time stamp when the configuration aggregator was created.

*/ inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); } /** *

The time stamp when the configuration aggregator was created.

*/ inline ConfigurationAggregator& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;} /** *

The time stamp when the configuration aggregator was created.

*/ inline ConfigurationAggregator& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;} /** *

The time of the last update.

*/ inline const Aws::Utils::DateTime& GetLastUpdatedTime() const{ return m_lastUpdatedTime; } /** *

The time of the last update.

*/ inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; } /** *

The time of the last update.

*/ inline void SetLastUpdatedTime(const Aws::Utils::DateTime& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = value; } /** *

The time of the last update.

*/ inline void SetLastUpdatedTime(Aws::Utils::DateTime&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::move(value); } /** *

The time of the last update.

*/ inline ConfigurationAggregator& WithLastUpdatedTime(const Aws::Utils::DateTime& value) { SetLastUpdatedTime(value); return *this;} /** *

The time of the last update.

*/ inline ConfigurationAggregator& WithLastUpdatedTime(Aws::Utils::DateTime&& value) { SetLastUpdatedTime(std::move(value)); return *this;} /** *

Amazon Web Services service that created the configuration aggregator.

*/ inline const Aws::String& GetCreatedBy() const{ return m_createdBy; } /** *

Amazon Web Services service that created the configuration aggregator.

*/ inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; } /** *

Amazon Web Services service that created the configuration aggregator.

*/ inline void SetCreatedBy(const Aws::String& value) { m_createdByHasBeenSet = true; m_createdBy = value; } /** *

Amazon Web Services service that created the configuration aggregator.

*/ inline void SetCreatedBy(Aws::String&& value) { m_createdByHasBeenSet = true; m_createdBy = std::move(value); } /** *

Amazon Web Services service that created the configuration aggregator.

*/ inline void SetCreatedBy(const char* value) { m_createdByHasBeenSet = true; m_createdBy.assign(value); } /** *

Amazon Web Services service that created the configuration aggregator.

*/ inline ConfigurationAggregator& WithCreatedBy(const Aws::String& value) { SetCreatedBy(value); return *this;} /** *

Amazon Web Services service that created the configuration aggregator.

*/ inline ConfigurationAggregator& WithCreatedBy(Aws::String&& value) { SetCreatedBy(std::move(value)); return *this;} /** *

Amazon Web Services service that created the configuration aggregator.

*/ inline ConfigurationAggregator& WithCreatedBy(const char* value) { SetCreatedBy(value); return *this;} private: Aws::String m_configurationAggregatorName; bool m_configurationAggregatorNameHasBeenSet = false; Aws::String m_configurationAggregatorArn; bool m_configurationAggregatorArnHasBeenSet = false; Aws::Vector m_accountAggregationSources; bool m_accountAggregationSourcesHasBeenSet = false; OrganizationAggregationSource m_organizationAggregationSource; bool m_organizationAggregationSourceHasBeenSet = false; Aws::Utils::DateTime m_creationTime; bool m_creationTimeHasBeenSet = false; Aws::Utils::DateTime m_lastUpdatedTime; bool m_lastUpdatedTimeHasBeenSet = false; Aws::String m_createdBy; bool m_createdByHasBeenSet = false; }; } // namespace Model } // namespace ConfigService } // namespace Aws