/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace VerifiedPermissions { namespace Model { /** *

Contains information about a static policy.

This data type is used as * a field that is part of the PolicyDefinitionDetail * type.

See Also:

AWS * API Reference

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

The description of the static policy.

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

The description of the static policy.

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

The description of the static policy.

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

The description of the static policy.

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

The description of the static policy.

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

The description of the static policy.

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

The description of the static policy.

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

The description of the static policy.

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

The policy content of the static policy, written in the Cedar policy * language.

*/ inline const Aws::String& GetStatement() const{ return m_statement; } /** *

The policy content of the static policy, written in the Cedar policy * language.

*/ inline bool StatementHasBeenSet() const { return m_statementHasBeenSet; } /** *

The policy 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 policy 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 policy 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 policy content of the static policy, written in the Cedar policy * language.

*/ inline StaticPolicyDefinition& WithStatement(const Aws::String& value) { SetStatement(value); return *this;} /** *

The policy content of the static policy, written in the Cedar policy * language.

*/ inline StaticPolicyDefinition& WithStatement(Aws::String&& value) { SetStatement(std::move(value)); return *this;} /** *

The policy content of the static policy, written in the Cedar policy * language.

*/ inline StaticPolicyDefinition& 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