AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
DescribeComplianceByResourceRequest.h
1
6#pragma once
7#include <aws/config/ConfigServiceRequest.h>
8#include <aws/config/ConfigService_EXPORTS.h>
9#include <aws/config/model/ComplianceType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace ConfigService {
17namespace Model {
18
25 public:
26 AWS_CONFIGSERVICE_API DescribeComplianceByResourceRequest() = default;
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.
32 inline virtual const char* GetServiceRequestName() const override { return "DescribeComplianceByResource"; }
33
34 AWS_CONFIGSERVICE_API Aws::String SerializePayload() const override;
35
36 AWS_CONFIGSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
39
45 inline const Aws::String& GetResourceType() const { return m_resourceType; }
46 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
47 template <typename ResourceTypeT = Aws::String>
48 void SetResourceType(ResourceTypeT&& value) {
49 m_resourceTypeHasBeenSet = true;
50 m_resourceType = std::forward<ResourceTypeT>(value);
51 }
52 template <typename ResourceTypeT = Aws::String>
54 SetResourceType(std::forward<ResourceTypeT>(value));
55 return *this;
56 }
58
60
65 inline const Aws::String& GetResourceId() const { return m_resourceId; }
66 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
67 template <typename ResourceIdT = Aws::String>
68 void SetResourceId(ResourceIdT&& value) {
69 m_resourceIdHasBeenSet = true;
70 m_resourceId = std::forward<ResourceIdT>(value);
71 }
72 template <typename ResourceIdT = Aws::String>
74 SetResourceId(std::forward<ResourceIdT>(value));
75 return *this;
76 }
78
80
83 inline const Aws::Vector<ComplianceType>& GetComplianceTypes() const { return m_complianceTypes; }
84 inline bool ComplianceTypesHasBeenSet() const { return m_complianceTypesHasBeenSet; }
85 template <typename ComplianceTypesT = Aws::Vector<ComplianceType>>
86 void SetComplianceTypes(ComplianceTypesT&& value) {
87 m_complianceTypesHasBeenSet = true;
88 m_complianceTypes = std::forward<ComplianceTypesT>(value);
89 }
90 template <typename ComplianceTypesT = Aws::Vector<ComplianceType>>
92 SetComplianceTypes(std::forward<ComplianceTypesT>(value));
93 return *this;
94 }
96 m_complianceTypesHasBeenSet = true;
97 m_complianceTypes.push_back(value);
98 return *this;
99 }
101
103
108 inline int GetLimit() const { return m_limit; }
109 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
110 inline void SetLimit(int value) {
111 m_limitHasBeenSet = true;
112 m_limit = value;
113 }
115 SetLimit(value);
116 return *this;
117 }
119
121
125 inline const Aws::String& GetNextToken() const { return m_nextToken; }
126 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
127 template <typename NextTokenT = Aws::String>
128 void SetNextToken(NextTokenT&& value) {
129 m_nextTokenHasBeenSet = true;
130 m_nextToken = std::forward<NextTokenT>(value);
131 }
132 template <typename NextTokenT = Aws::String>
134 SetNextToken(std::forward<NextTokenT>(value));
135 return *this;
136 }
138 private:
139 Aws::String m_resourceType;
140
141 Aws::String m_resourceId;
142
143 Aws::Vector<ComplianceType> m_complianceTypes;
144
145 int m_limit{0};
146
147 Aws::String m_nextToken;
148 bool m_resourceTypeHasBeenSet = false;
149 bool m_resourceIdHasBeenSet = false;
150 bool m_complianceTypesHasBeenSet = false;
151 bool m_limitHasBeenSet = false;
152 bool m_nextTokenHasBeenSet = false;
153};
154
155} // namespace Model
156} // namespace ConfigService
157} // namespace Aws
DescribeComplianceByResourceRequest & WithNextToken(NextTokenT &&value)
AWS_CONFIGSERVICE_API Aws::String SerializePayload() const override
AWS_CONFIGSERVICE_API DescribeComplianceByResourceRequest()=default
DescribeComplianceByResourceRequest & AddComplianceTypes(ComplianceType value)
DescribeComplianceByResourceRequest & WithResourceId(ResourceIdT &&value)
DescribeComplianceByResourceRequest & WithResourceType(ResourceTypeT &&value)
AWS_CONFIGSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DescribeComplianceByResourceRequest & WithComplianceTypes(ComplianceTypesT &&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