AWS SDK for C++  1.9.109
AWS SDK for C++
RegisterDevicesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace SageMaker
18 {
19 namespace Model
20 {
21 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "RegisterDevices"; }
34 
35  Aws::String SerializePayload() const override;
36 
38 
39 
43  inline const Aws::String& GetDeviceFleetName() const{ return m_deviceFleetName; }
44 
48  inline bool DeviceFleetNameHasBeenSet() const { return m_deviceFleetNameHasBeenSet; }
49 
53  inline void SetDeviceFleetName(const Aws::String& value) { m_deviceFleetNameHasBeenSet = true; m_deviceFleetName = value; }
54 
58  inline void SetDeviceFleetName(Aws::String&& value) { m_deviceFleetNameHasBeenSet = true; m_deviceFleetName = std::move(value); }
59 
63  inline void SetDeviceFleetName(const char* value) { m_deviceFleetNameHasBeenSet = true; m_deviceFleetName.assign(value); }
64 
68  inline RegisterDevicesRequest& WithDeviceFleetName(const Aws::String& value) { SetDeviceFleetName(value); return *this;}
69 
73  inline RegisterDevicesRequest& WithDeviceFleetName(Aws::String&& value) { SetDeviceFleetName(std::move(value)); return *this;}
74 
78  inline RegisterDevicesRequest& WithDeviceFleetName(const char* value) { SetDeviceFleetName(value); return *this;}
79 
80 
84  inline const Aws::Vector<Device>& GetDevices() const{ return m_devices; }
85 
89  inline bool DevicesHasBeenSet() const { return m_devicesHasBeenSet; }
90 
94  inline void SetDevices(const Aws::Vector<Device>& value) { m_devicesHasBeenSet = true; m_devices = value; }
95 
99  inline void SetDevices(Aws::Vector<Device>&& value) { m_devicesHasBeenSet = true; m_devices = std::move(value); }
100 
104  inline RegisterDevicesRequest& WithDevices(const Aws::Vector<Device>& value) { SetDevices(value); return *this;}
105 
109  inline RegisterDevicesRequest& WithDevices(Aws::Vector<Device>&& value) { SetDevices(std::move(value)); return *this;}
110 
114  inline RegisterDevicesRequest& AddDevices(const Device& value) { m_devicesHasBeenSet = true; m_devices.push_back(value); return *this; }
115 
119  inline RegisterDevicesRequest& AddDevices(Device&& value) { m_devicesHasBeenSet = true; m_devices.push_back(std::move(value)); return *this; }
120 
121 
125  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
126 
130  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
131 
135  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
136 
140  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
141 
145  inline RegisterDevicesRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
146 
150  inline RegisterDevicesRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
151 
155  inline RegisterDevicesRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
156 
160  inline RegisterDevicesRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
161 
162  private:
163 
164  Aws::String m_deviceFleetName;
165  bool m_deviceFleetNameHasBeenSet;
166 
167  Aws::Vector<Device> m_devices;
168  bool m_devicesHasBeenSet;
169 
170  Aws::Vector<Tag> m_tags;
171  bool m_tagsHasBeenSet;
172  };
173 
174 } // namespace Model
175 } // namespace SageMaker
176 } // namespace Aws
Aws::SageMaker::Model::RegisterDevicesRequest::WithDeviceFleetName
RegisterDevicesRequest & WithDeviceFleetName(const Aws::String &value)
Definition: RegisterDevicesRequest.h:68
Aws::SageMaker::Model::Tag
Definition: Tag.h:44
Aws::SavingsPlans::Model::SavingsPlanProductType::NOT_SET
@ NOT_SET
Aws::SageMaker::Model::RegisterDevicesRequest::WithTags
RegisterDevicesRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: RegisterDevicesRequest.h:145
Aws::SageMaker::Model::RegisterDevicesRequest::DevicesHasBeenSet
bool DevicesHasBeenSet() const
Definition: RegisterDevicesRequest.h:89
Aws::SageMaker::Model::RegisterDevicesRequest::SetDeviceFleetName
void SetDeviceFleetName(const char *value)
Definition: RegisterDevicesRequest.h:63
SageMaker_EXPORTS.h
Aws::SageMaker::Model::RegisterDevicesRequest::WithDevices
RegisterDevicesRequest & WithDevices(const Aws::Vector< Device > &value)
Definition: RegisterDevicesRequest.h:104
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::SageMaker::Model::Device
Definition: Device.h:32
Aws::SageMaker::Model::RegisterDevicesRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: RegisterDevicesRequest.h:140
Aws::SageMaker::Model::RegisterDevicesRequest::WithDeviceFleetName
RegisterDevicesRequest & WithDeviceFleetName(const char *value)
Definition: RegisterDevicesRequest.h:78
Aws::SageMaker::Model::RegisterDevicesRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: RegisterDevicesRequest.h:125
Aws::SageMaker::Model::RegisterDevicesRequest::WithTags
RegisterDevicesRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: RegisterDevicesRequest.h:150
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::SageMaker::Model::RegisterDevicesRequest::AddTags
RegisterDevicesRequest & AddTags(Tag &&value)
Definition: RegisterDevicesRequest.h:160
AWSVector.h
Aws::SageMaker::Model::RegisterDevicesRequest::SetDeviceFleetName
void SetDeviceFleetName(Aws::String &&value)
Definition: RegisterDevicesRequest.h:58
Aws::SageMaker::SageMakerRequest
Definition: SageMakerRequest.h:17
Aws::SageMaker::Model::RegisterDevicesRequest::AddDevices
RegisterDevicesRequest & AddDevices(const Device &value)
Definition: RegisterDevicesRequest.h:114
AWS_SAGEMAKER_API
#define AWS_SAGEMAKER_API
Definition: SageMaker_EXPORTS.h:28
Aws::SageMaker::Model::RegisterDevicesRequest::SetDevices
void SetDevices(Aws::Vector< Device > &&value)
Definition: RegisterDevicesRequest.h:99
Aws::SageMaker::Model::RegisterDevicesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: RegisterDevicesRequest.h:33
Aws::SageMaker::Model::RegisterDevicesRequest::WithDeviceFleetName
RegisterDevicesRequest & WithDeviceFleetName(Aws::String &&value)
Definition: RegisterDevicesRequest.h:73
Aws::SageMaker::Model::RegisterDevicesRequest::SerializePayload
Aws::String SerializePayload() const override
AWSString.h
Aws::SageMaker::Model::RegisterDevicesRequest::SetDevices
void SetDevices(const Aws::Vector< Device > &value)
Definition: RegisterDevicesRequest.h:94
Tag.h
Aws::SageMaker::Model::RegisterDevicesRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: RegisterDevicesRequest.h:130
Aws::SageMaker::Model::RegisterDevicesRequest::RegisterDevicesRequest
RegisterDevicesRequest()
Aws::SageMaker::Model::RegisterDevicesRequest::WithDevices
RegisterDevicesRequest & WithDevices(Aws::Vector< Device > &&value)
Definition: RegisterDevicesRequest.h:109
Aws::SageMaker::Model::RegisterDevicesRequest::GetDeviceFleetName
const Aws::String & GetDeviceFleetName() const
Definition: RegisterDevicesRequest.h:43
Aws
Definition: AccessManagementClient.h:15
Aws::SageMaker::Model::RegisterDevicesRequest::SetDeviceFleetName
void SetDeviceFleetName(const Aws::String &value)
Definition: RegisterDevicesRequest.h:53
Aws::SageMaker::Model::RegisterDevicesRequest::AddTags
RegisterDevicesRequest & AddTags(const Tag &value)
Definition: RegisterDevicesRequest.h:155
Aws::SageMaker::Model::RegisterDevicesRequest
Definition: RegisterDevicesRequest.h:25
SageMakerRequest.h
Aws::SageMaker::Model::RegisterDevicesRequest::AddDevices
RegisterDevicesRequest & AddDevices(Device &&value)
Definition: RegisterDevicesRequest.h:119
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SageMaker::Model::RegisterDevicesRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: RegisterDevicesRequest.h:135
Aws::SageMaker::Model::RegisterDevicesRequest::GetDevices
const Aws::Vector< Device > & GetDevices() const
Definition: RegisterDevicesRequest.h:84
Device.h
Aws::SageMaker::Model::RegisterDevicesRequest::DeviceFleetNameHasBeenSet
bool DeviceFleetNameHasBeenSet() const
Definition: RegisterDevicesRequest.h:48
Aws::SageMaker::Model::RegisterDevicesRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override