/** * 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 Organizations { namespace Model { /** */ class DeletePolicyRequest : public OrganizationsRequest { public: AWS_ORGANIZATIONS_API DeletePolicyRequest(); // 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 "DeletePolicy"; } AWS_ORGANIZATIONS_API Aws::String SerializePayload() const override; AWS_ORGANIZATIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The unique identifier (ID) of the policy that you want to delete. You can get * the ID from the ListPolicies or ListPoliciesForTarget * operations.

The regex * pattern for a policy ID string requires "p-" followed by from 8 to 128 * lowercase or uppercase letters, digits, or the underscore character (_).

*/ inline const Aws::String& GetPolicyId() const{ return m_policyId; } /** *

The unique identifier (ID) of the policy that you want to delete. You can get * the ID from the ListPolicies or ListPoliciesForTarget * operations.

The regex * pattern for a policy ID string requires "p-" followed by from 8 to 128 * lowercase or uppercase letters, digits, or the underscore character (_).

*/ inline bool PolicyIdHasBeenSet() const { return m_policyIdHasBeenSet; } /** *

The unique identifier (ID) of the policy that you want to delete. You can get * the ID from the ListPolicies or ListPoliciesForTarget * operations.

The regex * pattern for a policy ID string requires "p-" followed by from 8 to 128 * lowercase or uppercase letters, digits, or the underscore character (_).

*/ inline void SetPolicyId(const Aws::String& value) { m_policyIdHasBeenSet = true; m_policyId = value; } /** *

The unique identifier (ID) of the policy that you want to delete. You can get * the ID from the ListPolicies or ListPoliciesForTarget * operations.

The regex * pattern for a policy ID string requires "p-" followed by from 8 to 128 * lowercase or uppercase letters, digits, or the underscore character (_).

*/ inline void SetPolicyId(Aws::String&& value) { m_policyIdHasBeenSet = true; m_policyId = std::move(value); } /** *

The unique identifier (ID) of the policy that you want to delete. You can get * the ID from the ListPolicies or ListPoliciesForTarget * operations.

The regex * pattern for a policy ID string requires "p-" followed by from 8 to 128 * lowercase or uppercase letters, digits, or the underscore character (_).

*/ inline void SetPolicyId(const char* value) { m_policyIdHasBeenSet = true; m_policyId.assign(value); } /** *

The unique identifier (ID) of the policy that you want to delete. You can get * the ID from the ListPolicies or ListPoliciesForTarget * operations.

The regex * pattern for a policy ID string requires "p-" followed by from 8 to 128 * lowercase or uppercase letters, digits, or the underscore character (_).

*/ inline DeletePolicyRequest& WithPolicyId(const Aws::String& value) { SetPolicyId(value); return *this;} /** *

The unique identifier (ID) of the policy that you want to delete. You can get * the ID from the ListPolicies or ListPoliciesForTarget * operations.

The regex * pattern for a policy ID string requires "p-" followed by from 8 to 128 * lowercase or uppercase letters, digits, or the underscore character (_).

*/ inline DeletePolicyRequest& WithPolicyId(Aws::String&& value) { SetPolicyId(std::move(value)); return *this;} /** *

The unique identifier (ID) of the policy that you want to delete. You can get * the ID from the ListPolicies or ListPoliciesForTarget * operations.

The regex * pattern for a policy ID string requires "p-" followed by from 8 to 128 * lowercase or uppercase letters, digits, or the underscore character (_).

*/ inline DeletePolicyRequest& WithPolicyId(const char* value) { SetPolicyId(value); return *this;} private: Aws::String m_policyId; bool m_policyIdHasBeenSet = false; }; } // namespace Model } // namespace Organizations } // namespace Aws