/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace CloudWatchLogs { namespace Model { /** */ class DeleteAccountPolicyRequest : public CloudWatchLogsRequest { public: AWS_CLOUDWATCHLOGS_API DeleteAccountPolicyRequest(); // 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 "DeleteAccountPolicy"; } AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override; AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the policy to delete.

*/ inline const Aws::String& GetPolicyName() const{ return m_policyName; } /** *

The name of the policy to delete.

*/ inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; } /** *

The name of the policy to delete.

*/ inline void SetPolicyName(const Aws::String& value) { m_policyNameHasBeenSet = true; m_policyName = value; } /** *

The name of the policy to delete.

*/ inline void SetPolicyName(Aws::String&& value) { m_policyNameHasBeenSet = true; m_policyName = std::move(value); } /** *

The name of the policy to delete.

*/ inline void SetPolicyName(const char* value) { m_policyNameHasBeenSet = true; m_policyName.assign(value); } /** *

The name of the policy to delete.

*/ inline DeleteAccountPolicyRequest& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;} /** *

The name of the policy to delete.

*/ inline DeleteAccountPolicyRequest& WithPolicyName(Aws::String&& value) { SetPolicyName(std::move(value)); return *this;} /** *

The name of the policy to delete.

*/ inline DeleteAccountPolicyRequest& WithPolicyName(const char* value) { SetPolicyName(value); return *this;} /** *

The type of policy to delete. Currently, the only valid value is * DATA_PROTECTION_POLICY.

*/ inline const PolicyType& GetPolicyType() const{ return m_policyType; } /** *

The type of policy to delete. Currently, the only valid value is * DATA_PROTECTION_POLICY.

*/ inline bool PolicyTypeHasBeenSet() const { return m_policyTypeHasBeenSet; } /** *

The type of policy to delete. Currently, the only valid value is * DATA_PROTECTION_POLICY.

*/ inline void SetPolicyType(const PolicyType& value) { m_policyTypeHasBeenSet = true; m_policyType = value; } /** *

The type of policy to delete. Currently, the only valid value is * DATA_PROTECTION_POLICY.

*/ inline void SetPolicyType(PolicyType&& value) { m_policyTypeHasBeenSet = true; m_policyType = std::move(value); } /** *

The type of policy to delete. Currently, the only valid value is * DATA_PROTECTION_POLICY.

*/ inline DeleteAccountPolicyRequest& WithPolicyType(const PolicyType& value) { SetPolicyType(value); return *this;} /** *

The type of policy to delete. Currently, the only valid value is * DATA_PROTECTION_POLICY.

*/ inline DeleteAccountPolicyRequest& WithPolicyType(PolicyType&& value) { SetPolicyType(std::move(value)); return *this;} private: Aws::String m_policyName; bool m_policyNameHasBeenSet = false; PolicyType m_policyType; bool m_policyTypeHasBeenSet = false; }; } // namespace Model } // namespace CloudWatchLogs } // namespace Aws