/** * 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 ResourceDataSyncSource { public: AWS_SSM_API ResourceDataSyncSource(); AWS_SSM_API ResourceDataSyncSource(Aws::Utils::Json::JsonView jsonValue); AWS_SSM_API ResourceDataSyncSource& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SSM_API 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 * 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 * 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 * 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 * 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 * 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 * 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 * 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 * 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 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 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 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 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 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 Organizations.

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

The SyncSource Amazon Web Services Regions included in the * resource data sync.

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

The SyncSource Amazon Web Services Regions included in the * resource data sync.

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

The SyncSource Amazon Web Services Regions included in the * resource data sync.

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

The SyncSource Amazon Web Services Regions included in the * resource data sync.

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

The SyncSource Amazon Web Services Regions included in the * resource data sync.

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

The SyncSource Amazon Web Services Regions included in the * resource data sync.

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

The SyncSource Amazon Web Services 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 Amazon Web Services 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 Amazon Web Services 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 Amazon Web * Services Regions when those Regions come online.

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

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

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

Whether to automatically synchronize and aggregate data from new Amazon Web * Services 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 Amazon Web * Services Regions when those Regions come online.

*/ inline ResourceDataSyncSource& WithIncludeFutureRegions(bool value) { SetIncludeFutureRegions(value); return *this;} /** *

When you create a resource data sync, if you choose one of the Organizations * options, then Systems Manager automatically enables all OpsData sources in the * selected Amazon Web Services Regions for all Amazon Web Services accounts in * your organization (or in the selected organization units). For more information, * see About * multiple account and Region resource data syncs in the Amazon Web * Services Systems Manager User Guide.

*/ inline bool GetEnableAllOpsDataSources() const{ return m_enableAllOpsDataSources; } /** *

When you create a resource data sync, if you choose one of the Organizations * options, then Systems Manager automatically enables all OpsData sources in the * selected Amazon Web Services Regions for all Amazon Web Services accounts in * your organization (or in the selected organization units). For more information, * see About * multiple account and Region resource data syncs in the Amazon Web * Services Systems Manager User Guide.

*/ inline bool EnableAllOpsDataSourcesHasBeenSet() const { return m_enableAllOpsDataSourcesHasBeenSet; } /** *

When you create a resource data sync, if you choose one of the Organizations * options, then Systems Manager automatically enables all OpsData sources in the * selected Amazon Web Services Regions for all Amazon Web Services accounts in * your organization (or in the selected organization units). For more information, * see About * multiple account and Region resource data syncs in the Amazon Web * Services Systems Manager User Guide.

*/ inline void SetEnableAllOpsDataSources(bool value) { m_enableAllOpsDataSourcesHasBeenSet = true; m_enableAllOpsDataSources = value; } /** *

When you create a resource data sync, if you choose one of the Organizations * options, then Systems Manager automatically enables all OpsData sources in the * selected Amazon Web Services Regions for all Amazon Web Services accounts in * your organization (or in the selected organization units). For more information, * see About * multiple account and Region resource data syncs in the Amazon Web * Services Systems Manager User Guide.

*/ inline ResourceDataSyncSource& WithEnableAllOpsDataSources(bool value) { SetEnableAllOpsDataSources(value); return *this;} private: Aws::String m_sourceType; bool m_sourceTypeHasBeenSet = false; ResourceDataSyncAwsOrganizationsSource m_awsOrganizationsSource; bool m_awsOrganizationsSourceHasBeenSet = false; Aws::Vector m_sourceRegions; bool m_sourceRegionsHasBeenSet = false; bool m_includeFutureRegions; bool m_includeFutureRegionsHasBeenSet = false; bool m_enableAllOpsDataSources; bool m_enableAllOpsDataSourcesHasBeenSet = false; }; } // namespace Model } // namespace SSM } // namespace Aws