/** * 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 DirectoryService { namespace Model { /** *

Provides information about the Regions that are configured for multi-Region * replication.

See Also:

AWS API * Reference

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

The Region where the Managed Microsoft AD directory was originally * created.

*/ inline const Aws::String& GetPrimaryRegion() const{ return m_primaryRegion; } /** *

The Region where the Managed Microsoft AD directory was originally * created.

*/ inline bool PrimaryRegionHasBeenSet() const { return m_primaryRegionHasBeenSet; } /** *

The Region where the Managed Microsoft AD directory was originally * created.

*/ inline void SetPrimaryRegion(const Aws::String& value) { m_primaryRegionHasBeenSet = true; m_primaryRegion = value; } /** *

The Region where the Managed Microsoft AD directory was originally * created.

*/ inline void SetPrimaryRegion(Aws::String&& value) { m_primaryRegionHasBeenSet = true; m_primaryRegion = std::move(value); } /** *

The Region where the Managed Microsoft AD directory was originally * created.

*/ inline void SetPrimaryRegion(const char* value) { m_primaryRegionHasBeenSet = true; m_primaryRegion.assign(value); } /** *

The Region where the Managed Microsoft AD directory was originally * created.

*/ inline RegionsInfo& WithPrimaryRegion(const Aws::String& value) { SetPrimaryRegion(value); return *this;} /** *

The Region where the Managed Microsoft AD directory was originally * created.

*/ inline RegionsInfo& WithPrimaryRegion(Aws::String&& value) { SetPrimaryRegion(std::move(value)); return *this;} /** *

The Region where the Managed Microsoft AD directory was originally * created.

*/ inline RegionsInfo& WithPrimaryRegion(const char* value) { SetPrimaryRegion(value); return *this;} /** *

Lists the Regions where the directory has been replicated, excluding the * primary Region.

*/ inline const Aws::Vector& GetAdditionalRegions() const{ return m_additionalRegions; } /** *

Lists the Regions where the directory has been replicated, excluding the * primary Region.

*/ inline bool AdditionalRegionsHasBeenSet() const { return m_additionalRegionsHasBeenSet; } /** *

Lists the Regions where the directory has been replicated, excluding the * primary Region.

*/ inline void SetAdditionalRegions(const Aws::Vector& value) { m_additionalRegionsHasBeenSet = true; m_additionalRegions = value; } /** *

Lists the Regions where the directory has been replicated, excluding the * primary Region.

*/ inline void SetAdditionalRegions(Aws::Vector&& value) { m_additionalRegionsHasBeenSet = true; m_additionalRegions = std::move(value); } /** *

Lists the Regions where the directory has been replicated, excluding the * primary Region.

*/ inline RegionsInfo& WithAdditionalRegions(const Aws::Vector& value) { SetAdditionalRegions(value); return *this;} /** *

Lists the Regions where the directory has been replicated, excluding the * primary Region.

*/ inline RegionsInfo& WithAdditionalRegions(Aws::Vector&& value) { SetAdditionalRegions(std::move(value)); return *this;} /** *

Lists the Regions where the directory has been replicated, excluding the * primary Region.

*/ inline RegionsInfo& AddAdditionalRegions(const Aws::String& value) { m_additionalRegionsHasBeenSet = true; m_additionalRegions.push_back(value); return *this; } /** *

Lists the Regions where the directory has been replicated, excluding the * primary Region.

*/ inline RegionsInfo& AddAdditionalRegions(Aws::String&& value) { m_additionalRegionsHasBeenSet = true; m_additionalRegions.push_back(std::move(value)); return *this; } /** *

Lists the Regions where the directory has been replicated, excluding the * primary Region.

*/ inline RegionsInfo& AddAdditionalRegions(const char* value) { m_additionalRegionsHasBeenSet = true; m_additionalRegions.push_back(value); return *this; } private: Aws::String m_primaryRegion; bool m_primaryRegionHasBeenSet = false; Aws::Vector m_additionalRegions; bool m_additionalRegionsHasBeenSet = false; }; } // namespace Model } // namespace DirectoryService } // namespace Aws