AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeComplianceByResourceRequest.h
1
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/ComplianceType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace ConfigService
17{
18namespace Model
19{
20
27 {
28 public:
29 AWS_CONFIGSERVICE_API DescribeComplianceByResourceRequest();
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 "DescribeComplianceByResource"; }
36
37 AWS_CONFIGSERVICE_API Aws::String SerializePayload() const override;
38
39 AWS_CONFIGSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40
41
43
49 inline const Aws::String& GetResourceType() const{ return m_resourceType; }
50 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
51 inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
52 inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
53 inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
55 inline DescribeComplianceByResourceRequest& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
56 inline DescribeComplianceByResourceRequest& WithResourceType(const char* value) { SetResourceType(value); return *this;}
58
60
65 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
66 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
67 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
68 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
69 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
70 inline DescribeComplianceByResourceRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
71 inline DescribeComplianceByResourceRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
72 inline DescribeComplianceByResourceRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
74
76
79 inline const Aws::Vector<ComplianceType>& GetComplianceTypes() const{ return m_complianceTypes; }
80 inline bool ComplianceTypesHasBeenSet() const { return m_complianceTypesHasBeenSet; }
81 inline void SetComplianceTypes(const Aws::Vector<ComplianceType>& value) { m_complianceTypesHasBeenSet = true; m_complianceTypes = value; }
82 inline void SetComplianceTypes(Aws::Vector<ComplianceType>&& value) { m_complianceTypesHasBeenSet = true; m_complianceTypes = std::move(value); }
85 inline DescribeComplianceByResourceRequest& AddComplianceTypes(const ComplianceType& value) { m_complianceTypesHasBeenSet = true; m_complianceTypes.push_back(value); return *this; }
86 inline DescribeComplianceByResourceRequest& AddComplianceTypes(ComplianceType&& value) { m_complianceTypesHasBeenSet = true; m_complianceTypes.push_back(std::move(value)); return *this; }
88
90
95 inline int GetLimit() const{ return m_limit; }
96 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
97 inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
98 inline DescribeComplianceByResourceRequest& WithLimit(int value) { SetLimit(value); return *this;}
100
102
106 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
107 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
108 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
109 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
110 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
111 inline DescribeComplianceByResourceRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
112 inline DescribeComplianceByResourceRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
113 inline DescribeComplianceByResourceRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
115 private:
116
117 Aws::String m_resourceType;
118 bool m_resourceTypeHasBeenSet = false;
119
120 Aws::String m_resourceId;
121 bool m_resourceIdHasBeenSet = false;
122
123 Aws::Vector<ComplianceType> m_complianceTypes;
124 bool m_complianceTypesHasBeenSet = false;
125
126 int m_limit;
127 bool m_limitHasBeenSet = false;
128
129 Aws::String m_nextToken;
130 bool m_nextTokenHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace ConfigService
135} // namespace Aws
DescribeComplianceByResourceRequest & WithComplianceTypes(Aws::Vector< ComplianceType > &&value)
DescribeComplianceByResourceRequest & WithNextToken(Aws::String &&value)
AWS_CONFIGSERVICE_API Aws::String SerializePayload() const override
DescribeComplianceByResourceRequest & AddComplianceTypes(const ComplianceType &value)
DescribeComplianceByResourceRequest & WithComplianceTypes(const Aws::Vector< ComplianceType > &value)
DescribeComplianceByResourceRequest & WithResourceId(const char *value)
DescribeComplianceByResourceRequest & WithResourceId(const Aws::String &value)
DescribeComplianceByResourceRequest & WithResourceId(Aws::String &&value)
DescribeComplianceByResourceRequest & WithNextToken(const Aws::String &value)
AWS_CONFIGSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DescribeComplianceByResourceRequest & WithResourceType(const Aws::String &value)
DescribeComplianceByResourceRequest & AddComplianceTypes(ComplianceType &&value)
DescribeComplianceByResourceRequest & WithResourceType(const char *value)
DescribeComplianceByResourceRequest & WithResourceType(Aws::String &&value)
DescribeComplianceByResourceRequest & WithNextToken(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector