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

A summary of a security policy for OpenSearch Serverless.

See * Also:

AWS * API Reference

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

The date the policy was created.

*/ inline long long GetCreatedDate() const{ return m_createdDate; } /** *

The date the policy was created.

*/ inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; } /** *

The date the policy was created.

*/ inline void SetCreatedDate(long long value) { m_createdDateHasBeenSet = true; m_createdDate = value; } /** *

The date the policy was created.

*/ inline SecurityPolicySummary& WithCreatedDate(long long value) { SetCreatedDate(value); return *this;} /** *

The description of the security policy.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description of the security policy.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The description of the security policy.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The description of the security policy.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The description of the security policy.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The description of the security policy.

*/ inline SecurityPolicySummary& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description of the security policy.

*/ inline SecurityPolicySummary& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description of the security policy.

*/ inline SecurityPolicySummary& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The timestamp of when the policy was last modified.

*/ inline long long GetLastModifiedDate() const{ return m_lastModifiedDate; } /** *

The timestamp of when the policy was last modified.

*/ inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; } /** *

The timestamp of when the policy was last modified.

*/ inline void SetLastModifiedDate(long long value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = value; } /** *

The timestamp of when the policy was last modified.

*/ inline SecurityPolicySummary& WithLastModifiedDate(long long value) { SetLastModifiedDate(value); return *this;} /** *

The name of the policy.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the policy.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the policy.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the policy.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the policy.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the policy.

*/ inline SecurityPolicySummary& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the policy.

*/ inline SecurityPolicySummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the policy.

*/ inline SecurityPolicySummary& WithName(const char* value) { SetName(value); return *this;} /** *

The version of the policy.

*/ inline const Aws::String& GetPolicyVersion() const{ return m_policyVersion; } /** *

The version of the policy.

*/ inline bool PolicyVersionHasBeenSet() const { return m_policyVersionHasBeenSet; } /** *

The version of the policy.

*/ inline void SetPolicyVersion(const Aws::String& value) { m_policyVersionHasBeenSet = true; m_policyVersion = value; } /** *

The version of the policy.

*/ inline void SetPolicyVersion(Aws::String&& value) { m_policyVersionHasBeenSet = true; m_policyVersion = std::move(value); } /** *

The version of the policy.

*/ inline void SetPolicyVersion(const char* value) { m_policyVersionHasBeenSet = true; m_policyVersion.assign(value); } /** *

The version of the policy.

*/ inline SecurityPolicySummary& WithPolicyVersion(const Aws::String& value) { SetPolicyVersion(value); return *this;} /** *

The version of the policy.

*/ inline SecurityPolicySummary& WithPolicyVersion(Aws::String&& value) { SetPolicyVersion(std::move(value)); return *this;} /** *

The version of the policy.

*/ inline SecurityPolicySummary& WithPolicyVersion(const char* value) { SetPolicyVersion(value); return *this;} /** *

The type of security policy.

*/ inline const SecurityPolicyType& GetType() const{ return m_type; } /** *

The type of security policy.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of security policy.

*/ inline void SetType(const SecurityPolicyType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of security policy.

*/ inline void SetType(SecurityPolicyType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of security policy.

*/ inline SecurityPolicySummary& WithType(const SecurityPolicyType& value) { SetType(value); return *this;} /** *

The type of security policy.

*/ inline SecurityPolicySummary& WithType(SecurityPolicyType&& value) { SetType(std::move(value)); return *this;} private: long long m_createdDate; bool m_createdDateHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; long long m_lastModifiedDate; bool m_lastModifiedDateHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_policyVersion; bool m_policyVersionHasBeenSet = false; SecurityPolicyType m_type; bool m_typeHasBeenSet = false; }; } // namespace Model } // namespace OpenSearchServerless } // namespace Aws