/** * 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 { /** *

The data type name for including resource data sync state. There are four * sync states:

OrganizationNotExists (Your organization * doesn't exist)

NoPermissions (The system can't locate the * service-linked role. This role is automatically created when a user creates a * resource data sync in Explorer.)

InvalidOrganizationalUnit * (You specified or selected an invalid unit in the resource data sync * configuration.)

TrustedAccessDisabled (You disabled Systems * Manager access in the organization in AWS Organizations.)

See * Also:

AWS * API Reference

*/ class AWS_SSM_API ResourceDataSyncSourceWithState { public: ResourceDataSyncSourceWithState(); ResourceDataSyncSourceWithState(Aws::Utils::Json::JsonView jsonValue); ResourceDataSyncSourceWithState& 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 ResourceDataSyncSourceWithState& 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 ResourceDataSyncSourceWithState& 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 ResourceDataSyncSourceWithState& WithSourceType(const char* value) { SetSourceType(value); return *this;} /** *

The field name in SyncSource for the * ResourceDataSyncAwsOrganizationsSource type.

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

The field name in SyncSource for the * ResourceDataSyncAwsOrganizationsSource type.

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

The field name in SyncSource for the * ResourceDataSyncAwsOrganizationsSource type.

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

The field name in SyncSource for the * ResourceDataSyncAwsOrganizationsSource type.

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

The field name in SyncSource for the * ResourceDataSyncAwsOrganizationsSource type.

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

The field name in SyncSource for the * ResourceDataSyncAwsOrganizationsSource type.

*/ inline ResourceDataSyncSourceWithState& 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 ResourceDataSyncSourceWithState& WithSourceRegions(const Aws::Vector& value) { SetSourceRegions(value); return *this;} /** *

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

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

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

*/ inline ResourceDataSyncSourceWithState& 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 ResourceDataSyncSourceWithState& 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 ResourceDataSyncSourceWithState& 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 ResourceDataSyncSourceWithState& WithIncludeFutureRegions(bool value) { SetIncludeFutureRegions(value); return *this;} /** *

The data type name for including resource data sync state. There are four * sync states:

OrganizationNotExists: Your organization * doesn't exist.

NoPermissions: The system can't locate the * service-linked role. This role is automatically created when a user creates a * resource data sync in Explorer.

InvalidOrganizationalUnit: * You specified or selected an invalid unit in the resource data sync * configuration.

TrustedAccessDisabled: You disabled Systems * Manager access in the organization in AWS Organizations.

*/ inline const Aws::String& GetState() const{ return m_state; } /** *

The data type name for including resource data sync state. There are four * sync states:

OrganizationNotExists: Your organization * doesn't exist.

NoPermissions: The system can't locate the * service-linked role. This role is automatically created when a user creates a * resource data sync in Explorer.

InvalidOrganizationalUnit: * You specified or selected an invalid unit in the resource data sync * configuration.

TrustedAccessDisabled: You disabled Systems * Manager access in the organization in AWS Organizations.

*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *

The data type name for including resource data sync state. There are four * sync states:

OrganizationNotExists: Your organization * doesn't exist.

NoPermissions: The system can't locate the * service-linked role. This role is automatically created when a user creates a * resource data sync in Explorer.

InvalidOrganizationalUnit: * You specified or selected an invalid unit in the resource data sync * configuration.

TrustedAccessDisabled: You disabled Systems * Manager access in the organization in AWS Organizations.

*/ inline void SetState(const Aws::String& value) { m_stateHasBeenSet = true; m_state = value; } /** *

The data type name for including resource data sync state. There are four * sync states:

OrganizationNotExists: Your organization * doesn't exist.

NoPermissions: The system can't locate the * service-linked role. This role is automatically created when a user creates a * resource data sync in Explorer.

InvalidOrganizationalUnit: * You specified or selected an invalid unit in the resource data sync * configuration.

TrustedAccessDisabled: You disabled Systems * Manager access in the organization in AWS Organizations.

*/ inline void SetState(Aws::String&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *

The data type name for including resource data sync state. There are four * sync states:

OrganizationNotExists: Your organization * doesn't exist.

NoPermissions: The system can't locate the * service-linked role. This role is automatically created when a user creates a * resource data sync in Explorer.

InvalidOrganizationalUnit: * You specified or selected an invalid unit in the resource data sync * configuration.

TrustedAccessDisabled: You disabled Systems * Manager access in the organization in AWS Organizations.

*/ inline void SetState(const char* value) { m_stateHasBeenSet = true; m_state.assign(value); } /** *

The data type name for including resource data sync state. There are four * sync states:

OrganizationNotExists: Your organization * doesn't exist.

NoPermissions: The system can't locate the * service-linked role. This role is automatically created when a user creates a * resource data sync in Explorer.

InvalidOrganizationalUnit: * You specified or selected an invalid unit in the resource data sync * configuration.

TrustedAccessDisabled: You disabled Systems * Manager access in the organization in AWS Organizations.

*/ inline ResourceDataSyncSourceWithState& WithState(const Aws::String& value) { SetState(value); return *this;} /** *

The data type name for including resource data sync state. There are four * sync states:

OrganizationNotExists: Your organization * doesn't exist.

NoPermissions: The system can't locate the * service-linked role. This role is automatically created when a user creates a * resource data sync in Explorer.

InvalidOrganizationalUnit: * You specified or selected an invalid unit in the resource data sync * configuration.

TrustedAccessDisabled: You disabled Systems * Manager access in the organization in AWS Organizations.

*/ inline ResourceDataSyncSourceWithState& WithState(Aws::String&& value) { SetState(std::move(value)); return *this;} /** *

The data type name for including resource data sync state. There are four * sync states:

OrganizationNotExists: Your organization * doesn't exist.

NoPermissions: The system can't locate the * service-linked role. This role is automatically created when a user creates a * resource data sync in Explorer.

InvalidOrganizationalUnit: * You specified or selected an invalid unit in the resource data sync * configuration.

TrustedAccessDisabled: You disabled Systems * Manager access in the organization in AWS Organizations.

*/ inline ResourceDataSyncSourceWithState& WithState(const char* value) { SetState(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; Aws::String m_state; bool m_stateHasBeenSet; }; } // namespace Model } // namespace SSM } // namespace Aws