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

Information about the source of the data included in the resource data * sync.

See Also:

AWS * API Reference

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

The type of data source for the resource data sync. SourceType * is either AwsOrganizations (if an organization is present in AWS * Organizations) or singleAccountMultiRegions.

*/ inline const Aws::String& GetSourceType() const{ return m_sourceType; } /** *

The type of data source for the resource data sync. SourceType * is either AwsOrganizations (if an organization is present in AWS * Organizations) or singleAccountMultiRegions.

*/ inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; } /** *

The type of data source for the resource data sync. SourceType * is either AwsOrganizations (if an organization is present in AWS * Organizations) or singleAccountMultiRegions.

*/ inline void SetSourceType(const Aws::String& value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; } /** *

The type of data source for the resource data sync. SourceType * is either AwsOrganizations (if an organization is present in AWS * Organizations) or singleAccountMultiRegions.

*/ inline void SetSourceType(Aws::String&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::move(value); } /** *

The type of data source for the resource data sync. SourceType * is either AwsOrganizations (if an organization is present in AWS * Organizations) or singleAccountMultiRegions.

*/ inline void SetSourceType(const char* value) { m_sourceTypeHasBeenSet = true; m_sourceType.assign(value); } /** *

The type of data source for the resource data sync. SourceType * is either AwsOrganizations (if an organization is present in AWS * Organizations) or singleAccountMultiRegions.

*/ inline ResourceDataSyncSource& WithSourceType(const Aws::String& value) { SetSourceType(value); return *this;} /** *

The type of data source for the resource data sync. SourceType * is either AwsOrganizations (if an organization is present in AWS * Organizations) or singleAccountMultiRegions.

*/ inline ResourceDataSyncSource& WithSourceType(Aws::String&& value) { SetSourceType(std::move(value)); return *this;} /** *

The type of data source for the resource data sync. SourceType * is either AwsOrganizations (if an organization is present in AWS * Organizations) or singleAccountMultiRegions.

*/ inline ResourceDataSyncSource& WithSourceType(const char* value) { SetSourceType(value); return *this;} /** *

Information about the AwsOrganizationsSource resource data sync source. A * sync source of this type can synchronize data from AWS Organizations.

*/ inline const ResourceDataSyncAwsOrganizationsSource& GetAwsOrganizationsSource() const{ return m_awsOrganizationsSource; } /** *

Information about the AwsOrganizationsSource resource data sync source. A * sync source of this type can synchronize data from AWS Organizations.

*/ inline bool AwsOrganizationsSourceHasBeenSet() const { return m_awsOrganizationsSourceHasBeenSet; } /** *

Information about the AwsOrganizationsSource resource data sync source. A * sync source of this type can synchronize data from AWS Organizations.

*/ inline void SetAwsOrganizationsSource(const ResourceDataSyncAwsOrganizationsSource& value) { m_awsOrganizationsSourceHasBeenSet = true; m_awsOrganizationsSource = value; } /** *

Information about the AwsOrganizationsSource resource data sync source. A * sync source of this type can synchronize data from AWS Organizations.

*/ inline void SetAwsOrganizationsSource(ResourceDataSyncAwsOrganizationsSource&& value) { m_awsOrganizationsSourceHasBeenSet = true; m_awsOrganizationsSource = std::move(value); } /** *

Information about the AwsOrganizationsSource resource data sync source. A * sync source of this type can synchronize data from AWS Organizations.

*/ inline ResourceDataSyncSource& WithAwsOrganizationsSource(const ResourceDataSyncAwsOrganizationsSource& value) { SetAwsOrganizationsSource(value); return *this;} /** *

Information about the AwsOrganizationsSource resource data sync source. A * sync source of this type can synchronize data from AWS Organizations.

*/ inline ResourceDataSyncSource& WithAwsOrganizationsSource(ResourceDataSyncAwsOrganizationsSource&& value) { SetAwsOrganizationsSource(std::move(value)); return *this;} /** *

The SyncSource AWS Regions included in the resource data * sync.

*/ inline const Aws::Vector& GetSourceRegions() const{ return m_sourceRegions; } /** *

The SyncSource AWS Regions included in the resource data * sync.

*/ inline bool SourceRegionsHasBeenSet() const { return m_sourceRegionsHasBeenSet; } /** *

The SyncSource AWS Regions included in the resource data * sync.

*/ inline void SetSourceRegions(const Aws::Vector& value) { m_sourceRegionsHasBeenSet = true; m_sourceRegions = value; } /** *

The SyncSource AWS Regions included in the resource data * sync.

*/ inline void SetSourceRegions(Aws::Vector&& value) { m_sourceRegionsHasBeenSet = true; m_sourceRegions = std::move(value); } /** *

The SyncSource AWS Regions included in the resource data * sync.

*/ inline ResourceDataSyncSource& WithSourceRegions(const Aws::Vector& value) { SetSourceRegions(value); return *this;} /** *

The SyncSource AWS Regions included in the resource data * sync.

*/ inline ResourceDataSyncSource& WithSourceRegions(Aws::Vector&& value) { SetSourceRegions(std::move(value)); return *this;} /** *

The SyncSource AWS Regions included in the resource data * sync.

*/ inline ResourceDataSyncSource& AddSourceRegions(const Aws::String& value) { m_sourceRegionsHasBeenSet = true; m_sourceRegions.push_back(value); return *this; } /** *

The SyncSource AWS Regions included in the resource data * sync.

*/ inline ResourceDataSyncSource& AddSourceRegions(Aws::String&& value) { m_sourceRegionsHasBeenSet = true; m_sourceRegions.push_back(std::move(value)); return *this; } /** *

The SyncSource AWS Regions included in the resource data * sync.

*/ inline ResourceDataSyncSource& AddSourceRegions(const char* value) { m_sourceRegionsHasBeenSet = true; m_sourceRegions.push_back(value); return *this; } /** *

Whether to automatically synchronize and aggregate data from new AWS Regions * when those Regions come online.

*/ inline bool GetIncludeFutureRegions() const{ return m_includeFutureRegions; } /** *

Whether to automatically synchronize and aggregate data from new AWS Regions * when those Regions come online.

*/ inline bool IncludeFutureRegionsHasBeenSet() const { return m_includeFutureRegionsHasBeenSet; } /** *

Whether to automatically synchronize and aggregate data from new AWS Regions * when those Regions come online.

*/ inline void SetIncludeFutureRegions(bool value) { m_includeFutureRegionsHasBeenSet = true; m_includeFutureRegions = value; } /** *

Whether to automatically synchronize and aggregate data from new AWS Regions * when those Regions come online.

*/ inline ResourceDataSyncSource& WithIncludeFutureRegions(bool value) { SetIncludeFutureRegions(value); return *this;} private: Aws::String m_sourceType; bool m_sourceTypeHasBeenSet; ResourceDataSyncAwsOrganizationsSource m_awsOrganizationsSource; bool m_awsOrganizationsSourceHasBeenSet; Aws::Vector m_sourceRegions; bool m_sourceRegionsHasBeenSet; bool m_includeFutureRegions; bool m_includeFutureRegionsHasBeenSet; }; } // namespace Model } // namespace SSM } // namespace Aws