AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename GlobalNetworkIdT = Aws::String>
46 void SetGlobalNetworkId(GlobalNetworkIdT&& value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId = std::forward<GlobalNetworkIdT>(value); }
47 template<typename GlobalNetworkIdT = Aws::String>
48 CreateDeviceRequest& WithGlobalNetworkId(GlobalNetworkIdT&& value) { SetGlobalNetworkId(std::forward<GlobalNetworkIdT>(value)); return *this;}
50
52
56 inline const AWSLocation& GetAWSLocation() const { return m_aWSLocation; }
57 inline bool AWSLocationHasBeenSet() const { return m_aWSLocationHasBeenSet; }
58 template<typename AWSLocationT = AWSLocation>
59 void SetAWSLocation(AWSLocationT&& value) { m_aWSLocationHasBeenSet = true; m_aWSLocation = std::forward<AWSLocationT>(value); }
60 template<typename AWSLocationT = AWSLocation>
61 CreateDeviceRequest& WithAWSLocation(AWSLocationT&& value) { SetAWSLocation(std::forward<AWSLocationT>(value)); return *this;}
63
65
69 inline const Aws::String& GetDescription() const { return m_description; }
70 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
71 template<typename DescriptionT = Aws::String>
72 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
73 template<typename DescriptionT = Aws::String>
74 CreateDeviceRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
76
78
81 inline const Aws::String& GetType() const { return m_type; }
82 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
83 template<typename TypeT = Aws::String>
84 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
85 template<typename TypeT = Aws::String>
86 CreateDeviceRequest& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
88
90
94 inline const Aws::String& GetVendor() const { return m_vendor; }
95 inline bool VendorHasBeenSet() const { return m_vendorHasBeenSet; }
96 template<typename VendorT = Aws::String>
97 void SetVendor(VendorT&& value) { m_vendorHasBeenSet = true; m_vendor = std::forward<VendorT>(value); }
98 template<typename VendorT = Aws::String>
99 CreateDeviceRequest& WithVendor(VendorT&& value) { SetVendor(std::forward<VendorT>(value)); return *this;}
101
103
107 inline const Aws::String& GetModel() const { return m_model; }
108 inline bool ModelHasBeenSet() const { return m_modelHasBeenSet; }
109 template<typename ModelT = Aws::String>
110 void SetModel(ModelT&& value) { m_modelHasBeenSet = true; m_model = std::forward<ModelT>(value); }
111 template<typename ModelT = Aws::String>
112 CreateDeviceRequest& WithModel(ModelT&& value) { SetModel(std::forward<ModelT>(value)); return *this;}
114
116
120 inline const Aws::String& GetSerialNumber() const { return m_serialNumber; }
121 inline bool SerialNumberHasBeenSet() const { return m_serialNumberHasBeenSet; }
122 template<typename SerialNumberT = Aws::String>
123 void SetSerialNumber(SerialNumberT&& value) { m_serialNumberHasBeenSet = true; m_serialNumber = std::forward<SerialNumberT>(value); }
124 template<typename SerialNumberT = Aws::String>
125 CreateDeviceRequest& WithSerialNumber(SerialNumberT&& value) { SetSerialNumber(std::forward<SerialNumberT>(value)); return *this;}
127
129
132 inline const Location& GetLocation() const { return m_location; }
133 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
134 template<typename LocationT = Location>
135 void SetLocation(LocationT&& value) { m_locationHasBeenSet = true; m_location = std::forward<LocationT>(value); }
136 template<typename LocationT = Location>
137 CreateDeviceRequest& WithLocation(LocationT&& value) { SetLocation(std::forward<LocationT>(value)); return *this;}
139
141
144 inline const Aws::String& GetSiteId() const { return m_siteId; }
145 inline bool SiteIdHasBeenSet() const { return m_siteIdHasBeenSet; }
146 template<typename SiteIdT = Aws::String>
147 void SetSiteId(SiteIdT&& value) { m_siteIdHasBeenSet = true; m_siteId = std::forward<SiteIdT>(value); }
148 template<typename SiteIdT = Aws::String>
149 CreateDeviceRequest& WithSiteId(SiteIdT&& value) { SetSiteId(std::forward<SiteIdT>(value)); return *this;}
151
153
156 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
157 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
158 template<typename TagsT = Aws::Vector<Tag>>
159 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
160 template<typename TagsT = Aws::Vector<Tag>>
161 CreateDeviceRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
162 template<typename TagsT = Tag>
163 CreateDeviceRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
165 private:
166
167 Aws::String m_globalNetworkId;
168 bool m_globalNetworkIdHasBeenSet = false;
169
170 AWSLocation m_aWSLocation;
171 bool m_aWSLocationHasBeenSet = false;
172
173 Aws::String m_description;
174 bool m_descriptionHasBeenSet = false;
175
176 Aws::String m_type;
177 bool m_typeHasBeenSet = false;
178
179 Aws::String m_vendor;
180 bool m_vendorHasBeenSet = false;
181
182 Aws::String m_model;
183 bool m_modelHasBeenSet = false;
184
185 Aws::String m_serialNumber;
186 bool m_serialNumberHasBeenSet = false;
187
188 Location m_location;
189 bool m_locationHasBeenSet = false;
190
191 Aws::String m_siteId;
192 bool m_siteIdHasBeenSet = false;
193
194 Aws::Vector<Tag> m_tags;
195 bool m_tagsHasBeenSet = false;
196 };
197
198} // namespace Model
199} // namespace NetworkManager
200} // namespace Aws
CreateDeviceRequest & WithType(TypeT &&value)
CreateDeviceRequest & WithAWSLocation(AWSLocationT &&value)
CreateDeviceRequest & WithTags(TagsT &&value)
CreateDeviceRequest & WithDescription(DescriptionT &&value)
CreateDeviceRequest & WithSerialNumber(SerialNumberT &&value)
CreateDeviceRequest & WithModel(ModelT &&value)
CreateDeviceRequest & WithVendor(VendorT &&value)
CreateDeviceRequest & WithSiteId(SiteIdT &&value)
AWS_NETWORKMANAGER_API CreateDeviceRequest()=default
CreateDeviceRequest & WithGlobalNetworkId(GlobalNetworkIdT &&value)
CreateDeviceRequest & AddTags(TagsT &&value)
CreateDeviceRequest & WithLocation(LocationT &&value)
AWS_NETWORKMANAGER_API Aws::String SerializePayload() const override
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