AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutComplianceItemsRequest.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/ssm/SSMRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ssm/model/ComplianceExecutionSummary.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/ssm/model/ComplianceUploadType.h>
13#include <aws/ssm/model/ComplianceItemEntry.h>
14#include <utility>
15
16namespace Aws
17{
18namespace SSM
19{
20namespace 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_SSM_API Aws::String SerializePayload() const override;
37
39
40
42
45 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
46 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
47 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
48 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
49 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
50 inline PutComplianceItemsRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
51 inline PutComplianceItemsRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
52 inline PutComplianceItemsRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
54
56
60 inline const Aws::String& GetResourceType() const{ return m_resourceType; }
61 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
62 inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
63 inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
64 inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
65 inline PutComplianceItemsRequest& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
66 inline PutComplianceItemsRequest& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
67 inline PutComplianceItemsRequest& WithResourceType(const char* value) { SetResourceType(value); return *this;}
69
71
75 inline const Aws::String& GetComplianceType() const{ return m_complianceType; }
76 inline bool ComplianceTypeHasBeenSet() const { return m_complianceTypeHasBeenSet; }
77 inline void SetComplianceType(const Aws::String& value) { m_complianceTypeHasBeenSet = true; m_complianceType = value; }
78 inline void SetComplianceType(Aws::String&& value) { m_complianceTypeHasBeenSet = true; m_complianceType = std::move(value); }
79 inline void SetComplianceType(const char* value) { m_complianceTypeHasBeenSet = true; m_complianceType.assign(value); }
80 inline PutComplianceItemsRequest& WithComplianceType(const Aws::String& value) { SetComplianceType(value); return *this;}
81 inline PutComplianceItemsRequest& WithComplianceType(Aws::String&& value) { SetComplianceType(std::move(value)); return *this;}
82 inline PutComplianceItemsRequest& WithComplianceType(const char* value) { SetComplianceType(value); return *this;}
84
86
92 inline const ComplianceExecutionSummary& GetExecutionSummary() const{ return m_executionSummary; }
93 inline bool ExecutionSummaryHasBeenSet() const { return m_executionSummaryHasBeenSet; }
94 inline void SetExecutionSummary(const ComplianceExecutionSummary& value) { m_executionSummaryHasBeenSet = true; m_executionSummary = value; }
95 inline void SetExecutionSummary(ComplianceExecutionSummary&& value) { m_executionSummaryHasBeenSet = true; m_executionSummary = std::move(value); }
99
101
106 inline const Aws::Vector<ComplianceItemEntry>& GetItems() const{ return m_items; }
107 inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
108 inline void SetItems(const Aws::Vector<ComplianceItemEntry>& value) { m_itemsHasBeenSet = true; m_items = value; }
109 inline void SetItems(Aws::Vector<ComplianceItemEntry>&& value) { m_itemsHasBeenSet = true; m_items = std::move(value); }
111 inline PutComplianceItemsRequest& WithItems(Aws::Vector<ComplianceItemEntry>&& value) { SetItems(std::move(value)); return *this;}
112 inline PutComplianceItemsRequest& AddItems(const ComplianceItemEntry& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
113 inline PutComplianceItemsRequest& AddItems(ComplianceItemEntry&& value) { m_itemsHasBeenSet = true; m_items.push_back(std::move(value)); return *this; }
115
117
122 inline const Aws::String& GetItemContentHash() const{ return m_itemContentHash; }
123 inline bool ItemContentHashHasBeenSet() const { return m_itemContentHashHasBeenSet; }
124 inline void SetItemContentHash(const Aws::String& value) { m_itemContentHashHasBeenSet = true; m_itemContentHash = value; }
125 inline void SetItemContentHash(Aws::String&& value) { m_itemContentHashHasBeenSet = true; m_itemContentHash = std::move(value); }
126 inline void SetItemContentHash(const char* value) { m_itemContentHashHasBeenSet = true; m_itemContentHash.assign(value); }
128 inline PutComplianceItemsRequest& WithItemContentHash(Aws::String&& value) { SetItemContentHash(std::move(value)); return *this;}
129 inline PutComplianceItemsRequest& WithItemContentHash(const char* value) { SetItemContentHash(value); return *this;}
131
133
144 inline const ComplianceUploadType& GetUploadType() const{ return m_uploadType; }
145 inline bool UploadTypeHasBeenSet() const { return m_uploadTypeHasBeenSet; }
146 inline void SetUploadType(const ComplianceUploadType& value) { m_uploadTypeHasBeenSet = true; m_uploadType = value; }
147 inline void SetUploadType(ComplianceUploadType&& value) { m_uploadTypeHasBeenSet = true; m_uploadType = std::move(value); }
148 inline PutComplianceItemsRequest& WithUploadType(const ComplianceUploadType& value) { SetUploadType(value); return *this;}
149 inline PutComplianceItemsRequest& WithUploadType(ComplianceUploadType&& value) { SetUploadType(std::move(value)); return *this;}
151 private:
152
153 Aws::String m_resourceId;
154 bool m_resourceIdHasBeenSet = false;
155
156 Aws::String m_resourceType;
157 bool m_resourceTypeHasBeenSet = false;
158
159 Aws::String m_complianceType;
160 bool m_complianceTypeHasBeenSet = false;
161
162 ComplianceExecutionSummary m_executionSummary;
163 bool m_executionSummaryHasBeenSet = false;
164
166 bool m_itemsHasBeenSet = false;
167
168 Aws::String m_itemContentHash;
169 bool m_itemContentHashHasBeenSet = false;
170
171 ComplianceUploadType m_uploadType;
172 bool m_uploadTypeHasBeenSet = false;
173 };
174
175} // namespace Model
176} // namespace SSM
177} // namespace Aws
void SetExecutionSummary(const ComplianceExecutionSummary &value)
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutComplianceItemsRequest & WithResourceId(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
void SetItems(const Aws::Vector< ComplianceItemEntry > &value)
PutComplianceItemsRequest & WithItems(Aws::Vector< ComplianceItemEntry > &&value)
PutComplianceItemsRequest & WithUploadType(const ComplianceUploadType &value)
PutComplianceItemsRequest & WithComplianceType(Aws::String &&value)
PutComplianceItemsRequest & WithExecutionSummary(ComplianceExecutionSummary &&value)
const Aws::Vector< ComplianceItemEntry > & GetItems() const
PutComplianceItemsRequest & WithResourceType(const Aws::String &value)
PutComplianceItemsRequest & WithUploadType(ComplianceUploadType &&value)
PutComplianceItemsRequest & WithItemContentHash(Aws::String &&value)
PutComplianceItemsRequest & WithResourceId(const char *value)
AWS_SSM_API Aws::String SerializePayload() const override
const ComplianceExecutionSummary & GetExecutionSummary() const
void SetExecutionSummary(ComplianceExecutionSummary &&value)
PutComplianceItemsRequest & WithComplianceType(const Aws::String &value)
PutComplianceItemsRequest & WithExecutionSummary(const ComplianceExecutionSummary &value)
PutComplianceItemsRequest & AddItems(ComplianceItemEntry &&value)
PutComplianceItemsRequest & WithResourceType(Aws::String &&value)
PutComplianceItemsRequest & WithResourceId(const Aws::String &value)
void SetItems(Aws::Vector< ComplianceItemEntry > &&value)
PutComplianceItemsRequest & WithItemContentHash(const Aws::String &value)
PutComplianceItemsRequest & WithComplianceType(const char *value)
const ComplianceUploadType & GetUploadType() const
void SetUploadType(ComplianceUploadType &&value)
PutComplianceItemsRequest & WithItems(const Aws::Vector< ComplianceItemEntry > &value)
PutComplianceItemsRequest & WithResourceType(const char *value)
PutComplianceItemsRequest & WithItemContentHash(const char *value)
void SetUploadType(const ComplianceUploadType &value)
PutComplianceItemsRequest & AddItems(const ComplianceItemEntry &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