/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A structure that contains details about a static policy. It includes the
* description and policy body. This data type is used within a PolicyDefinition
* structure as part of a request parameter for the CreatePolicy
* operation.See Also:
AWS
* API Reference
A description of the static policy.
*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *A description of the static policy.
*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *A description of the static policy.
*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *A description of the static policy.
*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *A description of the static policy.
*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *A description of the static policy.
*/ inline StaticPolicyDefinitionDetail& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *A description of the static policy.
*/ inline StaticPolicyDefinitionDetail& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *A description of the static policy.
*/ inline StaticPolicyDefinitionDetail& WithDescription(const char* value) { SetDescription(value); return *this;} /** *The content of the static policy written in the Cedar policy language.
*/ inline const Aws::String& GetStatement() const{ return m_statement; } /** *The content of the static policy written in the Cedar policy language.
*/ inline bool StatementHasBeenSet() const { return m_statementHasBeenSet; } /** *The content of the static policy written in the Cedar policy language.
*/ inline void SetStatement(const Aws::String& value) { m_statementHasBeenSet = true; m_statement = value; } /** *The content of the static policy written in the Cedar policy language.
*/ inline void SetStatement(Aws::String&& value) { m_statementHasBeenSet = true; m_statement = std::move(value); } /** *The content of the static policy written in the Cedar policy language.
*/ inline void SetStatement(const char* value) { m_statementHasBeenSet = true; m_statement.assign(value); } /** *The content of the static policy written in the Cedar policy language.
*/ inline StaticPolicyDefinitionDetail& WithStatement(const Aws::String& value) { SetStatement(value); return *this;} /** *The content of the static policy written in the Cedar policy language.
*/ inline StaticPolicyDefinitionDetail& WithStatement(Aws::String&& value) { SetStatement(std::move(value)); return *this;} /** *The content of the static policy written in the Cedar policy language.
*/ inline StaticPolicyDefinitionDetail& WithStatement(const char* value) { SetStatement(value); return *this;} private: Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_statement; bool m_statementHasBeenSet = false; }; } // namespace Model } // namespace VerifiedPermissions } // namespace Aws