AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
PutConformancePackRequest.h
1
6#pragma once
7#include <aws/config/ConfigServiceRequest.h>
8#include <aws/config/ConfigService_EXPORTS.h>
9#include <aws/config/model/ConformancePackInputParameter.h>
10#include <aws/config/model/Tag.h>
11#include <aws/config/model/TemplateSSMDocumentDetails.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace ConfigService {
19namespace Model {
20
24 public:
25 AWS_CONFIGSERVICE_API PutConformancePackRequest() = 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 "PutConformancePack"; }
32
33 AWS_CONFIGSERVICE_API Aws::String SerializePayload() const override;
34
35 AWS_CONFIGSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
38
41 inline const Aws::String& GetConformancePackName() const { return m_conformancePackName; }
42 inline bool ConformancePackNameHasBeenSet() const { return m_conformancePackNameHasBeenSet; }
43 template <typename ConformancePackNameT = Aws::String>
44 void SetConformancePackName(ConformancePackNameT&& value) {
45 m_conformancePackNameHasBeenSet = true;
46 m_conformancePackName = std::forward<ConformancePackNameT>(value);
47 }
48 template <typename ConformancePackNameT = Aws::String>
49 PutConformancePackRequest& WithConformancePackName(ConformancePackNameT&& value) {
50 SetConformancePackName(std::forward<ConformancePackNameT>(value));
51 return *this;
52 }
54
56
66 inline const Aws::String& GetTemplateS3Uri() const { return m_templateS3Uri; }
67 inline bool TemplateS3UriHasBeenSet() const { return m_templateS3UriHasBeenSet; }
68 template <typename TemplateS3UriT = Aws::String>
69 void SetTemplateS3Uri(TemplateS3UriT&& value) {
70 m_templateS3UriHasBeenSet = true;
71 m_templateS3Uri = std::forward<TemplateS3UriT>(value);
72 }
73 template <typename TemplateS3UriT = Aws::String>
75 SetTemplateS3Uri(std::forward<TemplateS3UriT>(value));
76 return *this;
77 }
79
81
88 inline const Aws::String& GetTemplateBody() const { return m_templateBody; }
89 inline bool TemplateBodyHasBeenSet() const { return m_templateBodyHasBeenSet; }
90 template <typename TemplateBodyT = Aws::String>
91 void SetTemplateBody(TemplateBodyT&& value) {
92 m_templateBodyHasBeenSet = true;
93 m_templateBody = std::forward<TemplateBodyT>(value);
94 }
95 template <typename TemplateBodyT = Aws::String>
97 SetTemplateBody(std::forward<TemplateBodyT>(value));
98 return *this;
99 }
101
103
107 inline const Aws::String& GetDeliveryS3Bucket() const { return m_deliveryS3Bucket; }
108 inline bool DeliveryS3BucketHasBeenSet() const { return m_deliveryS3BucketHasBeenSet; }
109 template <typename DeliveryS3BucketT = Aws::String>
110 void SetDeliveryS3Bucket(DeliveryS3BucketT&& value) {
111 m_deliveryS3BucketHasBeenSet = true;
112 m_deliveryS3Bucket = std::forward<DeliveryS3BucketT>(value);
113 }
114 template <typename DeliveryS3BucketT = Aws::String>
116 SetDeliveryS3Bucket(std::forward<DeliveryS3BucketT>(value));
117 return *this;
118 }
120
122
126 inline const Aws::String& GetDeliveryS3KeyPrefix() const { return m_deliveryS3KeyPrefix; }
127 inline bool DeliveryS3KeyPrefixHasBeenSet() const { return m_deliveryS3KeyPrefixHasBeenSet; }
128 template <typename DeliveryS3KeyPrefixT = Aws::String>
129 void SetDeliveryS3KeyPrefix(DeliveryS3KeyPrefixT&& value) {
130 m_deliveryS3KeyPrefixHasBeenSet = true;
131 m_deliveryS3KeyPrefix = std::forward<DeliveryS3KeyPrefixT>(value);
132 }
133 template <typename DeliveryS3KeyPrefixT = Aws::String>
134 PutConformancePackRequest& WithDeliveryS3KeyPrefix(DeliveryS3KeyPrefixT&& value) {
135 SetDeliveryS3KeyPrefix(std::forward<DeliveryS3KeyPrefixT>(value));
136 return *this;
137 }
139
141
145 return m_conformancePackInputParameters;
146 }
147 inline bool ConformancePackInputParametersHasBeenSet() const { return m_conformancePackInputParametersHasBeenSet; }
148 template <typename ConformancePackInputParametersT = Aws::Vector<ConformancePackInputParameter>>
149 void SetConformancePackInputParameters(ConformancePackInputParametersT&& value) {
150 m_conformancePackInputParametersHasBeenSet = true;
151 m_conformancePackInputParameters = std::forward<ConformancePackInputParametersT>(value);
152 }
153 template <typename ConformancePackInputParametersT = Aws::Vector<ConformancePackInputParameter>>
154 PutConformancePackRequest& WithConformancePackInputParameters(ConformancePackInputParametersT&& value) {
155 SetConformancePackInputParameters(std::forward<ConformancePackInputParametersT>(value));
156 return *this;
157 }
158 template <typename ConformancePackInputParametersT = ConformancePackInputParameter>
159 PutConformancePackRequest& AddConformancePackInputParameters(ConformancePackInputParametersT&& value) {
160 m_conformancePackInputParametersHasBeenSet = true;
161 m_conformancePackInputParameters.emplace_back(std::forward<ConformancePackInputParametersT>(value));
162 return *this;
163 }
165
167
173 inline const TemplateSSMDocumentDetails& GetTemplateSSMDocumentDetails() const { return m_templateSSMDocumentDetails; }
174 inline bool TemplateSSMDocumentDetailsHasBeenSet() const { return m_templateSSMDocumentDetailsHasBeenSet; }
175 template <typename TemplateSSMDocumentDetailsT = TemplateSSMDocumentDetails>
176 void SetTemplateSSMDocumentDetails(TemplateSSMDocumentDetailsT&& value) {
177 m_templateSSMDocumentDetailsHasBeenSet = true;
178 m_templateSSMDocumentDetails = std::forward<TemplateSSMDocumentDetailsT>(value);
179 }
180 template <typename TemplateSSMDocumentDetailsT = TemplateSSMDocumentDetails>
181 PutConformancePackRequest& WithTemplateSSMDocumentDetails(TemplateSSMDocumentDetailsT&& value) {
182 SetTemplateSSMDocumentDetails(std::forward<TemplateSSMDocumentDetailsT>(value));
183 return *this;
184 }
186
188
192 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
193 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
194 template <typename TagsT = Aws::Vector<Tag>>
195 void SetTags(TagsT&& value) {
196 m_tagsHasBeenSet = true;
197 m_tags = std::forward<TagsT>(value);
198 }
199 template <typename TagsT = Aws::Vector<Tag>>
201 SetTags(std::forward<TagsT>(value));
202 return *this;
203 }
204 template <typename TagsT = Tag>
206 m_tagsHasBeenSet = true;
207 m_tags.emplace_back(std::forward<TagsT>(value));
208 return *this;
209 }
211 private:
212 Aws::String m_conformancePackName;
213
214 Aws::String m_templateS3Uri;
215
216 Aws::String m_templateBody;
217
218 Aws::String m_deliveryS3Bucket;
219
220 Aws::String m_deliveryS3KeyPrefix;
221
222 Aws::Vector<ConformancePackInputParameter> m_conformancePackInputParameters;
223
224 TemplateSSMDocumentDetails m_templateSSMDocumentDetails;
225
226 Aws::Vector<Tag> m_tags;
227 bool m_conformancePackNameHasBeenSet = false;
228 bool m_templateS3UriHasBeenSet = false;
229 bool m_templateBodyHasBeenSet = false;
230 bool m_deliveryS3BucketHasBeenSet = false;
231 bool m_deliveryS3KeyPrefixHasBeenSet = false;
232 bool m_conformancePackInputParametersHasBeenSet = false;
233 bool m_templateSSMDocumentDetailsHasBeenSet = false;
234 bool m_tagsHasBeenSet = false;
235};
236
237} // namespace Model
238} // namespace ConfigService
239} // namespace Aws
void SetTemplateSSMDocumentDetails(TemplateSSMDocumentDetailsT &&value)
PutConformancePackRequest & WithTemplateSSMDocumentDetails(TemplateSSMDocumentDetailsT &&value)
PutConformancePackRequest & WithTags(TagsT &&value)
PutConformancePackRequest & WithTemplateS3Uri(TemplateS3UriT &&value)
AWS_CONFIGSERVICE_API Aws::String SerializePayload() const override
AWS_CONFIGSERVICE_API PutConformancePackRequest()=default
virtual const char * GetServiceRequestName() const override
PutConformancePackRequest & WithConformancePackName(ConformancePackNameT &&value)
AWS_CONFIGSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutConformancePackRequest & WithDeliveryS3KeyPrefix(DeliveryS3KeyPrefixT &&value)
void SetConformancePackInputParameters(ConformancePackInputParametersT &&value)
PutConformancePackRequest & WithConformancePackInputParameters(ConformancePackInputParametersT &&value)
const Aws::Vector< ConformancePackInputParameter > & GetConformancePackInputParameters() const
PutConformancePackRequest & WithDeliveryS3Bucket(DeliveryS3BucketT &&value)
const TemplateSSMDocumentDetails & GetTemplateSSMDocumentDetails() const
PutConformancePackRequest & AddConformancePackInputParameters(ConformancePackInputParametersT &&value)
PutConformancePackRequest & WithTemplateBody(TemplateBodyT &&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