/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ConfigService { namespace Model { /** *

This object contains regions to set up the aggregator and an IAM role to * retrieve organization details.

See Also:

AWS * API Reference

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

ARN of the IAM role used to retrieve AWS Organization details associated with * the aggregator account.

*/ inline const Aws::String& GetRoleArn() const{ return m_roleArn; } /** *

ARN of the IAM role used to retrieve AWS Organization details associated with * the aggregator account.

*/ inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } /** *

ARN of the IAM role used to retrieve AWS Organization details associated with * the aggregator account.

*/ inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } /** *

ARN of the IAM role used to retrieve AWS Organization details associated with * the aggregator account.

*/ inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } /** *

ARN of the IAM role used to retrieve AWS Organization details associated with * the aggregator account.

*/ inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } /** *

ARN of the IAM role used to retrieve AWS Organization details associated with * the aggregator account.

*/ inline OrganizationAggregationSource& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} /** *

ARN of the IAM role used to retrieve AWS Organization details associated with * the aggregator account.

*/ inline OrganizationAggregationSource& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} /** *

ARN of the IAM role used to retrieve AWS Organization details associated with * the aggregator account.

*/ inline OrganizationAggregationSource& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} /** *

The source regions being aggregated.

*/ inline const Aws::Vector& GetAwsRegions() const{ return m_awsRegions; } /** *

The source regions being aggregated.

*/ inline bool AwsRegionsHasBeenSet() const { return m_awsRegionsHasBeenSet; } /** *

The source regions being aggregated.

*/ inline void SetAwsRegions(const Aws::Vector& value) { m_awsRegionsHasBeenSet = true; m_awsRegions = value; } /** *

The source regions being aggregated.

*/ inline void SetAwsRegions(Aws::Vector&& value) { m_awsRegionsHasBeenSet = true; m_awsRegions = std::move(value); } /** *

The source regions being aggregated.

*/ inline OrganizationAggregationSource& WithAwsRegions(const Aws::Vector& value) { SetAwsRegions(value); return *this;} /** *

The source regions being aggregated.

*/ inline OrganizationAggregationSource& WithAwsRegions(Aws::Vector&& value) { SetAwsRegions(std::move(value)); return *this;} /** *

The source regions being aggregated.

*/ inline OrganizationAggregationSource& AddAwsRegions(const Aws::String& value) { m_awsRegionsHasBeenSet = true; m_awsRegions.push_back(value); return *this; } /** *

The source regions being aggregated.

*/ inline OrganizationAggregationSource& AddAwsRegions(Aws::String&& value) { m_awsRegionsHasBeenSet = true; m_awsRegions.push_back(std::move(value)); return *this; } /** *

The source regions being aggregated.

*/ inline OrganizationAggregationSource& AddAwsRegions(const char* value) { m_awsRegionsHasBeenSet = true; m_awsRegions.push_back(value); return *this; } /** *

If true, aggregate existing AWS Config regions and future regions.

*/ inline bool GetAllAwsRegions() const{ return m_allAwsRegions; } /** *

If true, aggregate existing AWS Config regions and future regions.

*/ inline bool AllAwsRegionsHasBeenSet() const { return m_allAwsRegionsHasBeenSet; } /** *

If true, aggregate existing AWS Config regions and future regions.

*/ inline void SetAllAwsRegions(bool value) { m_allAwsRegionsHasBeenSet = true; m_allAwsRegions = value; } /** *

If true, aggregate existing AWS Config regions and future regions.

*/ inline OrganizationAggregationSource& WithAllAwsRegions(bool value) { SetAllAwsRegions(value); return *this;} private: Aws::String m_roleArn; bool m_roleArnHasBeenSet; Aws::Vector m_awsRegions; bool m_awsRegionsHasBeenSet; bool m_allAwsRegions; bool m_allAwsRegionsHasBeenSet; }; } // namespace Model } // namespace ConfigService } // namespace Aws