AWS SDK for C++  1.9.125
AWS SDK for C++
DeleteProvisioningTemplateVersionRequest.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 IoT
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "DeleteProvisioningTemplateVersion"; }
31 
32  Aws::String SerializePayload() const override;
33 
34 
38  inline const Aws::String& GetTemplateName() const{ return m_templateName; }
39 
43  inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
44 
48  inline void SetTemplateName(const Aws::String& value) { m_templateNameHasBeenSet = true; m_templateName = value; }
49 
53  inline void SetTemplateName(Aws::String&& value) { m_templateNameHasBeenSet = true; m_templateName = std::move(value); }
54 
58  inline void SetTemplateName(const char* value) { m_templateNameHasBeenSet = true; m_templateName.assign(value); }
59 
63  inline DeleteProvisioningTemplateVersionRequest& WithTemplateName(const Aws::String& value) { SetTemplateName(value); return *this;}
64 
68  inline DeleteProvisioningTemplateVersionRequest& WithTemplateName(Aws::String&& value) { SetTemplateName(std::move(value)); return *this;}
69 
73  inline DeleteProvisioningTemplateVersionRequest& WithTemplateName(const char* value) { SetTemplateName(value); return *this;}
74 
75 
79  inline int GetVersionId() const{ return m_versionId; }
80 
84  inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
85 
89  inline void SetVersionId(int value) { m_versionIdHasBeenSet = true; m_versionId = value; }
90 
94  inline DeleteProvisioningTemplateVersionRequest& WithVersionId(int value) { SetVersionId(value); return *this;}
95 
96  private:
97 
98  Aws::String m_templateName;
99  bool m_templateNameHasBeenSet;
100 
101  int m_versionId;
102  bool m_versionIdHasBeenSet;
103  };
104 
105 } // namespace Model
106 } // namespace IoT
107 } // namespace Aws
Aws::IoT::Model::DeleteProvisioningTemplateVersionRequest::WithTemplateName
DeleteProvisioningTemplateVersionRequest & WithTemplateName(const char *value)
Definition: DeleteProvisioningTemplateVersionRequest.h:73
Aws::IoT::Model::DeleteProvisioningTemplateVersionRequest::WithVersionId
DeleteProvisioningTemplateVersionRequest & WithVersionId(int value)
Definition: DeleteProvisioningTemplateVersionRequest.h:94
Aws::IoT::Model::DeleteProvisioningTemplateVersionRequest::SetTemplateName
void SetTemplateName(const Aws::String &value)
Definition: DeleteProvisioningTemplateVersionRequest.h:48
Aws::IoT::Model::DeleteProvisioningTemplateVersionRequest::VersionIdHasBeenSet
bool VersionIdHasBeenSet() const
Definition: DeleteProvisioningTemplateVersionRequest.h:84
Aws::IoT::Model::DeleteProvisioningTemplateVersionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteProvisioningTemplateVersionRequest.h:30
Aws::IoT::Model::DeleteProvisioningTemplateVersionRequest::WithTemplateName
DeleteProvisioningTemplateVersionRequest & WithTemplateName(const Aws::String &value)
Definition: DeleteProvisioningTemplateVersionRequest.h:63
Aws::IoT::Model::DeleteProvisioningTemplateVersionRequest
Definition: DeleteProvisioningTemplateVersionRequest.h:22
Aws::IoT::Model::DeleteProvisioningTemplateVersionRequest::SetTemplateName
void SetTemplateName(Aws::String &&value)
Definition: DeleteProvisioningTemplateVersionRequest.h:53
Aws::IoT::Model::DeleteProvisioningTemplateVersionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT::Model::DeleteProvisioningTemplateVersionRequest::GetVersionId
int GetVersionId() const
Definition: DeleteProvisioningTemplateVersionRequest.h:79
AWSString.h
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::DeleteProvisioningTemplateVersionRequest::TemplateNameHasBeenSet
bool TemplateNameHasBeenSet() const
Definition: DeleteProvisioningTemplateVersionRequest.h:43
Aws::IoT::Model::DeleteProvisioningTemplateVersionRequest::DeleteProvisioningTemplateVersionRequest
DeleteProvisioningTemplateVersionRequest()
Aws::IoT::Model::DeleteProvisioningTemplateVersionRequest::SetTemplateName
void SetTemplateName(const char *value)
Definition: DeleteProvisioningTemplateVersionRequest.h:58
Aws::IoT::Model::DeleteProvisioningTemplateVersionRequest::WithTemplateName
DeleteProvisioningTemplateVersionRequest & WithTemplateName(Aws::String &&value)
Definition: DeleteProvisioningTemplateVersionRequest.h:68
Aws::IoT::Model::DeleteProvisioningTemplateVersionRequest::GetTemplateName
const Aws::String & GetTemplateName() const
Definition: DeleteProvisioningTemplateVersionRequest.h:38
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::DeleteProvisioningTemplateVersionRequest::SetVersionId
void SetVersionId(int value)
Definition: DeleteProvisioningTemplateVersionRequest.h:89
IoT_EXPORTS.h