/** * 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 security policy.

See * Also:

AWS * API Reference

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

The number of encryption policies in the current account.

*/ inline long long GetEncryptionPolicyCount() const{ return m_encryptionPolicyCount; } /** *

The number of encryption policies in the current account.

*/ inline bool EncryptionPolicyCountHasBeenSet() const { return m_encryptionPolicyCountHasBeenSet; } /** *

The number of encryption policies in the current account.

*/ inline void SetEncryptionPolicyCount(long long value) { m_encryptionPolicyCountHasBeenSet = true; m_encryptionPolicyCount = value; } /** *

The number of encryption policies in the current account.

*/ inline SecurityPolicyStats& WithEncryptionPolicyCount(long long value) { SetEncryptionPolicyCount(value); return *this;} /** *

The number of network policies in the current account.

*/ inline long long GetNetworkPolicyCount() const{ return m_networkPolicyCount; } /** *

The number of network policies in the current account.

*/ inline bool NetworkPolicyCountHasBeenSet() const { return m_networkPolicyCountHasBeenSet; } /** *

The number of network policies in the current account.

*/ inline void SetNetworkPolicyCount(long long value) { m_networkPolicyCountHasBeenSet = true; m_networkPolicyCount = value; } /** *

The number of network policies in the current account.

*/ inline SecurityPolicyStats& WithNetworkPolicyCount(long long value) { SetNetworkPolicyCount(value); return *this;} private: long long m_encryptionPolicyCount; bool m_encryptionPolicyCountHasBeenSet = false; long long m_networkPolicyCount; bool m_networkPolicyCountHasBeenSet = false; }; } // namespace Model } // namespace OpenSearchServerless } // namespace Aws