AWS SDK for C++  1.9.123
AWS SDK for C++
CreateProvisioningTemplateVersionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
8 #include <aws/iot/IoTRequest.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Http
15 {
16  class URI;
17 } //namespace Http
18 namespace IoT
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 "CreateProvisioningTemplateVersion"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39 
40 
44  inline const Aws::String& GetTemplateName() const{ return m_templateName; }
45 
49  inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
50 
54  inline void SetTemplateName(const Aws::String& value) { m_templateNameHasBeenSet = true; m_templateName = value; }
55 
59  inline void SetTemplateName(Aws::String&& value) { m_templateNameHasBeenSet = true; m_templateName = std::move(value); }
60 
64  inline void SetTemplateName(const char* value) { m_templateNameHasBeenSet = true; m_templateName.assign(value); }
65 
69  inline CreateProvisioningTemplateVersionRequest& WithTemplateName(const Aws::String& value) { SetTemplateName(value); return *this;}
70 
74  inline CreateProvisioningTemplateVersionRequest& WithTemplateName(Aws::String&& value) { SetTemplateName(std::move(value)); return *this;}
75 
79  inline CreateProvisioningTemplateVersionRequest& WithTemplateName(const char* value) { SetTemplateName(value); return *this;}
80 
81 
85  inline const Aws::String& GetTemplateBody() const{ return m_templateBody; }
86 
90  inline bool TemplateBodyHasBeenSet() const { return m_templateBodyHasBeenSet; }
91 
95  inline void SetTemplateBody(const Aws::String& value) { m_templateBodyHasBeenSet = true; m_templateBody = value; }
96 
100  inline void SetTemplateBody(Aws::String&& value) { m_templateBodyHasBeenSet = true; m_templateBody = std::move(value); }
101 
105  inline void SetTemplateBody(const char* value) { m_templateBodyHasBeenSet = true; m_templateBody.assign(value); }
106 
110  inline CreateProvisioningTemplateVersionRequest& WithTemplateBody(const Aws::String& value) { SetTemplateBody(value); return *this;}
111 
115  inline CreateProvisioningTemplateVersionRequest& WithTemplateBody(Aws::String&& value) { SetTemplateBody(std::move(value)); return *this;}
116 
120  inline CreateProvisioningTemplateVersionRequest& WithTemplateBody(const char* value) { SetTemplateBody(value); return *this;}
121 
122 
126  inline bool GetSetAsDefault() const{ return m_setAsDefault; }
127 
131  inline bool SetAsDefaultHasBeenSet() const { return m_setAsDefaultHasBeenSet; }
132 
136  inline void SetSetAsDefault(bool value) { m_setAsDefaultHasBeenSet = true; m_setAsDefault = value; }
137 
141  inline CreateProvisioningTemplateVersionRequest& WithSetAsDefault(bool value) { SetSetAsDefault(value); return *this;}
142 
143  private:
144 
145  Aws::String m_templateName;
146  bool m_templateNameHasBeenSet;
147 
148  Aws::String m_templateBody;
149  bool m_templateBodyHasBeenSet;
150 
151  bool m_setAsDefault;
152  bool m_setAsDefaultHasBeenSet;
153  };
154 
155 } // namespace Model
156 } // namespace IoT
157 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::IoT::Model::CreateProvisioningTemplateVersionRequest::SetTemplateBody
void SetTemplateBody(const char *value)
Definition: CreateProvisioningTemplateVersionRequest.h:105
Aws::IoT::Model::CreateProvisioningTemplateVersionRequest::SetSetAsDefault
void SetSetAsDefault(bool value)
Definition: CreateProvisioningTemplateVersionRequest.h:136
Aws::IoT::Model::CreateProvisioningTemplateVersionRequest::SetAsDefaultHasBeenSet
bool SetAsDefaultHasBeenSet() const
Definition: CreateProvisioningTemplateVersionRequest.h:131
Aws::IoT::Model::CreateProvisioningTemplateVersionRequest::CreateProvisioningTemplateVersionRequest
CreateProvisioningTemplateVersionRequest()
Aws::IoT::Model::CreateProvisioningTemplateVersionRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::IoT::Model::CreateProvisioningTemplateVersionRequest::SetTemplateBody
void SetTemplateBody(const Aws::String &value)
Definition: CreateProvisioningTemplateVersionRequest.h:95
Aws::IoT::Model::CreateProvisioningTemplateVersionRequest::WithTemplateName
CreateProvisioningTemplateVersionRequest & WithTemplateName(Aws::String &&value)
Definition: CreateProvisioningTemplateVersionRequest.h:74
Aws::IoT::Model::CreateProvisioningTemplateVersionRequest::GetTemplateBody
const Aws::String & GetTemplateBody() const
Definition: CreateProvisioningTemplateVersionRequest.h:85
Aws::IoT::Model::CreateProvisioningTemplateVersionRequest::TemplateNameHasBeenSet
bool TemplateNameHasBeenSet() const
Definition: CreateProvisioningTemplateVersionRequest.h:49
Aws::IoT::Model::CreateProvisioningTemplateVersionRequest::SetTemplateName
void SetTemplateName(const char *value)
Definition: CreateProvisioningTemplateVersionRequest.h:64
Aws::IoT::Model::CreateProvisioningTemplateVersionRequest::WithTemplateBody
CreateProvisioningTemplateVersionRequest & WithTemplateBody(Aws::String &&value)
Definition: CreateProvisioningTemplateVersionRequest.h:115
Aws::IoT::Model::CreateProvisioningTemplateVersionRequest::WithTemplateName
CreateProvisioningTemplateVersionRequest & WithTemplateName(const char *value)
Definition: CreateProvisioningTemplateVersionRequest.h:79
Aws::IoT::Model::CreateProvisioningTemplateVersionRequest::SetTemplateName
void SetTemplateName(const Aws::String &value)
Definition: CreateProvisioningTemplateVersionRequest.h:54
Aws::IoT::Model::CreateProvisioningTemplateVersionRequest::SetTemplateName
void SetTemplateName(Aws::String &&value)
Definition: CreateProvisioningTemplateVersionRequest.h:59
Aws::IoT::Model::CreateProvisioningTemplateVersionRequest
Definition: CreateProvisioningTemplateVersionRequest.h:26
Aws::IoT::Model::CreateProvisioningTemplateVersionRequest::WithTemplateBody
CreateProvisioningTemplateVersionRequest & WithTemplateBody(const Aws::String &value)
Definition: CreateProvisioningTemplateVersionRequest.h:110
AWSString.h
Aws::IoT::Model::CreateProvisioningTemplateVersionRequest::WithTemplateBody
CreateProvisioningTemplateVersionRequest & WithTemplateBody(const char *value)
Definition: CreateProvisioningTemplateVersionRequest.h:120
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::CreateProvisioningTemplateVersionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateProvisioningTemplateVersionRequest.h:34
Aws::IoT::Model::CreateProvisioningTemplateVersionRequest::TemplateBodyHasBeenSet
bool TemplateBodyHasBeenSet() const
Definition: CreateProvisioningTemplateVersionRequest.h:90
Aws::IoT::Model::CreateProvisioningTemplateVersionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT::Model::CreateProvisioningTemplateVersionRequest::WithSetAsDefault
CreateProvisioningTemplateVersionRequest & WithSetAsDefault(bool value)
Definition: CreateProvisioningTemplateVersionRequest.h:141
Aws::IoT::Model::CreateProvisioningTemplateVersionRequest::GetSetAsDefault
bool GetSetAsDefault() const
Definition: CreateProvisioningTemplateVersionRequest.h:126
Aws
Definition: AccessManagementClient.h:15
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
IoTRequest.h
Aws::IoT::Model::CreateProvisioningTemplateVersionRequest::WithTemplateName
CreateProvisioningTemplateVersionRequest & WithTemplateName(const Aws::String &value)
Definition: CreateProvisioningTemplateVersionRequest.h:69
Aws::IoT::Model::CreateProvisioningTemplateVersionRequest::SetTemplateBody
void SetTemplateBody(Aws::String &&value)
Definition: CreateProvisioningTemplateVersionRequest.h:100
IoT_EXPORTS.h
Aws::IoT::Model::CreateProvisioningTemplateVersionRequest::GetTemplateName
const Aws::String & GetTemplateName() const
Definition: CreateProvisioningTemplateVersionRequest.h:44