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

Contains directory limit information for a Region.

See Also:

* AWS * API Reference

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

The maximum number of cloud directories allowed in the Region.

*/ inline int GetCloudOnlyDirectoriesLimit() const{ return m_cloudOnlyDirectoriesLimit; } /** *

The maximum number of cloud directories allowed in the Region.

*/ inline bool CloudOnlyDirectoriesLimitHasBeenSet() const { return m_cloudOnlyDirectoriesLimitHasBeenSet; } /** *

The maximum number of cloud directories allowed in the Region.

*/ inline void SetCloudOnlyDirectoriesLimit(int value) { m_cloudOnlyDirectoriesLimitHasBeenSet = true; m_cloudOnlyDirectoriesLimit = value; } /** *

The maximum number of cloud directories allowed in the Region.

*/ inline DirectoryLimits& WithCloudOnlyDirectoriesLimit(int value) { SetCloudOnlyDirectoriesLimit(value); return *this;} /** *

The current number of cloud directories in the Region.

*/ inline int GetCloudOnlyDirectoriesCurrentCount() const{ return m_cloudOnlyDirectoriesCurrentCount; } /** *

The current number of cloud directories in the Region.

*/ inline bool CloudOnlyDirectoriesCurrentCountHasBeenSet() const { return m_cloudOnlyDirectoriesCurrentCountHasBeenSet; } /** *

The current number of cloud directories in the Region.

*/ inline void SetCloudOnlyDirectoriesCurrentCount(int value) { m_cloudOnlyDirectoriesCurrentCountHasBeenSet = true; m_cloudOnlyDirectoriesCurrentCount = value; } /** *

The current number of cloud directories in the Region.

*/ inline DirectoryLimits& WithCloudOnlyDirectoriesCurrentCount(int value) { SetCloudOnlyDirectoriesCurrentCount(value); return *this;} /** *

Indicates if the cloud directory limit has been reached.

*/ inline bool GetCloudOnlyDirectoriesLimitReached() const{ return m_cloudOnlyDirectoriesLimitReached; } /** *

Indicates if the cloud directory limit has been reached.

*/ inline bool CloudOnlyDirectoriesLimitReachedHasBeenSet() const { return m_cloudOnlyDirectoriesLimitReachedHasBeenSet; } /** *

Indicates if the cloud directory limit has been reached.

*/ inline void SetCloudOnlyDirectoriesLimitReached(bool value) { m_cloudOnlyDirectoriesLimitReachedHasBeenSet = true; m_cloudOnlyDirectoriesLimitReached = value; } /** *

Indicates if the cloud directory limit has been reached.

*/ inline DirectoryLimits& WithCloudOnlyDirectoriesLimitReached(bool value) { SetCloudOnlyDirectoriesLimitReached(value); return *this;} /** *

The maximum number of Managed Microsoft AD directories allowed in the * region.

*/ inline int GetCloudOnlyMicrosoftADLimit() const{ return m_cloudOnlyMicrosoftADLimit; } /** *

The maximum number of Managed Microsoft AD directories allowed in the * region.

*/ inline bool CloudOnlyMicrosoftADLimitHasBeenSet() const { return m_cloudOnlyMicrosoftADLimitHasBeenSet; } /** *

The maximum number of Managed Microsoft AD directories allowed in the * region.

*/ inline void SetCloudOnlyMicrosoftADLimit(int value) { m_cloudOnlyMicrosoftADLimitHasBeenSet = true; m_cloudOnlyMicrosoftADLimit = value; } /** *

The maximum number of Managed Microsoft AD directories allowed in the * region.

*/ inline DirectoryLimits& WithCloudOnlyMicrosoftADLimit(int value) { SetCloudOnlyMicrosoftADLimit(value); return *this;} /** *

The current number of Managed Microsoft AD directories in the region.

*/ inline int GetCloudOnlyMicrosoftADCurrentCount() const{ return m_cloudOnlyMicrosoftADCurrentCount; } /** *

The current number of Managed Microsoft AD directories in the region.

*/ inline bool CloudOnlyMicrosoftADCurrentCountHasBeenSet() const { return m_cloudOnlyMicrosoftADCurrentCountHasBeenSet; } /** *

The current number of Managed Microsoft AD directories in the region.

*/ inline void SetCloudOnlyMicrosoftADCurrentCount(int value) { m_cloudOnlyMicrosoftADCurrentCountHasBeenSet = true; m_cloudOnlyMicrosoftADCurrentCount = value; } /** *

The current number of Managed Microsoft AD directories in the region.

*/ inline DirectoryLimits& WithCloudOnlyMicrosoftADCurrentCount(int value) { SetCloudOnlyMicrosoftADCurrentCount(value); return *this;} /** *

Indicates if the Managed Microsoft AD directory limit has been reached.

*/ inline bool GetCloudOnlyMicrosoftADLimitReached() const{ return m_cloudOnlyMicrosoftADLimitReached; } /** *

Indicates if the Managed Microsoft AD directory limit has been reached.

*/ inline bool CloudOnlyMicrosoftADLimitReachedHasBeenSet() const { return m_cloudOnlyMicrosoftADLimitReachedHasBeenSet; } /** *

Indicates if the Managed Microsoft AD directory limit has been reached.

*/ inline void SetCloudOnlyMicrosoftADLimitReached(bool value) { m_cloudOnlyMicrosoftADLimitReachedHasBeenSet = true; m_cloudOnlyMicrosoftADLimitReached = value; } /** *

Indicates if the Managed Microsoft AD directory limit has been reached.

*/ inline DirectoryLimits& WithCloudOnlyMicrosoftADLimitReached(bool value) { SetCloudOnlyMicrosoftADLimitReached(value); return *this;} /** *

The maximum number of connected directories allowed in the Region.

*/ inline int GetConnectedDirectoriesLimit() const{ return m_connectedDirectoriesLimit; } /** *

The maximum number of connected directories allowed in the Region.

*/ inline bool ConnectedDirectoriesLimitHasBeenSet() const { return m_connectedDirectoriesLimitHasBeenSet; } /** *

The maximum number of connected directories allowed in the Region.

*/ inline void SetConnectedDirectoriesLimit(int value) { m_connectedDirectoriesLimitHasBeenSet = true; m_connectedDirectoriesLimit = value; } /** *

The maximum number of connected directories allowed in the Region.

*/ inline DirectoryLimits& WithConnectedDirectoriesLimit(int value) { SetConnectedDirectoriesLimit(value); return *this;} /** *

The current number of connected directories in the Region.

*/ inline int GetConnectedDirectoriesCurrentCount() const{ return m_connectedDirectoriesCurrentCount; } /** *

The current number of connected directories in the Region.

*/ inline bool ConnectedDirectoriesCurrentCountHasBeenSet() const { return m_connectedDirectoriesCurrentCountHasBeenSet; } /** *

The current number of connected directories in the Region.

*/ inline void SetConnectedDirectoriesCurrentCount(int value) { m_connectedDirectoriesCurrentCountHasBeenSet = true; m_connectedDirectoriesCurrentCount = value; } /** *

The current number of connected directories in the Region.

*/ inline DirectoryLimits& WithConnectedDirectoriesCurrentCount(int value) { SetConnectedDirectoriesCurrentCount(value); return *this;} /** *

Indicates if the connected directory limit has been reached.

*/ inline bool GetConnectedDirectoriesLimitReached() const{ return m_connectedDirectoriesLimitReached; } /** *

Indicates if the connected directory limit has been reached.

*/ inline bool ConnectedDirectoriesLimitReachedHasBeenSet() const { return m_connectedDirectoriesLimitReachedHasBeenSet; } /** *

Indicates if the connected directory limit has been reached.

*/ inline void SetConnectedDirectoriesLimitReached(bool value) { m_connectedDirectoriesLimitReachedHasBeenSet = true; m_connectedDirectoriesLimitReached = value; } /** *

Indicates if the connected directory limit has been reached.

*/ inline DirectoryLimits& WithConnectedDirectoriesLimitReached(bool value) { SetConnectedDirectoriesLimitReached(value); return *this;} private: int m_cloudOnlyDirectoriesLimit; bool m_cloudOnlyDirectoriesLimitHasBeenSet = false; int m_cloudOnlyDirectoriesCurrentCount; bool m_cloudOnlyDirectoriesCurrentCountHasBeenSet = false; bool m_cloudOnlyDirectoriesLimitReached; bool m_cloudOnlyDirectoriesLimitReachedHasBeenSet = false; int m_cloudOnlyMicrosoftADLimit; bool m_cloudOnlyMicrosoftADLimitHasBeenSet = false; int m_cloudOnlyMicrosoftADCurrentCount; bool m_cloudOnlyMicrosoftADCurrentCountHasBeenSet = false; bool m_cloudOnlyMicrosoftADLimitReached; bool m_cloudOnlyMicrosoftADLimitReachedHasBeenSet = false; int m_connectedDirectoriesLimit; bool m_connectedDirectoriesLimitHasBeenSet = false; int m_connectedDirectoriesCurrentCount; bool m_connectedDirectoriesCurrentCountHasBeenSet = false; bool m_connectedDirectoriesLimitReached; bool m_connectedDirectoriesLimitReachedHasBeenSet = false; }; } // namespace Model } // namespace DirectoryService } // namespace Aws