/** * 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 CloudWatchEvents { namespace Model { /** */ class DeleteRuleRequest : public CloudWatchEventsRequest { public: AWS_CLOUDWATCHEVENTS_API DeleteRuleRequest(); // 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 "DeleteRule"; } AWS_CLOUDWATCHEVENTS_API Aws::String SerializePayload() const override; AWS_CLOUDWATCHEVENTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the rule.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the rule.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the rule.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the rule.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the rule.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the rule.

*/ inline DeleteRuleRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the rule.

*/ inline DeleteRuleRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the rule.

*/ inline DeleteRuleRequest& WithName(const char* value) { SetName(value); return *this;} /** *

The name or ARN of the event bus associated with the rule. If you omit this, * the default event bus is used.

*/ inline const Aws::String& GetEventBusName() const{ return m_eventBusName; } /** *

The name or ARN of the event bus associated with the rule. If you omit this, * the default event bus is used.

*/ inline bool EventBusNameHasBeenSet() const { return m_eventBusNameHasBeenSet; } /** *

The name or ARN of the event bus associated with the rule. If you omit this, * the default event bus is used.

*/ inline void SetEventBusName(const Aws::String& value) { m_eventBusNameHasBeenSet = true; m_eventBusName = value; } /** *

The name or ARN of the event bus associated with the rule. If you omit this, * the default event bus is used.

*/ inline void SetEventBusName(Aws::String&& value) { m_eventBusNameHasBeenSet = true; m_eventBusName = std::move(value); } /** *

The name or ARN of the event bus associated with the rule. If you omit this, * the default event bus is used.

*/ inline void SetEventBusName(const char* value) { m_eventBusNameHasBeenSet = true; m_eventBusName.assign(value); } /** *

The name or ARN of the event bus associated with the rule. If you omit this, * the default event bus is used.

*/ inline DeleteRuleRequest& WithEventBusName(const Aws::String& value) { SetEventBusName(value); return *this;} /** *

The name or ARN of the event bus associated with the rule. If you omit this, * the default event bus is used.

*/ inline DeleteRuleRequest& WithEventBusName(Aws::String&& value) { SetEventBusName(std::move(value)); return *this;} /** *

The name or ARN of the event bus associated with the rule. If you omit this, * the default event bus is used.

*/ inline DeleteRuleRequest& WithEventBusName(const char* value) { SetEventBusName(value); return *this;} /** *

If this is a managed rule, created by an Amazon Web Services service on your * behalf, you must specify Force as True to delete the * rule. This parameter is ignored for rules that are not managed rules. You can * check whether a rule is a managed rule by using DescribeRule or * ListRules and checking the ManagedBy field of the * response.

*/ inline bool GetForce() const{ return m_force; } /** *

If this is a managed rule, created by an Amazon Web Services service on your * behalf, you must specify Force as True to delete the * rule. This parameter is ignored for rules that are not managed rules. You can * check whether a rule is a managed rule by using DescribeRule or * ListRules and checking the ManagedBy field of the * response.

*/ inline bool ForceHasBeenSet() const { return m_forceHasBeenSet; } /** *

If this is a managed rule, created by an Amazon Web Services service on your * behalf, you must specify Force as True to delete the * rule. This parameter is ignored for rules that are not managed rules. You can * check whether a rule is a managed rule by using DescribeRule or * ListRules and checking the ManagedBy field of the * response.

*/ inline void SetForce(bool value) { m_forceHasBeenSet = true; m_force = value; } /** *

If this is a managed rule, created by an Amazon Web Services service on your * behalf, you must specify Force as True to delete the * rule. This parameter is ignored for rules that are not managed rules. You can * check whether a rule is a managed rule by using DescribeRule or * ListRules and checking the ManagedBy field of the * response.

*/ inline DeleteRuleRequest& WithForce(bool value) { SetForce(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_eventBusName; bool m_eventBusNameHasBeenSet = false; bool m_force; bool m_forceHasBeenSet = false; }; } // namespace Model } // namespace CloudWatchEvents } // namespace Aws