/** * 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 VerifiedPermissions { namespace Model { /** */ class UpdatePolicyTemplateRequest : public VerifiedPermissionsRequest { public: AWS_VERIFIEDPERMISSIONS_API UpdatePolicyTemplateRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdatePolicyTemplate"; } AWS_VERIFIEDPERMISSIONS_API Aws::String SerializePayload() const override; AWS_VERIFIEDPERMISSIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

Specifies the ID of the policy store that contains the policy template that * you want to update.

*/ inline const Aws::String& GetPolicyStoreId() const{ return m_policyStoreId; } /** *

Specifies the ID of the policy store that contains the policy template that * you want to update.

*/ inline bool PolicyStoreIdHasBeenSet() const { return m_policyStoreIdHasBeenSet; } /** *

Specifies the ID of the policy store that contains the policy template that * you want to update.

*/ inline void SetPolicyStoreId(const Aws::String& value) { m_policyStoreIdHasBeenSet = true; m_policyStoreId = value; } /** *

Specifies the ID of the policy store that contains the policy template that * you want to update.

*/ inline void SetPolicyStoreId(Aws::String&& value) { m_policyStoreIdHasBeenSet = true; m_policyStoreId = std::move(value); } /** *

Specifies the ID of the policy store that contains the policy template that * you want to update.

*/ inline void SetPolicyStoreId(const char* value) { m_policyStoreIdHasBeenSet = true; m_policyStoreId.assign(value); } /** *

Specifies the ID of the policy store that contains the policy template that * you want to update.

*/ inline UpdatePolicyTemplateRequest& WithPolicyStoreId(const Aws::String& value) { SetPolicyStoreId(value); return *this;} /** *

Specifies the ID of the policy store that contains the policy template that * you want to update.

*/ inline UpdatePolicyTemplateRequest& WithPolicyStoreId(Aws::String&& value) { SetPolicyStoreId(std::move(value)); return *this;} /** *

Specifies the ID of the policy store that contains the policy template that * you want to update.

*/ inline UpdatePolicyTemplateRequest& WithPolicyStoreId(const char* value) { SetPolicyStoreId(value); return *this;} /** *

Specifies the ID of the policy template that you want to update.

*/ inline const Aws::String& GetPolicyTemplateId() const{ return m_policyTemplateId; } /** *

Specifies the ID of the policy template that you want to update.

*/ inline bool PolicyTemplateIdHasBeenSet() const { return m_policyTemplateIdHasBeenSet; } /** *

Specifies the ID of the policy template that you want to update.

*/ inline void SetPolicyTemplateId(const Aws::String& value) { m_policyTemplateIdHasBeenSet = true; m_policyTemplateId = value; } /** *

Specifies the ID of the policy template that you want to update.

*/ inline void SetPolicyTemplateId(Aws::String&& value) { m_policyTemplateIdHasBeenSet = true; m_policyTemplateId = std::move(value); } /** *

Specifies the ID of the policy template that you want to update.

*/ inline void SetPolicyTemplateId(const char* value) { m_policyTemplateIdHasBeenSet = true; m_policyTemplateId.assign(value); } /** *

Specifies the ID of the policy template that you want to update.

*/ inline UpdatePolicyTemplateRequest& WithPolicyTemplateId(const Aws::String& value) { SetPolicyTemplateId(value); return *this;} /** *

Specifies the ID of the policy template that you want to update.

*/ inline UpdatePolicyTemplateRequest& WithPolicyTemplateId(Aws::String&& value) { SetPolicyTemplateId(std::move(value)); return *this;} /** *

Specifies the ID of the policy template that you want to update.

*/ inline UpdatePolicyTemplateRequest& WithPolicyTemplateId(const char* value) { SetPolicyTemplateId(value); return *this;} /** *

Specifies a new description to apply to the policy template.

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

Specifies a new description to apply to the policy template.

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

Specifies a new description to apply to the policy template.

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

Specifies a new description to apply to the policy template.

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

Specifies a new description to apply to the policy template.

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

Specifies a new description to apply to the policy template.

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

Specifies a new description to apply to the policy template.

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

Specifies a new description to apply to the policy template.

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

Specifies new statement content written in Cedar policy language to replace * the current body of the policy template.

You can change only the * following elements of the policy body:

  • The action * referenced by the policy template.

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

You * can't change the following elements:

  • The effect * (permit or forbid) of the policy template.

  • *
  • The principal referenced by the policy template.

  • *
  • The resource referenced by the policy template.

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

Specifies new statement content written in Cedar policy language to replace * the current body of the policy template.

You can change only the * following elements of the policy body:

  • The action * referenced by the policy template.

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

You * can't change the following elements:

  • The effect * (permit or forbid) of the policy template.

  • *
  • The principal referenced by the policy template.

  • *
  • The resource referenced by the policy template.

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

Specifies new statement content written in Cedar policy language to replace * the current body of the policy template.

You can change only the * following elements of the policy body:

  • The action * referenced by the policy template.

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

You * can't change the following elements:

  • The effect * (permit or forbid) of the policy template.

  • *
  • The principal referenced by the policy template.

  • *
  • The resource referenced by the policy template.

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

Specifies new statement content written in Cedar policy language to replace * the current body of the policy template.

You can change only the * following elements of the policy body:

  • The action * referenced by the policy template.

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

You * can't change the following elements:

  • The effect * (permit or forbid) of the policy template.

  • *
  • The principal referenced by the policy template.

  • *
  • The resource referenced by the policy template.

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

Specifies new statement content written in Cedar policy language to replace * the current body of the policy template.

You can change only the * following elements of the policy body:

  • The action * referenced by the policy template.

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

You * can't change the following elements:

  • The effect * (permit or forbid) of the policy template.

  • *
  • The principal referenced by the policy template.

  • *
  • The resource referenced by the policy template.

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

Specifies new statement content written in Cedar policy language to replace * the current body of the policy template.

You can change only the * following elements of the policy body:

  • The action * referenced by the policy template.

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

You * can't change the following elements:

  • The effect * (permit or forbid) of the policy template.

  • *
  • The principal referenced by the policy template.

  • *
  • The resource referenced by the policy template.

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

Specifies new statement content written in Cedar policy language to replace * the current body of the policy template.

You can change only the * following elements of the policy body:

  • The action * referenced by the policy template.

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

You * can't change the following elements:

  • The effect * (permit or forbid) of the policy template.

  • *
  • The principal referenced by the policy template.

  • *
  • The resource referenced by the policy template.

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

Specifies new statement content written in Cedar policy language to replace * the current body of the policy template.

You can change only the * following elements of the policy body:

  • The action * referenced by the policy template.

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

You * can't change the following elements:

  • The effect * (permit or forbid) of the policy template.

  • *
  • The principal referenced by the policy template.

  • *
  • The resource referenced by the policy template.

  • *
*/ inline UpdatePolicyTemplateRequest& WithStatement(const char* value) { SetStatement(value); return *this;} private: Aws::String m_policyStoreId; bool m_policyStoreIdHasBeenSet = false; Aws::String m_policyTemplateId; bool m_policyTemplateIdHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_statement; bool m_statementHasBeenSet = false; }; } // namespace Model } // namespace VerifiedPermissions } // namespace Aws