AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateDeviceRequest.h
1
6#pragma once
7#include <aws/networkmanager/NetworkManager_EXPORTS.h>
8#include <aws/networkmanager/NetworkManagerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/networkmanager/model/AWSLocation.h>
11#include <aws/networkmanager/model/Location.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/networkmanager/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace NetworkManager
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_NETWORKMANAGER_API CreateDeviceRequest();
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 "CreateDevice"; }
35
36 AWS_NETWORKMANAGER_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Aws::String& GetGlobalNetworkId() const{ return m_globalNetworkId; }
44 inline bool GlobalNetworkIdHasBeenSet() const { return m_globalNetworkIdHasBeenSet; }
45 inline void SetGlobalNetworkId(const Aws::String& value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId = value; }
46 inline void SetGlobalNetworkId(Aws::String&& value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId = std::move(value); }
47 inline void SetGlobalNetworkId(const char* value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId.assign(value); }
48 inline CreateDeviceRequest& WithGlobalNetworkId(const Aws::String& value) { SetGlobalNetworkId(value); return *this;}
49 inline CreateDeviceRequest& WithGlobalNetworkId(Aws::String&& value) { SetGlobalNetworkId(std::move(value)); return *this;}
50 inline CreateDeviceRequest& WithGlobalNetworkId(const char* value) { SetGlobalNetworkId(value); return *this;}
52
54
58 inline const AWSLocation& GetAWSLocation() const{ return m_aWSLocation; }
59 inline bool AWSLocationHasBeenSet() const { return m_aWSLocationHasBeenSet; }
60 inline void SetAWSLocation(const AWSLocation& value) { m_aWSLocationHasBeenSet = true; m_aWSLocation = value; }
61 inline void SetAWSLocation(AWSLocation&& value) { m_aWSLocationHasBeenSet = true; m_aWSLocation = std::move(value); }
62 inline CreateDeviceRequest& WithAWSLocation(const AWSLocation& value) { SetAWSLocation(value); return *this;}
63 inline CreateDeviceRequest& WithAWSLocation(AWSLocation&& value) { SetAWSLocation(std::move(value)); return *this;}
65
67
71 inline const Aws::String& GetDescription() const{ return m_description; }
72 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
73 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
74 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
75 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
76 inline CreateDeviceRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
77 inline CreateDeviceRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
78 inline CreateDeviceRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
80
82
85 inline const Aws::String& GetType() const{ return m_type; }
86 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
87 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
88 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
89 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
90 inline CreateDeviceRequest& WithType(const Aws::String& value) { SetType(value); return *this;}
91 inline CreateDeviceRequest& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
92 inline CreateDeviceRequest& WithType(const char* value) { SetType(value); return *this;}
94
96
100 inline const Aws::String& GetVendor() const{ return m_vendor; }
101 inline bool VendorHasBeenSet() const { return m_vendorHasBeenSet; }
102 inline void SetVendor(const Aws::String& value) { m_vendorHasBeenSet = true; m_vendor = value; }
103 inline void SetVendor(Aws::String&& value) { m_vendorHasBeenSet = true; m_vendor = std::move(value); }
104 inline void SetVendor(const char* value) { m_vendorHasBeenSet = true; m_vendor.assign(value); }
105 inline CreateDeviceRequest& WithVendor(const Aws::String& value) { SetVendor(value); return *this;}
106 inline CreateDeviceRequest& WithVendor(Aws::String&& value) { SetVendor(std::move(value)); return *this;}
107 inline CreateDeviceRequest& WithVendor(const char* value) { SetVendor(value); return *this;}
109
111
115 inline const Aws::String& GetModel() const{ return m_model; }
116 inline bool ModelHasBeenSet() const { return m_modelHasBeenSet; }
117 inline void SetModel(const Aws::String& value) { m_modelHasBeenSet = true; m_model = value; }
118 inline void SetModel(Aws::String&& value) { m_modelHasBeenSet = true; m_model = std::move(value); }
119 inline void SetModel(const char* value) { m_modelHasBeenSet = true; m_model.assign(value); }
120 inline CreateDeviceRequest& WithModel(const Aws::String& value) { SetModel(value); return *this;}
121 inline CreateDeviceRequest& WithModel(Aws::String&& value) { SetModel(std::move(value)); return *this;}
122 inline CreateDeviceRequest& WithModel(const char* value) { SetModel(value); return *this;}
124
126
130 inline const Aws::String& GetSerialNumber() const{ return m_serialNumber; }
131 inline bool SerialNumberHasBeenSet() const { return m_serialNumberHasBeenSet; }
132 inline void SetSerialNumber(const Aws::String& value) { m_serialNumberHasBeenSet = true; m_serialNumber = value; }
133 inline void SetSerialNumber(Aws::String&& value) { m_serialNumberHasBeenSet = true; m_serialNumber = std::move(value); }
134 inline void SetSerialNumber(const char* value) { m_serialNumberHasBeenSet = true; m_serialNumber.assign(value); }
135 inline CreateDeviceRequest& WithSerialNumber(const Aws::String& value) { SetSerialNumber(value); return *this;}
136 inline CreateDeviceRequest& WithSerialNumber(Aws::String&& value) { SetSerialNumber(std::move(value)); return *this;}
137 inline CreateDeviceRequest& WithSerialNumber(const char* value) { SetSerialNumber(value); return *this;}
139
141
144 inline const Location& GetLocation() const{ return m_location; }
145 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
146 inline void SetLocation(const Location& value) { m_locationHasBeenSet = true; m_location = value; }
147 inline void SetLocation(Location&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
148 inline CreateDeviceRequest& WithLocation(const Location& value) { SetLocation(value); return *this;}
149 inline CreateDeviceRequest& WithLocation(Location&& value) { SetLocation(std::move(value)); return *this;}
151
153
156 inline const Aws::String& GetSiteId() const{ return m_siteId; }
157 inline bool SiteIdHasBeenSet() const { return m_siteIdHasBeenSet; }
158 inline void SetSiteId(const Aws::String& value) { m_siteIdHasBeenSet = true; m_siteId = value; }
159 inline void SetSiteId(Aws::String&& value) { m_siteIdHasBeenSet = true; m_siteId = std::move(value); }
160 inline void SetSiteId(const char* value) { m_siteIdHasBeenSet = true; m_siteId.assign(value); }
161 inline CreateDeviceRequest& WithSiteId(const Aws::String& value) { SetSiteId(value); return *this;}
162 inline CreateDeviceRequest& WithSiteId(Aws::String&& value) { SetSiteId(std::move(value)); return *this;}
163 inline CreateDeviceRequest& WithSiteId(const char* value) { SetSiteId(value); return *this;}
165
167
170 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
171 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
172 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
173 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
174 inline CreateDeviceRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
175 inline CreateDeviceRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
176 inline CreateDeviceRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
177 inline CreateDeviceRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
179 private:
180
181 Aws::String m_globalNetworkId;
182 bool m_globalNetworkIdHasBeenSet = false;
183
184 AWSLocation m_aWSLocation;
185 bool m_aWSLocationHasBeenSet = false;
186
187 Aws::String m_description;
188 bool m_descriptionHasBeenSet = false;
189
190 Aws::String m_type;
191 bool m_typeHasBeenSet = false;
192
193 Aws::String m_vendor;
194 bool m_vendorHasBeenSet = false;
195
196 Aws::String m_model;
197 bool m_modelHasBeenSet = false;
198
199 Aws::String m_serialNumber;
200 bool m_serialNumberHasBeenSet = false;
201
202 Location m_location;
203 bool m_locationHasBeenSet = false;
204
205 Aws::String m_siteId;
206 bool m_siteIdHasBeenSet = false;
207
208 Aws::Vector<Tag> m_tags;
209 bool m_tagsHasBeenSet = false;
210 };
211
212} // namespace Model
213} // namespace NetworkManager
214} // namespace Aws
CreateDeviceRequest & WithSiteId(Aws::String &&value)
CreateDeviceRequest & WithSerialNumber(Aws::String &&value)
CreateDeviceRequest & WithGlobalNetworkId(const char *value)
void SetTags(const Aws::Vector< Tag > &value)
CreateDeviceRequest & WithType(Aws::String &&value)
CreateDeviceRequest & WithVendor(const char *value)
CreateDeviceRequest & WithDescription(const Aws::String &value)
CreateDeviceRequest & WithTags(Aws::Vector< Tag > &&value)
CreateDeviceRequest & WithSiteId(const Aws::String &value)
CreateDeviceRequest & WithAWSLocation(const AWSLocation &value)
CreateDeviceRequest & WithType(const char *value)
CreateDeviceRequest & WithLocation(Location &&value)
CreateDeviceRequest & WithModel(const Aws::String &value)
CreateDeviceRequest & AddTags(const Tag &value)
CreateDeviceRequest & WithModel(Aws::String &&value)
CreateDeviceRequest & WithType(const Aws::String &value)
CreateDeviceRequest & WithDescription(Aws::String &&value)
CreateDeviceRequest & WithSerialNumber(const char *value)
CreateDeviceRequest & WithAWSLocation(AWSLocation &&value)
CreateDeviceRequest & WithSerialNumber(const Aws::String &value)
CreateDeviceRequest & WithVendor(Aws::String &&value)
CreateDeviceRequest & WithTags(const Aws::Vector< Tag > &value)
CreateDeviceRequest & WithModel(const char *value)
CreateDeviceRequest & WithGlobalNetworkId(Aws::String &&value)
CreateDeviceRequest & WithLocation(const Location &value)
AWS_NETWORKMANAGER_API Aws::String SerializePayload() const override
CreateDeviceRequest & WithSiteId(const char *value)
CreateDeviceRequest & WithVendor(const Aws::String &value)
CreateDeviceRequest & WithGlobalNetworkId(const Aws::String &value)
CreateDeviceRequest & WithDescription(const char *value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector