AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
PutComplianceItemsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ssm/SSMRequest.h>
10#include <aws/ssm/SSM_EXPORTS.h>
11#include <aws/ssm/model/ComplianceExecutionSummary.h>
12#include <aws/ssm/model/ComplianceItemEntry.h>
13#include <aws/ssm/model/ComplianceUploadType.h>
14
15#include <utility>
16
17namespace Aws {
18namespace SSM {
19namespace Model {
20
24 public:
25 AWS_SSM_API PutComplianceItemsRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "PutComplianceItems"; }
32
33 AWS_SSM_API Aws::String SerializePayload() const override;
34
36
38
41 inline const Aws::String& GetResourceId() const { return m_resourceId; }
42 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
43 template <typename ResourceIdT = Aws::String>
44 void SetResourceId(ResourceIdT&& value) {
45 m_resourceIdHasBeenSet = true;
46 m_resourceId = std::forward<ResourceIdT>(value);
47 }
48 template <typename ResourceIdT = Aws::String>
50 SetResourceId(std::forward<ResourceIdT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetResourceType() const { return m_resourceType; }
61 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
62 template <typename ResourceTypeT = Aws::String>
63 void SetResourceType(ResourceTypeT&& value) {
64 m_resourceTypeHasBeenSet = true;
65 m_resourceType = std::forward<ResourceTypeT>(value);
66 }
67 template <typename ResourceTypeT = Aws::String>
69 SetResourceType(std::forward<ResourceTypeT>(value));
70 return *this;
71 }
73
75
79 inline const Aws::String& GetComplianceType() const { return m_complianceType; }
80 inline bool ComplianceTypeHasBeenSet() const { return m_complianceTypeHasBeenSet; }
81 template <typename ComplianceTypeT = Aws::String>
82 void SetComplianceType(ComplianceTypeT&& value) {
83 m_complianceTypeHasBeenSet = true;
84 m_complianceType = std::forward<ComplianceTypeT>(value);
85 }
86 template <typename ComplianceTypeT = Aws::String>
88 SetComplianceType(std::forward<ComplianceTypeT>(value));
89 return *this;
90 }
92
94
100 inline const ComplianceExecutionSummary& GetExecutionSummary() const { return m_executionSummary; }
101 inline bool ExecutionSummaryHasBeenSet() const { return m_executionSummaryHasBeenSet; }
102 template <typename ExecutionSummaryT = ComplianceExecutionSummary>
103 void SetExecutionSummary(ExecutionSummaryT&& value) {
104 m_executionSummaryHasBeenSet = true;
105 m_executionSummary = std::forward<ExecutionSummaryT>(value);
106 }
107 template <typename ExecutionSummaryT = ComplianceExecutionSummary>
109 SetExecutionSummary(std::forward<ExecutionSummaryT>(value));
110 return *this;
111 }
113
115
120 inline const Aws::Vector<ComplianceItemEntry>& GetItems() const { return m_items; }
121 inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
122 template <typename ItemsT = Aws::Vector<ComplianceItemEntry>>
123 void SetItems(ItemsT&& value) {
124 m_itemsHasBeenSet = true;
125 m_items = std::forward<ItemsT>(value);
126 }
127 template <typename ItemsT = Aws::Vector<ComplianceItemEntry>>
129 SetItems(std::forward<ItemsT>(value));
130 return *this;
131 }
132 template <typename ItemsT = ComplianceItemEntry>
134 m_itemsHasBeenSet = true;
135 m_items.emplace_back(std::forward<ItemsT>(value));
136 return *this;
137 }
139
141
146 inline const Aws::String& GetItemContentHash() const { return m_itemContentHash; }
147 inline bool ItemContentHashHasBeenSet() const { return m_itemContentHashHasBeenSet; }
148 template <typename ItemContentHashT = Aws::String>
149 void SetItemContentHash(ItemContentHashT&& value) {
150 m_itemContentHashHasBeenSet = true;
151 m_itemContentHash = std::forward<ItemContentHashT>(value);
152 }
153 template <typename ItemContentHashT = Aws::String>
155 SetItemContentHash(std::forward<ItemContentHashT>(value));
156 return *this;
157 }
159
161
172 inline ComplianceUploadType GetUploadType() const { return m_uploadType; }
173 inline bool UploadTypeHasBeenSet() const { return m_uploadTypeHasBeenSet; }
175 m_uploadTypeHasBeenSet = true;
176 m_uploadType = value;
177 }
179 SetUploadType(value);
180 return *this;
181 }
183 private:
184 Aws::String m_resourceId;
185
186 Aws::String m_resourceType;
187
188 Aws::String m_complianceType;
189
190 ComplianceExecutionSummary m_executionSummary;
191
193
194 Aws::String m_itemContentHash;
195
197 bool m_resourceIdHasBeenSet = false;
198 bool m_resourceTypeHasBeenSet = false;
199 bool m_complianceTypeHasBeenSet = false;
200 bool m_executionSummaryHasBeenSet = false;
201 bool m_itemsHasBeenSet = false;
202 bool m_itemContentHashHasBeenSet = false;
203 bool m_uploadTypeHasBeenSet = false;
204};
205
206} // namespace Model
207} // namespace SSM
208} // namespace Aws
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
AWS_SSM_API PutComplianceItemsRequest()=default
const Aws::Vector< ComplianceItemEntry > & GetItems() const
PutComplianceItemsRequest & WithComplianceType(ComplianceTypeT &&value)
AWS_SSM_API Aws::String SerializePayload() const override
const ComplianceExecutionSummary & GetExecutionSummary() const
PutComplianceItemsRequest & WithResourceId(ResourceIdT &&value)
PutComplianceItemsRequest & WithItems(ItemsT &&value)
PutComplianceItemsRequest & WithExecutionSummary(ExecutionSummaryT &&value)
PutComplianceItemsRequest & WithUploadType(ComplianceUploadType value)
PutComplianceItemsRequest & AddItems(ItemsT &&value)
PutComplianceItemsRequest & WithResourceType(ResourceTypeT &&value)
PutComplianceItemsRequest & WithItemContentHash(ItemContentHashT &&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