AWS SDK for C++  0.14.3
AWS SDK for C++
DescribeComplianceByConfigRuleRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
21 
22 namespace Aws
23 {
24 namespace ConfigService
25 {
26 namespace Model
27 {
28 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
37  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38 
42  inline const Aws::Vector<Aws::String>& GetConfigRuleNames() const{ return m_configRuleNames; }
43 
47  inline void SetConfigRuleNames(const Aws::Vector<Aws::String>& value) { m_configRuleNamesHasBeenSet = true; m_configRuleNames = value; }
48 
52  inline void SetConfigRuleNames(Aws::Vector<Aws::String>&& value) { m_configRuleNamesHasBeenSet = true; m_configRuleNames = value; }
53 
57  inline DescribeComplianceByConfigRuleRequest& WithConfigRuleNames(const Aws::Vector<Aws::String>& value) { SetConfigRuleNames(value); return *this;}
58 
62  inline DescribeComplianceByConfigRuleRequest& WithConfigRuleNames(Aws::Vector<Aws::String>&& value) { SetConfigRuleNames(value); return *this;}
63 
67  inline DescribeComplianceByConfigRuleRequest& AddConfigRuleNames(const Aws::String& value) { m_configRuleNamesHasBeenSet = true; m_configRuleNames.push_back(value); return *this; }
68 
72  inline DescribeComplianceByConfigRuleRequest& AddConfigRuleNames(Aws::String&& value) { m_configRuleNamesHasBeenSet = true; m_configRuleNames.push_back(value); return *this; }
73 
77  inline DescribeComplianceByConfigRuleRequest& AddConfigRuleNames(const char* value) { m_configRuleNamesHasBeenSet = true; m_configRuleNames.push_back(value); return *this; }
78 
84  inline const Aws::Vector<ComplianceType>& GetComplianceTypes() const{ return m_complianceTypes; }
85 
91  inline void SetComplianceTypes(const Aws::Vector<ComplianceType>& value) { m_complianceTypesHasBeenSet = true; m_complianceTypes = value; }
92 
98  inline void SetComplianceTypes(Aws::Vector<ComplianceType>&& value) { m_complianceTypesHasBeenSet = true; m_complianceTypes = value; }
99 
105  inline DescribeComplianceByConfigRuleRequest& WithComplianceTypes(const Aws::Vector<ComplianceType>& value) { SetComplianceTypes(value); return *this;}
106 
112  inline DescribeComplianceByConfigRuleRequest& WithComplianceTypes(Aws::Vector<ComplianceType>&& value) { SetComplianceTypes(value); return *this;}
113 
119  inline DescribeComplianceByConfigRuleRequest& AddComplianceTypes(const ComplianceType& value) { m_complianceTypesHasBeenSet = true; m_complianceTypes.push_back(value); return *this; }
120 
126  inline DescribeComplianceByConfigRuleRequest& AddComplianceTypes(ComplianceType&& value) { m_complianceTypesHasBeenSet = true; m_complianceTypes.push_back(value); return *this; }
127 
132  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
133 
138  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
139 
144  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
145 
150  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
151 
156  inline DescribeComplianceByConfigRuleRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
157 
162  inline DescribeComplianceByConfigRuleRequest& WithNextToken(Aws::String&& value) { SetNextToken(value); return *this;}
163 
168  inline DescribeComplianceByConfigRuleRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
169 
170  private:
171  Aws::Vector<Aws::String> m_configRuleNames;
172  bool m_configRuleNamesHasBeenSet;
173  Aws::Vector<ComplianceType> m_complianceTypes;
174  bool m_complianceTypesHasBeenSet;
175  Aws::String m_nextToken;
176  bool m_nextTokenHasBeenSet;
177  };
178 
179 } // namespace Model
180 } // namespace ConfigService
181 } // 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:27
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
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)
JSON (JavaScript Object Notation).