/** * 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 an update to a static policy.

See * Also:

AWS * API Reference

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

Specifies the description to be added to or replaced on the static * policy.

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

Specifies the description to be added to or replaced on the static * policy.

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

Specifies the description to be added to or replaced on the static * policy.

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

Specifies the description to be added to or replaced on the static * policy.

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

Specifies the description to be added to or replaced on the static * policy.

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

Specifies the description to be added to or replaced on the static * policy.

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

Specifies the description to be added to or replaced on the static * policy.

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

Specifies the description to be added to or replaced on the static * policy.

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

Specifies the Cedar policy language text to be added to or replaced on the * static policy.

You can change only the following elements * from the original content:

  • The action referenced * by the policy.

  • Any conditional clauses, such as * when or unless clauses.

You * can't change the following elements:

  • Changing from * StaticPolicy to TemplateLinkedPolicy.

  • *

    The effect (permit or forbid) of the policy.

    *
  • The principal referenced by the policy.

  • *
  • The resource referenced by the policy.

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

Specifies the Cedar policy language text to be added to or replaced on the * static policy.

You can change only the following elements * from the original content:

  • The action referenced * by the policy.

  • Any conditional clauses, such as * when or unless clauses.

You * can't change the following elements:

  • Changing from * StaticPolicy to TemplateLinkedPolicy.

  • *

    The effect (permit or forbid) of the policy.

    *
  • The principal referenced by the policy.

  • *
  • The resource referenced by the policy.

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

Specifies the Cedar policy language text to be added to or replaced on the * static policy.

You can change only the following elements * from the original content:

  • The action referenced * by the policy.

  • Any conditional clauses, such as * when or unless clauses.

You * can't change the following elements:

  • Changing from * StaticPolicy to TemplateLinkedPolicy.

  • *

    The effect (permit or forbid) of the policy.

    *
  • The principal referenced by the policy.

  • *
  • The resource referenced by the policy.

* */ inline void SetStatement(const Aws::String& value) { m_statementHasBeenSet = true; m_statement = value; } /** *

Specifies the Cedar policy language text to be added to or replaced on the * static policy.

You can change only the following elements * from the original content:

  • The action referenced * by the policy.

  • Any conditional clauses, such as * when or unless clauses.

You * can't change the following elements:

  • Changing from * StaticPolicy to TemplateLinkedPolicy.

  • *

    The effect (permit or forbid) of the policy.

    *
  • The principal referenced by the policy.

  • *
  • The resource referenced by the policy.

* */ inline void SetStatement(Aws::String&& value) { m_statementHasBeenSet = true; m_statement = std::move(value); } /** *

Specifies the Cedar policy language text to be added to or replaced on the * static policy.

You can change only the following elements * from the original content:

  • The action referenced * by the policy.

  • Any conditional clauses, such as * when or unless clauses.

You * can't change the following elements:

  • Changing from * StaticPolicy to TemplateLinkedPolicy.

  • *

    The effect (permit or forbid) of the policy.

    *
  • The principal referenced by the policy.

  • *
  • The resource referenced by the policy.

* */ inline void SetStatement(const char* value) { m_statementHasBeenSet = true; m_statement.assign(value); } /** *

Specifies the Cedar policy language text to be added to or replaced on the * static policy.

You can change only the following elements * from the original content:

  • The action referenced * by the policy.

  • Any conditional clauses, such as * when or unless clauses.

You * can't change the following elements:

  • Changing from * StaticPolicy to TemplateLinkedPolicy.

  • *

    The effect (permit or forbid) of the policy.

    *
  • The principal referenced by the policy.

  • *
  • The resource referenced by the policy.

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

Specifies the Cedar policy language text to be added to or replaced on the * static policy.

You can change only the following elements * from the original content:

  • The action referenced * by the policy.

  • Any conditional clauses, such as * when or unless clauses.

You * can't change the following elements:

  • Changing from * StaticPolicy to TemplateLinkedPolicy.

  • *

    The effect (permit or forbid) of the policy.

    *
  • The principal referenced by the policy.

  • *
  • The resource referenced by the policy.

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

Specifies the Cedar policy language text to be added to or replaced on the * static policy.

You can change only the following elements * from the original content:

  • The action referenced * by the policy.

  • Any conditional clauses, such as * when or unless clauses.

You * can't change the following elements:

  • Changing from * StaticPolicy to TemplateLinkedPolicy.

  • *

    The effect (permit or forbid) of the policy.

    *
  • The principal referenced by the policy.

  • *
  • The resource referenced by the policy.

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