AWS SDK for C++  1.8.71
AWS SDK for C++
DescribeComplianceByConfigRuleRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace ConfigService
17 {
18 namespace Model
19 {
20 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "DescribeComplianceByConfigRule"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40 
41 
45  inline const Aws::Vector<Aws::String>& GetConfigRuleNames() const{ return m_configRuleNames; }
46 
50  inline bool ConfigRuleNamesHasBeenSet() const { return m_configRuleNamesHasBeenSet; }
51 
55  inline void SetConfigRuleNames(const Aws::Vector<Aws::String>& value) { m_configRuleNamesHasBeenSet = true; m_configRuleNames = value; }
56 
60  inline void SetConfigRuleNames(Aws::Vector<Aws::String>&& value) { m_configRuleNamesHasBeenSet = true; m_configRuleNames = std::move(value); }
61 
65  inline DescribeComplianceByConfigRuleRequest& WithConfigRuleNames(const Aws::Vector<Aws::String>& value) { SetConfigRuleNames(value); return *this;}
66 
70  inline DescribeComplianceByConfigRuleRequest& WithConfigRuleNames(Aws::Vector<Aws::String>&& value) { SetConfigRuleNames(std::move(value)); return *this;}
71 
75  inline DescribeComplianceByConfigRuleRequest& AddConfigRuleNames(const Aws::String& value) { m_configRuleNamesHasBeenSet = true; m_configRuleNames.push_back(value); return *this; }
76 
80  inline DescribeComplianceByConfigRuleRequest& AddConfigRuleNames(Aws::String&& value) { m_configRuleNamesHasBeenSet = true; m_configRuleNames.push_back(std::move(value)); return *this; }
81 
85  inline DescribeComplianceByConfigRuleRequest& AddConfigRuleNames(const char* value) { m_configRuleNamesHasBeenSet = true; m_configRuleNames.push_back(value); return *this; }
86 
87 
92  inline const Aws::Vector<ComplianceType>& GetComplianceTypes() const{ return m_complianceTypes; }
93 
98  inline bool ComplianceTypesHasBeenSet() const { return m_complianceTypesHasBeenSet; }
99 
104  inline void SetComplianceTypes(const Aws::Vector<ComplianceType>& value) { m_complianceTypesHasBeenSet = true; m_complianceTypes = value; }
105 
110  inline void SetComplianceTypes(Aws::Vector<ComplianceType>&& value) { m_complianceTypesHasBeenSet = true; m_complianceTypes = std::move(value); }
111 
116  inline DescribeComplianceByConfigRuleRequest& WithComplianceTypes(const Aws::Vector<ComplianceType>& value) { SetComplianceTypes(value); return *this;}
117 
122  inline DescribeComplianceByConfigRuleRequest& WithComplianceTypes(Aws::Vector<ComplianceType>&& value) { SetComplianceTypes(std::move(value)); return *this;}
123 
128  inline DescribeComplianceByConfigRuleRequest& AddComplianceTypes(const ComplianceType& value) { m_complianceTypesHasBeenSet = true; m_complianceTypes.push_back(value); return *this; }
129 
134  inline DescribeComplianceByConfigRuleRequest& AddComplianceTypes(ComplianceType&& value) { m_complianceTypesHasBeenSet = true; m_complianceTypes.push_back(std::move(value)); return *this; }
135 
136 
141  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
142 
147  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
148 
153  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
154 
159  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
160 
165  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
166 
171  inline DescribeComplianceByConfigRuleRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
172 
177  inline DescribeComplianceByConfigRuleRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
178 
183  inline DescribeComplianceByConfigRuleRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
184 
185  private:
186 
187  Aws::Vector<Aws::String> m_configRuleNames;
188  bool m_configRuleNamesHasBeenSet;
189 
190  Aws::Vector<ComplianceType> m_complianceTypes;
191  bool m_complianceTypesHasBeenSet;
192 
193  Aws::String m_nextToken;
194  bool m_nextTokenHasBeenSet;
195  };
196 
197 } // namespace Model
198 } // namespace ConfigService
199 } // namespace Aws
DescribeComplianceByConfigRuleRequest & WithConfigRuleNames(Aws::Vector< Aws::String > &&value)
DescribeComplianceByConfigRuleRequest & WithNextToken(Aws::String &&value)
DescribeComplianceByConfigRuleRequest & WithConfigRuleNames(const Aws::Vector< Aws::String > &value)
DescribeComplianceByConfigRuleRequest & AddConfigRuleNames(const char *value)
DescribeComplianceByConfigRuleRequest & WithNextToken(const char *value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
DescribeComplianceByConfigRuleRequest & WithComplianceTypes(Aws::Vector< ComplianceType > &&value)
DescribeComplianceByConfigRuleRequest & WithNextToken(const Aws::String &value)
DescribeComplianceByConfigRuleRequest & AddConfigRuleNames(const Aws::String &value)
DescribeComplianceByConfigRuleRequest & AddConfigRuleNames(Aws::String &&value)
DescribeComplianceByConfigRuleRequest & WithComplianceTypes(const Aws::Vector< ComplianceType > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_CONFIGSERVICE_API
DescribeComplianceByConfigRuleRequest & AddComplianceTypes(const ComplianceType &value)
DescribeComplianceByConfigRuleRequest & AddComplianceTypes(ComplianceType &&value)