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/config/ConfigService_EXPORTS.h>
8 #include <aws/config/ConfigServiceRequest.h>
9 #include <aws/core/utils/memory/stl/AWSString.h>
10 #include <aws/core/utils/memory/stl/AWSVector.h>
11 #include <aws/config/model/RemediationExceptionResourceKey.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace ConfigService
17 {
18 namespace Model
19 {
20 
21   /**
22    */
23   class AWS_CONFIGSERVICE_API DescribeRemediationExceptionsRequest : public ConfigServiceRequest
24   {
25   public:
26     DescribeRemediationExceptionsRequest();
27 
28     // Service request name is the Operation name which will send this request out,
29     // each operation should has unique request name, so that we can get operation's name from this request.
30     // Note: this is not true for response, multiple operations may have the same response name,
31     // so we can not get operation's name from response.
GetServiceRequestName()32     inline virtual const char* GetServiceRequestName() const override { return "DescribeRemediationExceptions"; }
33 
34     Aws::String SerializePayload() const override;
35 
36     Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37 
38 
39     /**
40      * <p>The name of the Config rule.</p>
41      */
GetConfigRuleName()42     inline const Aws::String& GetConfigRuleName() const{ return m_configRuleName; }
43 
44     /**
45      * <p>The name of the Config rule.</p>
46      */
ConfigRuleNameHasBeenSet()47     inline bool ConfigRuleNameHasBeenSet() const { return m_configRuleNameHasBeenSet; }
48 
49     /**
50      * <p>The name of the Config rule.</p>
51      */
SetConfigRuleName(const Aws::String & value)52     inline void SetConfigRuleName(const Aws::String& value) { m_configRuleNameHasBeenSet = true; m_configRuleName = value; }
53 
54     /**
55      * <p>The name of the Config rule.</p>
56      */
SetConfigRuleName(Aws::String && value)57     inline void SetConfigRuleName(Aws::String&& value) { m_configRuleNameHasBeenSet = true; m_configRuleName = std::move(value); }
58 
59     /**
60      * <p>The name of the Config rule.</p>
61      */
SetConfigRuleName(const char * value)62     inline void SetConfigRuleName(const char* value) { m_configRuleNameHasBeenSet = true; m_configRuleName.assign(value); }
63 
64     /**
65      * <p>The name of the Config rule.</p>
66      */
WithConfigRuleName(const Aws::String & value)67     inline DescribeRemediationExceptionsRequest& WithConfigRuleName(const Aws::String& value) { SetConfigRuleName(value); return *this;}
68 
69     /**
70      * <p>The name of the Config rule.</p>
71      */
WithConfigRuleName(Aws::String && value)72     inline DescribeRemediationExceptionsRequest& WithConfigRuleName(Aws::String&& value) { SetConfigRuleName(std::move(value)); return *this;}
73 
74     /**
75      * <p>The name of the Config rule.</p>
76      */
WithConfigRuleName(const char * value)77     inline DescribeRemediationExceptionsRequest& WithConfigRuleName(const char* value) { SetConfigRuleName(value); return *this;}
78 
79 
80     /**
81      * <p>An exception list of resource exception keys to be processed with the current
82      * request. Config adds exception for each resource key. For example, Config adds 3
83      * exceptions for 3 resource keys. </p>
84      */
GetResourceKeys()85     inline const Aws::Vector<RemediationExceptionResourceKey>& GetResourceKeys() const{ return m_resourceKeys; }
86 
87     /**
88      * <p>An exception list of resource exception keys to be processed with the current
89      * request. Config adds exception for each resource key. For example, Config adds 3
90      * exceptions for 3 resource keys. </p>
91      */
ResourceKeysHasBeenSet()92     inline bool ResourceKeysHasBeenSet() const { return m_resourceKeysHasBeenSet; }
93 
94     /**
95      * <p>An exception list of resource exception keys to be processed with the current
96      * request. Config adds exception for each resource key. For example, Config adds 3
97      * exceptions for 3 resource keys. </p>
98      */
SetResourceKeys(const Aws::Vector<RemediationExceptionResourceKey> & value)99     inline void SetResourceKeys(const Aws::Vector<RemediationExceptionResourceKey>& value) { m_resourceKeysHasBeenSet = true; m_resourceKeys = value; }
100 
101     /**
102      * <p>An exception list of resource exception keys to be processed with the current
103      * request. Config adds exception for each resource key. For example, Config adds 3
104      * exceptions for 3 resource keys. </p>
105      */
SetResourceKeys(Aws::Vector<RemediationExceptionResourceKey> && value)106     inline void SetResourceKeys(Aws::Vector<RemediationExceptionResourceKey>&& value) { m_resourceKeysHasBeenSet = true; m_resourceKeys = std::move(value); }
107 
108     /**
109      * <p>An exception list of resource exception keys to be processed with the current
110      * request. Config adds exception for each resource key. For example, Config adds 3
111      * exceptions for 3 resource keys. </p>
112      */
WithResourceKeys(const Aws::Vector<RemediationExceptionResourceKey> & value)113     inline DescribeRemediationExceptionsRequest& WithResourceKeys(const Aws::Vector<RemediationExceptionResourceKey>& value) { SetResourceKeys(value); return *this;}
114 
115     /**
116      * <p>An exception list of resource exception keys to be processed with the current
117      * request. Config adds exception for each resource key. For example, Config adds 3
118      * exceptions for 3 resource keys. </p>
119      */
WithResourceKeys(Aws::Vector<RemediationExceptionResourceKey> && value)120     inline DescribeRemediationExceptionsRequest& WithResourceKeys(Aws::Vector<RemediationExceptionResourceKey>&& value) { SetResourceKeys(std::move(value)); return *this;}
121 
122     /**
123      * <p>An exception list of resource exception keys to be processed with the current
124      * request. Config adds exception for each resource key. For example, Config adds 3
125      * exceptions for 3 resource keys. </p>
126      */
AddResourceKeys(const RemediationExceptionResourceKey & value)127     inline DescribeRemediationExceptionsRequest& AddResourceKeys(const RemediationExceptionResourceKey& value) { m_resourceKeysHasBeenSet = true; m_resourceKeys.push_back(value); return *this; }
128 
129     /**
130      * <p>An exception list of resource exception keys to be processed with the current
131      * request. Config adds exception for each resource key. For example, Config adds 3
132      * exceptions for 3 resource keys. </p>
133      */
AddResourceKeys(RemediationExceptionResourceKey && value)134     inline DescribeRemediationExceptionsRequest& AddResourceKeys(RemediationExceptionResourceKey&& value) { m_resourceKeysHasBeenSet = true; m_resourceKeys.push_back(std::move(value)); return *this; }
135 
136 
137     /**
138      * <p>The maximum number of RemediationExceptionResourceKey returned on each page.
139      * The default is 25. If you specify 0, Config uses the default.</p>
140      */
GetLimit()141     inline int GetLimit() const{ return m_limit; }
142 
143     /**
144      * <p>The maximum number of RemediationExceptionResourceKey returned on each page.
145      * The default is 25. If you specify 0, Config uses the default.</p>
146      */
LimitHasBeenSet()147     inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
148 
149     /**
150      * <p>The maximum number of RemediationExceptionResourceKey returned on each page.
151      * The default is 25. If you specify 0, Config uses the default.</p>
152      */
SetLimit(int value)153     inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
154 
155     /**
156      * <p>The maximum number of RemediationExceptionResourceKey returned on each page.
157      * The default is 25. If you specify 0, Config uses the default.</p>
158      */
WithLimit(int value)159     inline DescribeRemediationExceptionsRequest& WithLimit(int value) { SetLimit(value); return *this;}
160 
161 
162     /**
163      * <p>The <code>nextToken</code> string returned in a previous request that you use
164      * to request the next page of results in a paginated response.</p>
165      */
GetNextToken()166     inline const Aws::String& GetNextToken() const{ return m_nextToken; }
167 
168     /**
169      * <p>The <code>nextToken</code> string returned in a previous request that you use
170      * to request the next page of results in a paginated response.</p>
171      */
NextTokenHasBeenSet()172     inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
173 
174     /**
175      * <p>The <code>nextToken</code> string returned in a previous request that you use
176      * to request the next page of results in a paginated response.</p>
177      */
SetNextToken(const Aws::String & value)178     inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
179 
180     /**
181      * <p>The <code>nextToken</code> string returned in a previous request that you use
182      * to request the next page of results in a paginated response.</p>
183      */
SetNextToken(Aws::String && value)184     inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
185 
186     /**
187      * <p>The <code>nextToken</code> string returned in a previous request that you use
188      * to request the next page of results in a paginated response.</p>
189      */
SetNextToken(const char * value)190     inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
191 
192     /**
193      * <p>The <code>nextToken</code> string returned in a previous request that you use
194      * to request the next page of results in a paginated response.</p>
195      */
WithNextToken(const Aws::String & value)196     inline DescribeRemediationExceptionsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
197 
198     /**
199      * <p>The <code>nextToken</code> string returned in a previous request that you use
200      * to request the next page of results in a paginated response.</p>
201      */
WithNextToken(Aws::String && value)202     inline DescribeRemediationExceptionsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
203 
204     /**
205      * <p>The <code>nextToken</code> string returned in a previous request that you use
206      * to request the next page of results in a paginated response.</p>
207      */
WithNextToken(const char * value)208     inline DescribeRemediationExceptionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
209 
210   private:
211 
212     Aws::String m_configRuleName;
213     bool m_configRuleNameHasBeenSet;
214 
215     Aws::Vector<RemediationExceptionResourceKey> m_resourceKeys;
216     bool m_resourceKeysHasBeenSet;
217 
218     int m_limit;
219     bool m_limitHasBeenSet;
220 
221     Aws::String m_nextToken;
222     bool m_nextTokenHasBeenSet;
223   };
224 
225 } // namespace Model
226 } // namespace ConfigService
227 } // namespace Aws
228