1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #pragma once
7 #include <aws/events/CloudWatchEvents_EXPORTS.h>
8 #include <aws/events/CloudWatchEventsRequest.h>
9 #include <aws/core/utils/memory/stl/AWSString.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace CloudWatchEvents
15 {
16 namespace Model
17 {
18 
19   /**
20    */
21   class AWS_CLOUDWATCHEVENTS_API ListRuleNamesByTargetRequest : public CloudWatchEventsRequest
22   {
23   public:
24     ListRuleNamesByTargetRequest();
25 
26     // Service request name is the Operation name which will send this request out,
27     // each operation should has unique request name, so that we can get operation's name from this request.
28     // Note: this is not true for response, multiple operations may have the same response name,
29     // so we can not get operation's name from response.
GetServiceRequestName()30     inline virtual const char* GetServiceRequestName() const override { return "ListRuleNamesByTarget"; }
31 
32     Aws::String SerializePayload() const override;
33 
34     Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35 
36 
37     /**
38      * <p>The Amazon Resource Name (ARN) of the target resource.</p>
39      */
GetTargetArn()40     inline const Aws::String& GetTargetArn() const{ return m_targetArn; }
41 
42     /**
43      * <p>The Amazon Resource Name (ARN) of the target resource.</p>
44      */
TargetArnHasBeenSet()45     inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; }
46 
47     /**
48      * <p>The Amazon Resource Name (ARN) of the target resource.</p>
49      */
SetTargetArn(const Aws::String & value)50     inline void SetTargetArn(const Aws::String& value) { m_targetArnHasBeenSet = true; m_targetArn = value; }
51 
52     /**
53      * <p>The Amazon Resource Name (ARN) of the target resource.</p>
54      */
SetTargetArn(Aws::String && value)55     inline void SetTargetArn(Aws::String&& value) { m_targetArnHasBeenSet = true; m_targetArn = std::move(value); }
56 
57     /**
58      * <p>The Amazon Resource Name (ARN) of the target resource.</p>
59      */
SetTargetArn(const char * value)60     inline void SetTargetArn(const char* value) { m_targetArnHasBeenSet = true; m_targetArn.assign(value); }
61 
62     /**
63      * <p>The Amazon Resource Name (ARN) of the target resource.</p>
64      */
WithTargetArn(const Aws::String & value)65     inline ListRuleNamesByTargetRequest& WithTargetArn(const Aws::String& value) { SetTargetArn(value); return *this;}
66 
67     /**
68      * <p>The Amazon Resource Name (ARN) of the target resource.</p>
69      */
WithTargetArn(Aws::String && value)70     inline ListRuleNamesByTargetRequest& WithTargetArn(Aws::String&& value) { SetTargetArn(std::move(value)); return *this;}
71 
72     /**
73      * <p>The Amazon Resource Name (ARN) of the target resource.</p>
74      */
WithTargetArn(const char * value)75     inline ListRuleNamesByTargetRequest& WithTargetArn(const char* value) { SetTargetArn(value); return *this;}
76 
77 
78     /**
79      * <p>The name or ARN of the event bus to list rules for. If you omit this, the
80      * default event bus is used.</p>
81      */
GetEventBusName()82     inline const Aws::String& GetEventBusName() const{ return m_eventBusName; }
83 
84     /**
85      * <p>The name or ARN of the event bus to list rules for. If you omit this, the
86      * default event bus is used.</p>
87      */
EventBusNameHasBeenSet()88     inline bool EventBusNameHasBeenSet() const { return m_eventBusNameHasBeenSet; }
89 
90     /**
91      * <p>The name or ARN of the event bus to list rules for. If you omit this, the
92      * default event bus is used.</p>
93      */
SetEventBusName(const Aws::String & value)94     inline void SetEventBusName(const Aws::String& value) { m_eventBusNameHasBeenSet = true; m_eventBusName = value; }
95 
96     /**
97      * <p>The name or ARN of the event bus to list rules for. If you omit this, the
98      * default event bus is used.</p>
99      */
SetEventBusName(Aws::String && value)100     inline void SetEventBusName(Aws::String&& value) { m_eventBusNameHasBeenSet = true; m_eventBusName = std::move(value); }
101 
102     /**
103      * <p>The name or ARN of the event bus to list rules for. If you omit this, the
104      * default event bus is used.</p>
105      */
SetEventBusName(const char * value)106     inline void SetEventBusName(const char* value) { m_eventBusNameHasBeenSet = true; m_eventBusName.assign(value); }
107 
108     /**
109      * <p>The name or ARN of the event bus to list rules for. If you omit this, the
110      * default event bus is used.</p>
111      */
WithEventBusName(const Aws::String & value)112     inline ListRuleNamesByTargetRequest& WithEventBusName(const Aws::String& value) { SetEventBusName(value); return *this;}
113 
114     /**
115      * <p>The name or ARN of the event bus to list rules for. If you omit this, the
116      * default event bus is used.</p>
117      */
WithEventBusName(Aws::String && value)118     inline ListRuleNamesByTargetRequest& WithEventBusName(Aws::String&& value) { SetEventBusName(std::move(value)); return *this;}
119 
120     /**
121      * <p>The name or ARN of the event bus to list rules for. If you omit this, the
122      * default event bus is used.</p>
123      */
WithEventBusName(const char * value)124     inline ListRuleNamesByTargetRequest& WithEventBusName(const char* value) { SetEventBusName(value); return *this;}
125 
126 
127     /**
128      * <p>The token returned by a previous call to retrieve the next set of
129      * results.</p>
130      */
GetNextToken()131     inline const Aws::String& GetNextToken() const{ return m_nextToken; }
132 
133     /**
134      * <p>The token returned by a previous call to retrieve the next set of
135      * results.</p>
136      */
NextTokenHasBeenSet()137     inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
138 
139     /**
140      * <p>The token returned by a previous call to retrieve the next set of
141      * results.</p>
142      */
SetNextToken(const Aws::String & value)143     inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
144 
145     /**
146      * <p>The token returned by a previous call to retrieve the next set of
147      * results.</p>
148      */
SetNextToken(Aws::String && value)149     inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
150 
151     /**
152      * <p>The token returned by a previous call to retrieve the next set of
153      * results.</p>
154      */
SetNextToken(const char * value)155     inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
156 
157     /**
158      * <p>The token returned by a previous call to retrieve the next set of
159      * results.</p>
160      */
WithNextToken(const Aws::String & value)161     inline ListRuleNamesByTargetRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
162 
163     /**
164      * <p>The token returned by a previous call to retrieve the next set of
165      * results.</p>
166      */
WithNextToken(Aws::String && value)167     inline ListRuleNamesByTargetRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
168 
169     /**
170      * <p>The token returned by a previous call to retrieve the next set of
171      * results.</p>
172      */
WithNextToken(const char * value)173     inline ListRuleNamesByTargetRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
174 
175 
176     /**
177      * <p>The maximum number of results to return.</p>
178      */
GetLimit()179     inline int GetLimit() const{ return m_limit; }
180 
181     /**
182      * <p>The maximum number of results to return.</p>
183      */
LimitHasBeenSet()184     inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
185 
186     /**
187      * <p>The maximum number of results to return.</p>
188      */
SetLimit(int value)189     inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
190 
191     /**
192      * <p>The maximum number of results to return.</p>
193      */
WithLimit(int value)194     inline ListRuleNamesByTargetRequest& WithLimit(int value) { SetLimit(value); return *this;}
195 
196   private:
197 
198     Aws::String m_targetArn;
199     bool m_targetArnHasBeenSet;
200 
201     Aws::String m_eventBusName;
202     bool m_eventBusNameHasBeenSet;
203 
204     Aws::String m_nextToken;
205     bool m_nextTokenHasBeenSet;
206 
207     int m_limit;
208     bool m_limitHasBeenSet;
209   };
210 
211 } // namespace Model
212 } // namespace CloudWatchEvents
213 } // namespace Aws
214