AWS SDK for C++  1.9.40
AWS SDK for C++
AssociateDeviceWithPlacementRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace IoT1ClickProjects
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 "AssociateDeviceWithPlacement"; }
31 
32  Aws::String SerializePayload() const override;
33 
34 
39  inline const Aws::String& GetProjectName() const{ return m_projectName; }
40 
45  inline bool ProjectNameHasBeenSet() const { return m_projectNameHasBeenSet; }
46 
51  inline void SetProjectName(const Aws::String& value) { m_projectNameHasBeenSet = true; m_projectName = value; }
52 
57  inline void SetProjectName(Aws::String&& value) { m_projectNameHasBeenSet = true; m_projectName = std::move(value); }
58 
63  inline void SetProjectName(const char* value) { m_projectNameHasBeenSet = true; m_projectName.assign(value); }
64 
69  inline AssociateDeviceWithPlacementRequest& WithProjectName(const Aws::String& value) { SetProjectName(value); return *this;}
70 
75  inline AssociateDeviceWithPlacementRequest& WithProjectName(Aws::String&& value) { SetProjectName(std::move(value)); return *this;}
76 
81  inline AssociateDeviceWithPlacementRequest& WithProjectName(const char* value) { SetProjectName(value); return *this;}
82 
83 
87  inline const Aws::String& GetPlacementName() const{ return m_placementName; }
88 
92  inline bool PlacementNameHasBeenSet() const { return m_placementNameHasBeenSet; }
93 
97  inline void SetPlacementName(const Aws::String& value) { m_placementNameHasBeenSet = true; m_placementName = value; }
98 
102  inline void SetPlacementName(Aws::String&& value) { m_placementNameHasBeenSet = true; m_placementName = std::move(value); }
103 
107  inline void SetPlacementName(const char* value) { m_placementNameHasBeenSet = true; m_placementName.assign(value); }
108 
112  inline AssociateDeviceWithPlacementRequest& WithPlacementName(const Aws::String& value) { SetPlacementName(value); return *this;}
113 
117  inline AssociateDeviceWithPlacementRequest& WithPlacementName(Aws::String&& value) { SetPlacementName(std::move(value)); return *this;}
118 
122  inline AssociateDeviceWithPlacementRequest& WithPlacementName(const char* value) { SetPlacementName(value); return *this;}
123 
124 
130  inline const Aws::String& GetDeviceId() const{ return m_deviceId; }
131 
137  inline bool DeviceIdHasBeenSet() const { return m_deviceIdHasBeenSet; }
138 
144  inline void SetDeviceId(const Aws::String& value) { m_deviceIdHasBeenSet = true; m_deviceId = value; }
145 
151  inline void SetDeviceId(Aws::String&& value) { m_deviceIdHasBeenSet = true; m_deviceId = std::move(value); }
152 
158  inline void SetDeviceId(const char* value) { m_deviceIdHasBeenSet = true; m_deviceId.assign(value); }
159 
165  inline AssociateDeviceWithPlacementRequest& WithDeviceId(const Aws::String& value) { SetDeviceId(value); return *this;}
166 
172  inline AssociateDeviceWithPlacementRequest& WithDeviceId(Aws::String&& value) { SetDeviceId(std::move(value)); return *this;}
173 
179  inline AssociateDeviceWithPlacementRequest& WithDeviceId(const char* value) { SetDeviceId(value); return *this;}
180 
181 
185  inline const Aws::String& GetDeviceTemplateName() const{ return m_deviceTemplateName; }
186 
190  inline bool DeviceTemplateNameHasBeenSet() const { return m_deviceTemplateNameHasBeenSet; }
191 
195  inline void SetDeviceTemplateName(const Aws::String& value) { m_deviceTemplateNameHasBeenSet = true; m_deviceTemplateName = value; }
196 
200  inline void SetDeviceTemplateName(Aws::String&& value) { m_deviceTemplateNameHasBeenSet = true; m_deviceTemplateName = std::move(value); }
201 
205  inline void SetDeviceTemplateName(const char* value) { m_deviceTemplateNameHasBeenSet = true; m_deviceTemplateName.assign(value); }
206 
210  inline AssociateDeviceWithPlacementRequest& WithDeviceTemplateName(const Aws::String& value) { SetDeviceTemplateName(value); return *this;}
211 
215  inline AssociateDeviceWithPlacementRequest& WithDeviceTemplateName(Aws::String&& value) { SetDeviceTemplateName(std::move(value)); return *this;}
216 
220  inline AssociateDeviceWithPlacementRequest& WithDeviceTemplateName(const char* value) { SetDeviceTemplateName(value); return *this;}
221 
222  private:
223 
224  Aws::String m_projectName;
225  bool m_projectNameHasBeenSet;
226 
227  Aws::String m_placementName;
228  bool m_placementNameHasBeenSet;
229 
230  Aws::String m_deviceId;
231  bool m_deviceIdHasBeenSet;
232 
233  Aws::String m_deviceTemplateName;
234  bool m_deviceTemplateNameHasBeenSet;
235  };
236 
237 } // namespace Model
238 } // namespace IoT1ClickProjects
239 } // namespace Aws
Aws::IoT1ClickProjects::Model::AssociateDeviceWithPlacementRequest::DeviceIdHasBeenSet
bool DeviceIdHasBeenSet() const
Definition: AssociateDeviceWithPlacementRequest.h:137
Aws::IoT1ClickProjects::Model::AssociateDeviceWithPlacementRequest::SetPlacementName
void SetPlacementName(const Aws::String &value)
Definition: AssociateDeviceWithPlacementRequest.h:97
Aws::IoT1ClickProjects::Model::AssociateDeviceWithPlacementRequest::DeviceTemplateNameHasBeenSet
bool DeviceTemplateNameHasBeenSet() const
Definition: AssociateDeviceWithPlacementRequest.h:190
Aws::IoT1ClickProjects::Model::AssociateDeviceWithPlacementRequest::WithDeviceId
AssociateDeviceWithPlacementRequest & WithDeviceId(const char *value)
Definition: AssociateDeviceWithPlacementRequest.h:179
Aws::IoT1ClickProjects::Model::AssociateDeviceWithPlacementRequest::WithDeviceId
AssociateDeviceWithPlacementRequest & WithDeviceId(const Aws::String &value)
Definition: AssociateDeviceWithPlacementRequest.h:165
Aws::IoT1ClickProjects::Model::AssociateDeviceWithPlacementRequest::GetPlacementName
const Aws::String & GetPlacementName() const
Definition: AssociateDeviceWithPlacementRequest.h:87
Aws::IoT1ClickProjects::Model::AssociateDeviceWithPlacementRequest
Definition: AssociateDeviceWithPlacementRequest.h:22
IoT1ClickProjects_EXPORTS.h
Aws::IoT1ClickProjects::Model::AssociateDeviceWithPlacementRequest::GetProjectName
const Aws::String & GetProjectName() const
Definition: AssociateDeviceWithPlacementRequest.h:39
Aws::IoT1ClickProjects::IoT1ClickProjectsRequest
Definition: IoT1ClickProjectsRequest.h:17
Aws::IoT1ClickProjects::Model::AssociateDeviceWithPlacementRequest::SetDeviceTemplateName
void SetDeviceTemplateName(Aws::String &&value)
Definition: AssociateDeviceWithPlacementRequest.h:200
Aws::IoT1ClickProjects::Model::AssociateDeviceWithPlacementRequest::WithDeviceTemplateName
AssociateDeviceWithPlacementRequest & WithDeviceTemplateName(Aws::String &&value)
Definition: AssociateDeviceWithPlacementRequest.h:215
Aws::IoT1ClickProjects::Model::AssociateDeviceWithPlacementRequest::SetDeviceTemplateName
void SetDeviceTemplateName(const char *value)
Definition: AssociateDeviceWithPlacementRequest.h:205
Aws::IoT1ClickProjects::Model::AssociateDeviceWithPlacementRequest::GetDeviceTemplateName
const Aws::String & GetDeviceTemplateName() const
Definition: AssociateDeviceWithPlacementRequest.h:185
Aws::IoT1ClickProjects::Model::AssociateDeviceWithPlacementRequest::SetDeviceId
void SetDeviceId(const char *value)
Definition: AssociateDeviceWithPlacementRequest.h:158
Aws::IoT1ClickProjects::Model::AssociateDeviceWithPlacementRequest::WithPlacementName
AssociateDeviceWithPlacementRequest & WithPlacementName(const Aws::String &value)
Definition: AssociateDeviceWithPlacementRequest.h:112
AWS_IOT1CLICKPROJECTS_API
#define AWS_IOT1CLICKPROJECTS_API
Definition: IoT1ClickProjects_EXPORTS.h:28
Aws::IoT1ClickProjects::Model::AssociateDeviceWithPlacementRequest::SetProjectName
void SetProjectName(const char *value)
Definition: AssociateDeviceWithPlacementRequest.h:63
Aws::IoT1ClickProjects::Model::AssociateDeviceWithPlacementRequest::WithPlacementName
AssociateDeviceWithPlacementRequest & WithPlacementName(const char *value)
Definition: AssociateDeviceWithPlacementRequest.h:122
Aws::IoT1ClickProjects::Model::AssociateDeviceWithPlacementRequest::SetProjectName
void SetProjectName(const Aws::String &value)
Definition: AssociateDeviceWithPlacementRequest.h:51
AWSString.h
Aws::IoT1ClickProjects::Model::AssociateDeviceWithPlacementRequest::SetDeviceId
void SetDeviceId(Aws::String &&value)
Definition: AssociateDeviceWithPlacementRequest.h:151
Aws::IoT1ClickProjects::Model::AssociateDeviceWithPlacementRequest::SetProjectName
void SetProjectName(Aws::String &&value)
Definition: AssociateDeviceWithPlacementRequest.h:57
Aws::IoT1ClickProjects::Model::AssociateDeviceWithPlacementRequest::WithDeviceId
AssociateDeviceWithPlacementRequest & WithDeviceId(Aws::String &&value)
Definition: AssociateDeviceWithPlacementRequest.h:172
Aws::IoT1ClickProjects::Model::AssociateDeviceWithPlacementRequest::PlacementNameHasBeenSet
bool PlacementNameHasBeenSet() const
Definition: AssociateDeviceWithPlacementRequest.h:92
Aws
Definition: AccessManagementClient.h:15
Aws::IoT1ClickProjects::Model::AssociateDeviceWithPlacementRequest::SetDeviceId
void SetDeviceId(const Aws::String &value)
Definition: AssociateDeviceWithPlacementRequest.h:144
Aws::IoT1ClickProjects::Model::AssociateDeviceWithPlacementRequest::WithProjectName
AssociateDeviceWithPlacementRequest & WithProjectName(Aws::String &&value)
Definition: AssociateDeviceWithPlacementRequest.h:75
Aws::IoT1ClickProjects::Model::AssociateDeviceWithPlacementRequest::WithPlacementName
AssociateDeviceWithPlacementRequest & WithPlacementName(Aws::String &&value)
Definition: AssociateDeviceWithPlacementRequest.h:117
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT1ClickProjects::Model::AssociateDeviceWithPlacementRequest::WithProjectName
AssociateDeviceWithPlacementRequest & WithProjectName(const Aws::String &value)
Definition: AssociateDeviceWithPlacementRequest.h:69
Aws::IoT1ClickProjects::Model::AssociateDeviceWithPlacementRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT1ClickProjects::Model::AssociateDeviceWithPlacementRequest::ProjectNameHasBeenSet
bool ProjectNameHasBeenSet() const
Definition: AssociateDeviceWithPlacementRequest.h:45
IoT1ClickProjectsRequest.h
Aws::IoT1ClickProjects::Model::AssociateDeviceWithPlacementRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AssociateDeviceWithPlacementRequest.h:30
Aws::IoT1ClickProjects::Model::AssociateDeviceWithPlacementRequest::WithDeviceTemplateName
AssociateDeviceWithPlacementRequest & WithDeviceTemplateName(const Aws::String &value)
Definition: AssociateDeviceWithPlacementRequest.h:210
Aws::IoT1ClickProjects::Model::AssociateDeviceWithPlacementRequest::WithProjectName
AssociateDeviceWithPlacementRequest & WithProjectName(const char *value)
Definition: AssociateDeviceWithPlacementRequest.h:81
Aws::IoT1ClickProjects::Model::AssociateDeviceWithPlacementRequest::SetDeviceTemplateName
void SetDeviceTemplateName(const Aws::String &value)
Definition: AssociateDeviceWithPlacementRequest.h:195
Aws::IoT1ClickProjects::Model::AssociateDeviceWithPlacementRequest::WithDeviceTemplateName
AssociateDeviceWithPlacementRequest & WithDeviceTemplateName(const char *value)
Definition: AssociateDeviceWithPlacementRequest.h:220
Aws::IoT1ClickProjects::Model::AssociateDeviceWithPlacementRequest::SetPlacementName
void SetPlacementName(const char *value)
Definition: AssociateDeviceWithPlacementRequest.h:107
Aws::IoT1ClickProjects::Model::AssociateDeviceWithPlacementRequest::SetPlacementName
void SetPlacementName(Aws::String &&value)
Definition: AssociateDeviceWithPlacementRequest.h:102
Aws::IoT1ClickProjects::Model::AssociateDeviceWithPlacementRequest::AssociateDeviceWithPlacementRequest
AssociateDeviceWithPlacementRequest()
Aws::IoT1ClickProjects::Model::AssociateDeviceWithPlacementRequest::GetDeviceId
const Aws::String & GetDeviceId() const
Definition: AssociateDeviceWithPlacementRequest.h:130