AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename DeviceFleetNameT = Aws::String>
47 void SetDeviceFleetName(DeviceFleetNameT&& value) { m_deviceFleetNameHasBeenSet = true; m_deviceFleetName = std::forward<DeviceFleetNameT>(value); }
48 template<typename DeviceFleetNameT = Aws::String>
49 RegisterDevicesRequest& WithDeviceFleetName(DeviceFleetNameT&& value) { SetDeviceFleetName(std::forward<DeviceFleetNameT>(value)); return *this;}
51
53
56 inline const Aws::Vector<Device>& GetDevices() const { return m_devices; }
57 inline bool DevicesHasBeenSet() const { return m_devicesHasBeenSet; }
58 template<typename DevicesT = Aws::Vector<Device>>
59 void SetDevices(DevicesT&& value) { m_devicesHasBeenSet = true; m_devices = std::forward<DevicesT>(value); }
60 template<typename DevicesT = Aws::Vector<Device>>
61 RegisterDevicesRequest& WithDevices(DevicesT&& value) { SetDevices(std::forward<DevicesT>(value)); return *this;}
62 template<typename DevicesT = Device>
63 RegisterDevicesRequest& AddDevices(DevicesT&& value) { m_devicesHasBeenSet = true; m_devices.emplace_back(std::forward<DevicesT>(value)); return *this; }
65
67
70 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
71 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
72 template<typename TagsT = Aws::Vector<Tag>>
73 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
74 template<typename TagsT = Aws::Vector<Tag>>
75 RegisterDevicesRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
76 template<typename TagsT = Tag>
77 RegisterDevicesRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
79 private:
80
81 Aws::String m_deviceFleetName;
82 bool m_deviceFleetNameHasBeenSet = false;
83
84 Aws::Vector<Device> m_devices;
85 bool m_devicesHasBeenSet = false;
86
87 Aws::Vector<Tag> m_tags;
88 bool m_tagsHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace SageMaker
93} // 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