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

Statistics for an OpenSearch Serverless access policy.

See * Also:

AWS * API Reference

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

The number of data access policies in the current account.

*/ inline long long GetDataPolicyCount() const{ return m_dataPolicyCount; } /** *

The number of data access policies in the current account.

*/ inline bool DataPolicyCountHasBeenSet() const { return m_dataPolicyCountHasBeenSet; } /** *

The number of data access policies in the current account.

*/ inline void SetDataPolicyCount(long long value) { m_dataPolicyCountHasBeenSet = true; m_dataPolicyCount = value; } /** *

The number of data access policies in the current account.

*/ inline AccessPolicyStats& WithDataPolicyCount(long long value) { SetDataPolicyCount(value); return *this;} private: long long m_dataPolicyCount; bool m_dataPolicyCountHasBeenSet = false; }; } // namespace Model } // namespace OpenSearchServerless } // namespace Aws