/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Details about an OpenSearch Serverless security policy.See
* Also:
AWS
* API Reference
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 SecurityPolicyDetail& 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 SecurityPolicyDetail& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *The description of the security policy.
*/ inline SecurityPolicyDetail& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *The description of the security policy.
*/ inline SecurityPolicyDetail& 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 SecurityPolicyDetail& 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 SecurityPolicyDetail& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The name of the policy.
*/ inline SecurityPolicyDetail& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The name of the policy.
*/ inline SecurityPolicyDetail& WithName(const char* value) { SetName(value); return *this;} /** *The JSON policy document without any whitespaces.
*/ inline Aws::Utils::DocumentView GetPolicy() const{ return m_policy; } /** *The JSON policy document without any whitespaces.
*/ inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; } /** *The JSON policy document without any whitespaces.
*/ inline void SetPolicy(const Aws::Utils::Document& value) { m_policyHasBeenSet = true; m_policy = value; } /** *The JSON policy document without any whitespaces.
*/ inline void SetPolicy(Aws::Utils::Document&& value) { m_policyHasBeenSet = true; m_policy = std::move(value); } /** *The JSON policy document without any whitespaces.
*/ inline SecurityPolicyDetail& WithPolicy(const Aws::Utils::Document& value) { SetPolicy(value); return *this;} /** *The JSON policy document without any whitespaces.
*/ inline SecurityPolicyDetail& WithPolicy(Aws::Utils::Document&& value) { SetPolicy(std::move(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 SecurityPolicyDetail& WithPolicyVersion(const Aws::String& value) { SetPolicyVersion(value); return *this;} /** *The version of the policy.
*/ inline SecurityPolicyDetail& WithPolicyVersion(Aws::String&& value) { SetPolicyVersion(std::move(value)); return *this;} /** *The version of the policy.
*/ inline SecurityPolicyDetail& 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 SecurityPolicyDetail& WithType(const SecurityPolicyType& value) { SetType(value); return *this;} /** *The type of security policy.
*/ inline SecurityPolicyDetail& 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::Utils::Document m_policy; bool m_policyHasBeenSet = false; Aws::String m_policyVersion; bool m_policyVersionHasBeenSet = false; SecurityPolicyType m_type; bool m_typeHasBeenSet = false; }; } // namespace Model } // namespace OpenSearchServerless } // namespace Aws