AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RegisterDevicesRequest.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/SageMakerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/sagemaker/model/Device.h>
12#include <aws/sagemaker/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace SageMaker
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_SAGEMAKER_API RegisterDevicesRequest();
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_SAGEMAKER_API Aws::String SerializePayload() const override;
36
38
39
41
44 inline const Aws::String& GetDeviceFleetName() const{ return m_deviceFleetName; }
45 inline bool DeviceFleetNameHasBeenSet() const { return m_deviceFleetNameHasBeenSet; }
46 inline void SetDeviceFleetName(const Aws::String& value) { m_deviceFleetNameHasBeenSet = true; m_deviceFleetName = value; }
47 inline void SetDeviceFleetName(Aws::String&& value) { m_deviceFleetNameHasBeenSet = true; m_deviceFleetName = std::move(value); }
48 inline void SetDeviceFleetName(const char* value) { m_deviceFleetNameHasBeenSet = true; m_deviceFleetName.assign(value); }
49 inline RegisterDevicesRequest& WithDeviceFleetName(const Aws::String& value) { SetDeviceFleetName(value); return *this;}
50 inline RegisterDevicesRequest& WithDeviceFleetName(Aws::String&& value) { SetDeviceFleetName(std::move(value)); return *this;}
51 inline RegisterDevicesRequest& WithDeviceFleetName(const char* value) { SetDeviceFleetName(value); return *this;}
53
55
58 inline const Aws::Vector<Device>& GetDevices() const{ return m_devices; }
59 inline bool DevicesHasBeenSet() const { return m_devicesHasBeenSet; }
60 inline void SetDevices(const Aws::Vector<Device>& value) { m_devicesHasBeenSet = true; m_devices = value; }
61 inline void SetDevices(Aws::Vector<Device>&& value) { m_devicesHasBeenSet = true; m_devices = std::move(value); }
62 inline RegisterDevicesRequest& WithDevices(const Aws::Vector<Device>& value) { SetDevices(value); return *this;}
63 inline RegisterDevicesRequest& WithDevices(Aws::Vector<Device>&& value) { SetDevices(std::move(value)); return *this;}
64 inline RegisterDevicesRequest& AddDevices(const Device& value) { m_devicesHasBeenSet = true; m_devices.push_back(value); return *this; }
65 inline RegisterDevicesRequest& AddDevices(Device&& value) { m_devicesHasBeenSet = true; m_devices.push_back(std::move(value)); return *this; }
67
69
72 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
73 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
74 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
75 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
76 inline RegisterDevicesRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
77 inline RegisterDevicesRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
78 inline RegisterDevicesRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
79 inline RegisterDevicesRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
81 private:
82
83 Aws::String m_deviceFleetName;
84 bool m_deviceFleetNameHasBeenSet = false;
85
86 Aws::Vector<Device> m_devices;
87 bool m_devicesHasBeenSet = false;
88
89 Aws::Vector<Tag> m_tags;
90 bool m_tagsHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace SageMaker
95} // namespace Aws
RegisterDevicesRequest & WithDeviceFleetName(const Aws::String &value)
RegisterDevicesRequest & AddTags(Tag &&value)
RegisterDevicesRequest & WithDevices(const Aws::Vector< Device > &value)
RegisterDevicesRequest & AddTags(const Tag &value)
RegisterDevicesRequest & WithDeviceFleetName(const char *value)
const Aws::Vector< Device > & GetDevices() const
RegisterDevicesRequest & WithTags(Aws::Vector< Tag > &&value)
virtual const char * GetServiceRequestName() const override
RegisterDevicesRequest & WithDevices(Aws::Vector< Device > &&value)
RegisterDevicesRequest & AddDevices(const Device &value)
RegisterDevicesRequest & AddDevices(Device &&value)
void SetDevices(const Aws::Vector< Device > &value)
void SetDevices(Aws::Vector< Device > &&value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
RegisterDevicesRequest & WithDeviceFleetName(Aws::String &&value)
void SetTags(const Aws::Vector< Tag > &value)
RegisterDevicesRequest & WithTags(const Aws::Vector< Tag > &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector