AWS SDK for C++  0.14.3
AWS SDK for C++
DescribeComplianceByResourceRequest.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 
45  inline const Aws::String& GetResourceType() const{ return m_resourceType; }
46 
53  inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
54 
61  inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
62 
69  inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
70 
77  inline DescribeComplianceByResourceRequest& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
78 
85  inline DescribeComplianceByResourceRequest& WithResourceType(Aws::String&& value) { SetResourceType(value); return *this;}
86 
93  inline DescribeComplianceByResourceRequest& WithResourceType(const char* value) { SetResourceType(value); return *this;}
94 
100  inline const Aws::String& GetResourceId() const{ return m_resourceId; }
101 
107  inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
108 
114  inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
115 
121  inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
122 
128  inline DescribeComplianceByResourceRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
129 
135  inline DescribeComplianceByResourceRequest& WithResourceId(Aws::String&& value) { SetResourceId(value); return *this;}
136 
142  inline DescribeComplianceByResourceRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
143 
149  inline const Aws::Vector<ComplianceType>& GetComplianceTypes() const{ return m_complianceTypes; }
150 
156  inline void SetComplianceTypes(const Aws::Vector<ComplianceType>& value) { m_complianceTypesHasBeenSet = true; m_complianceTypes = value; }
157 
163  inline void SetComplianceTypes(Aws::Vector<ComplianceType>&& value) { m_complianceTypesHasBeenSet = true; m_complianceTypes = value; }
164 
170  inline DescribeComplianceByResourceRequest& WithComplianceTypes(const Aws::Vector<ComplianceType>& value) { SetComplianceTypes(value); return *this;}
171 
177  inline DescribeComplianceByResourceRequest& WithComplianceTypes(Aws::Vector<ComplianceType>&& value) { SetComplianceTypes(value); return *this;}
178 
184  inline DescribeComplianceByResourceRequest& AddComplianceTypes(const ComplianceType& value) { m_complianceTypesHasBeenSet = true; m_complianceTypes.push_back(value); return *this; }
185 
191  inline DescribeComplianceByResourceRequest& AddComplianceTypes(ComplianceType&& value) { m_complianceTypesHasBeenSet = true; m_complianceTypes.push_back(value); return *this; }
192 
198  inline int GetLimit() const{ return m_limit; }
199 
205  inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
206 
212  inline DescribeComplianceByResourceRequest& WithLimit(int value) { SetLimit(value); return *this;}
213 
218  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
219 
224  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
225 
230  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
231 
236  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
237 
242  inline DescribeComplianceByResourceRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
243 
248  inline DescribeComplianceByResourceRequest& WithNextToken(Aws::String&& value) { SetNextToken(value); return *this;}
249 
254  inline DescribeComplianceByResourceRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
255 
256  private:
257  Aws::String m_resourceType;
258  bool m_resourceTypeHasBeenSet;
259  Aws::String m_resourceId;
260  bool m_resourceIdHasBeenSet;
261  Aws::Vector<ComplianceType> m_complianceTypes;
262  bool m_complianceTypesHasBeenSet;
263  int m_limit;
264  bool m_limitHasBeenSet;
265  Aws::String m_nextToken;
266  bool m_nextTokenHasBeenSet;
267  };
268 
269 } // namespace Model
270 } // namespace ConfigService
271 } // namespace Aws
DescribeComplianceByResourceRequest & AddComplianceTypes(const ComplianceType &value)
DescribeComplianceByResourceRequest & WithNextToken(const char *value)
DescribeComplianceByResourceRequest & WithResourceType(Aws::String &&value)
DescribeComplianceByResourceRequest & WithComplianceTypes(Aws::Vector< ComplianceType > &&value)
DescribeComplianceByResourceRequest & WithNextToken(const Aws::String &value)
DescribeComplianceByResourceRequest & AddComplianceTypes(ComplianceType &&value)
DescribeComplianceByResourceRequest & WithResourceType(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
DescribeComplianceByResourceRequest & WithComplianceTypes(const Aws::Vector< ComplianceType > &value)
DescribeComplianceByResourceRequest & WithResourceId(Aws::String &&value)
DescribeComplianceByResourceRequest & WithResourceId(const Aws::String &value)
DescribeComplianceByResourceRequest & WithNextToken(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_CONFIGSERVICE_API
DescribeComplianceByResourceRequest & WithResourceId(const char *value)
DescribeComplianceByResourceRequest & WithResourceType(const char *value)
JSON (JavaScript Object Notation).