AWS SDK for C++  1.8.71
AWS SDK for C++
PutComplianceItemsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ssm/SSM_EXPORTS.h>
8 #include <aws/ssm/SSMRequest.h>
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace SSM
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "PutComplianceItems"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39 
40 
45  inline const Aws::String& GetResourceId() const{ return m_resourceId; }
46 
51  inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
52 
57  inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
58 
63  inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
64 
69  inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
70 
75  inline PutComplianceItemsRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
76 
81  inline PutComplianceItemsRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
82 
87  inline PutComplianceItemsRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
88 
89 
94  inline const Aws::String& GetResourceType() const{ return m_resourceType; }
95 
100  inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
101 
106  inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
107 
112  inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
113 
118  inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
119 
124  inline PutComplianceItemsRequest& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
125 
130  inline PutComplianceItemsRequest& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
131 
136  inline PutComplianceItemsRequest& WithResourceType(const char* value) { SetResourceType(value); return *this;}
137 
138 
143  inline const Aws::String& GetComplianceType() const{ return m_complianceType; }
144 
149  inline bool ComplianceTypeHasBeenSet() const { return m_complianceTypeHasBeenSet; }
150 
155  inline void SetComplianceType(const Aws::String& value) { m_complianceTypeHasBeenSet = true; m_complianceType = value; }
156 
161  inline void SetComplianceType(Aws::String&& value) { m_complianceTypeHasBeenSet = true; m_complianceType = std::move(value); }
162 
167  inline void SetComplianceType(const char* value) { m_complianceTypeHasBeenSet = true; m_complianceType.assign(value); }
168 
173  inline PutComplianceItemsRequest& WithComplianceType(const Aws::String& value) { SetComplianceType(value); return *this;}
174 
179  inline PutComplianceItemsRequest& WithComplianceType(Aws::String&& value) { SetComplianceType(std::move(value)); return *this;}
180 
185  inline PutComplianceItemsRequest& WithComplianceType(const char* value) { SetComplianceType(value); return *this;}
186 
187 
194  inline const ComplianceExecutionSummary& GetExecutionSummary() const{ return m_executionSummary; }
195 
202  inline bool ExecutionSummaryHasBeenSet() const { return m_executionSummaryHasBeenSet; }
203 
210  inline void SetExecutionSummary(const ComplianceExecutionSummary& value) { m_executionSummaryHasBeenSet = true; m_executionSummary = value; }
211 
218  inline void SetExecutionSummary(ComplianceExecutionSummary&& value) { m_executionSummaryHasBeenSet = true; m_executionSummary = std::move(value); }
219 
226  inline PutComplianceItemsRequest& WithExecutionSummary(const ComplianceExecutionSummary& value) { SetExecutionSummary(value); return *this;}
227 
234  inline PutComplianceItemsRequest& WithExecutionSummary(ComplianceExecutionSummary&& value) { SetExecutionSummary(std::move(value)); return *this;}
235 
236 
242  inline const Aws::Vector<ComplianceItemEntry>& GetItems() const{ return m_items; }
243 
249  inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
250 
256  inline void SetItems(const Aws::Vector<ComplianceItemEntry>& value) { m_itemsHasBeenSet = true; m_items = value; }
257 
263  inline void SetItems(Aws::Vector<ComplianceItemEntry>&& value) { m_itemsHasBeenSet = true; m_items = std::move(value); }
264 
270  inline PutComplianceItemsRequest& WithItems(const Aws::Vector<ComplianceItemEntry>& value) { SetItems(value); return *this;}
271 
277  inline PutComplianceItemsRequest& WithItems(Aws::Vector<ComplianceItemEntry>&& value) { SetItems(std::move(value)); return *this;}
278 
284  inline PutComplianceItemsRequest& AddItems(const ComplianceItemEntry& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
285 
291  inline PutComplianceItemsRequest& AddItems(ComplianceItemEntry&& value) { m_itemsHasBeenSet = true; m_items.push_back(std::move(value)); return *this; }
292 
293 
299  inline const Aws::String& GetItemContentHash() const{ return m_itemContentHash; }
300 
306  inline bool ItemContentHashHasBeenSet() const { return m_itemContentHashHasBeenSet; }
307 
313  inline void SetItemContentHash(const Aws::String& value) { m_itemContentHashHasBeenSet = true; m_itemContentHash = value; }
314 
320  inline void SetItemContentHash(Aws::String&& value) { m_itemContentHashHasBeenSet = true; m_itemContentHash = std::move(value); }
321 
327  inline void SetItemContentHash(const char* value) { m_itemContentHashHasBeenSet = true; m_itemContentHash.assign(value); }
328 
334  inline PutComplianceItemsRequest& WithItemContentHash(const Aws::String& value) { SetItemContentHash(value); return *this;}
335 
341  inline PutComplianceItemsRequest& WithItemContentHash(Aws::String&& value) { SetItemContentHash(std::move(value)); return *this;}
342 
348  inline PutComplianceItemsRequest& WithItemContentHash(const char* value) { SetItemContentHash(value); return *this;}
349 
350 
362  inline const ComplianceUploadType& GetUploadType() const{ return m_uploadType; }
363 
375  inline bool UploadTypeHasBeenSet() const { return m_uploadTypeHasBeenSet; }
376 
388  inline void SetUploadType(const ComplianceUploadType& value) { m_uploadTypeHasBeenSet = true; m_uploadType = value; }
389 
401  inline void SetUploadType(ComplianceUploadType&& value) { m_uploadTypeHasBeenSet = true; m_uploadType = std::move(value); }
402 
414  inline PutComplianceItemsRequest& WithUploadType(const ComplianceUploadType& value) { SetUploadType(value); return *this;}
415 
427  inline PutComplianceItemsRequest& WithUploadType(ComplianceUploadType&& value) { SetUploadType(std::move(value)); return *this;}
428 
429  private:
430 
431  Aws::String m_resourceId;
432  bool m_resourceIdHasBeenSet;
433 
434  Aws::String m_resourceType;
435  bool m_resourceTypeHasBeenSet;
436 
437  Aws::String m_complianceType;
438  bool m_complianceTypeHasBeenSet;
439 
440  ComplianceExecutionSummary m_executionSummary;
441  bool m_executionSummaryHasBeenSet;
442 
444  bool m_itemsHasBeenSet;
445 
446  Aws::String m_itemContentHash;
447  bool m_itemContentHashHasBeenSet;
448 
449  ComplianceUploadType m_uploadType;
450  bool m_uploadTypeHasBeenSet;
451  };
452 
453 } // namespace Model
454 } // namespace SSM
455 } // namespace Aws
PutComplianceItemsRequest & WithComplianceType(Aws::String &&value)
PutComplianceItemsRequest & WithUploadType(ComplianceUploadType &&value)
PutComplianceItemsRequest & WithComplianceType(const Aws::String &value)
void SetExecutionSummary(const ComplianceExecutionSummary &value)
PutComplianceItemsRequest & WithItems(Aws::Vector< ComplianceItemEntry > &&value)
PutComplianceItemsRequest & WithItemContentHash(const Aws::String &value)
PutComplianceItemsRequest & WithResourceId(const Aws::String &value)
PutComplianceItemsRequest & AddItems(const ComplianceItemEntry &value)
void SetItems(Aws::Vector< ComplianceItemEntry > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
PutComplianceItemsRequest & WithResourceType(Aws::String &&value)
PutComplianceItemsRequest & WithExecutionSummary(const ComplianceExecutionSummary &value)
const ComplianceUploadType & GetUploadType() const
PutComplianceItemsRequest & WithUploadType(const ComplianceUploadType &value)
void SetItems(const Aws::Vector< ComplianceItemEntry > &value)
PutComplianceItemsRequest & WithResourceType(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
PutComplianceItemsRequest & WithResourceId(Aws::String &&value)
PutComplianceItemsRequest & WithExecutionSummary(ComplianceExecutionSummary &&value)
PutComplianceItemsRequest & WithResourceId(const char *value)
PutComplianceItemsRequest & WithItemContentHash(Aws::String &&value)
void SetUploadType(ComplianceUploadType &&value)
const ComplianceExecutionSummary & GetExecutionSummary() const
PutComplianceItemsRequest & WithComplianceType(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
PutComplianceItemsRequest & WithItems(const Aws::Vector< ComplianceItemEntry > &value)
PutComplianceItemsRequest & AddItems(ComplianceItemEntry &&value)
PutComplianceItemsRequest & WithResourceType(const char *value)
#define AWS_SSM_API
Definition: SSM_EXPORTS.h:28
void SetUploadType(const ComplianceUploadType &value)
void SetExecutionSummary(ComplianceExecutionSummary &&value)
const Aws::Vector< ComplianceItemEntry > & GetItems() const
PutComplianceItemsRequest & WithItemContentHash(const char *value)