AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
RegisterDevicesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/sagemaker/SageMakerRequest.h>
10#include <aws/sagemaker/SageMaker_EXPORTS.h>
11#include <aws/sagemaker/model/Device.h>
12#include <aws/sagemaker/model/Tag.h>
13
14#include <utility>
15
16namespace Aws {
17namespace SageMaker {
18namespace Model {
19
23 public:
24 AWS_SAGEMAKER_API RegisterDevicesRequest() = default;
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 "RegisterDevices"; }
31
32 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
33
35
37
40 inline const Aws::String& GetDeviceFleetName() const { return m_deviceFleetName; }
41 inline bool DeviceFleetNameHasBeenSet() const { return m_deviceFleetNameHasBeenSet; }
42 template <typename DeviceFleetNameT = Aws::String>
43 void SetDeviceFleetName(DeviceFleetNameT&& value) {
44 m_deviceFleetNameHasBeenSet = true;
45 m_deviceFleetName = std::forward<DeviceFleetNameT>(value);
46 }
47 template <typename DeviceFleetNameT = Aws::String>
48 RegisterDevicesRequest& WithDeviceFleetName(DeviceFleetNameT&& value) {
49 SetDeviceFleetName(std::forward<DeviceFleetNameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Vector<Device>& GetDevices() const { return m_devices; }
59 inline bool DevicesHasBeenSet() const { return m_devicesHasBeenSet; }
60 template <typename DevicesT = Aws::Vector<Device>>
61 void SetDevices(DevicesT&& value) {
62 m_devicesHasBeenSet = true;
63 m_devices = std::forward<DevicesT>(value);
64 }
65 template <typename DevicesT = Aws::Vector<Device>>
67 SetDevices(std::forward<DevicesT>(value));
68 return *this;
69 }
70 template <typename DevicesT = Device>
72 m_devicesHasBeenSet = true;
73 m_devices.emplace_back(std::forward<DevicesT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
83 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
84 template <typename TagsT = Aws::Vector<Tag>>
85 void SetTags(TagsT&& value) {
86 m_tagsHasBeenSet = true;
87 m_tags = std::forward<TagsT>(value);
88 }
89 template <typename TagsT = Aws::Vector<Tag>>
91 SetTags(std::forward<TagsT>(value));
92 return *this;
93 }
94 template <typename TagsT = Tag>
96 m_tagsHasBeenSet = true;
97 m_tags.emplace_back(std::forward<TagsT>(value));
98 return *this;
99 }
101 private:
102 Aws::String m_deviceFleetName;
103
104 Aws::Vector<Device> m_devices;
105
106 Aws::Vector<Tag> m_tags;
107 bool m_deviceFleetNameHasBeenSet = false;
108 bool m_devicesHasBeenSet = false;
109 bool m_tagsHasBeenSet = false;
110};
111
112} // namespace Model
113} // namespace SageMaker
114} // namespace Aws
AWS_SAGEMAKER_API RegisterDevicesRequest()=default
RegisterDevicesRequest & WithDevices(DevicesT &&value)
RegisterDevicesRequest & AddTags(TagsT &&value)
RegisterDevicesRequest & WithDeviceFleetName(DeviceFleetNameT &&value)
const Aws::Vector< Device > & GetDevices() const
virtual const char * GetServiceRequestName() const override
RegisterDevicesRequest & WithTags(TagsT &&value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
RegisterDevicesRequest & AddDevices(DevicesT &&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