/** * 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 ListTargetsByRuleRequest : public CloudWatchEventsRequest { public: AWS_CLOUDWATCHEVENTS_API ListTargetsByRuleRequest(); // 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 "ListTargetsByRule"; } 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& GetRule() const{ return m_rule; } /** *

The name of the rule.

*/ inline bool RuleHasBeenSet() const { return m_ruleHasBeenSet; } /** *

The name of the rule.

*/ inline void SetRule(const Aws::String& value) { m_ruleHasBeenSet = true; m_rule = value; } /** *

The name of the rule.

*/ inline void SetRule(Aws::String&& value) { m_ruleHasBeenSet = true; m_rule = std::move(value); } /** *

The name of the rule.

*/ inline void SetRule(const char* value) { m_ruleHasBeenSet = true; m_rule.assign(value); } /** *

The name of the rule.

*/ inline ListTargetsByRuleRequest& WithRule(const Aws::String& value) { SetRule(value); return *this;} /** *

The name of the rule.

*/ inline ListTargetsByRuleRequest& WithRule(Aws::String&& value) { SetRule(std::move(value)); return *this;} /** *

The name of the rule.

*/ inline ListTargetsByRuleRequest& WithRule(const char* value) { SetRule(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 ListTargetsByRuleRequest& 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 ListTargetsByRuleRequest& 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 ListTargetsByRuleRequest& WithEventBusName(const char* value) { SetEventBusName(value); return *this;} /** *

The token returned by a previous call to retrieve the next set of * results.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

The token returned by a previous call to retrieve the next set of * results.

*/ inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } /** *

The token returned by a previous call to retrieve the next set of * results.

*/ inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } /** *

The token returned by a previous call to retrieve the next set of * results.

*/ inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } /** *

The token returned by a previous call to retrieve the next set of * results.

*/ inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } /** *

The token returned by a previous call to retrieve the next set of * results.

*/ inline ListTargetsByRuleRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

The token returned by a previous call to retrieve the next set of * results.

*/ inline ListTargetsByRuleRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

The token returned by a previous call to retrieve the next set of * results.

*/ inline ListTargetsByRuleRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

The maximum number of results to return.

*/ inline int GetLimit() const{ return m_limit; } /** *

The maximum number of results to return.

*/ inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; } /** *

The maximum number of results to return.

*/ inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; } /** *

The maximum number of results to return.

*/ inline ListTargetsByRuleRequest& WithLimit(int value) { SetLimit(value); return *this;} private: Aws::String m_rule; bool m_ruleHasBeenSet = false; Aws::String m_eventBusName; bool m_eventBusNameHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_limit; bool m_limitHasBeenSet = false; }; } // namespace Model } // namespace CloudWatchEvents } // namespace Aws