AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
UpdateDevicesRequest.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
13#include <utility>
14
15namespace Aws {
16namespace SageMaker {
17namespace Model {
18
22 public:
23 AWS_SAGEMAKER_API UpdateDevicesRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdateDevices"; }
30
31 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
32
34
36
39 inline const Aws::String& GetDeviceFleetName() const { return m_deviceFleetName; }
40 inline bool DeviceFleetNameHasBeenSet() const { return m_deviceFleetNameHasBeenSet; }
41 template <typename DeviceFleetNameT = Aws::String>
42 void SetDeviceFleetName(DeviceFleetNameT&& value) {
43 m_deviceFleetNameHasBeenSet = true;
44 m_deviceFleetName = std::forward<DeviceFleetNameT>(value);
45 }
46 template <typename DeviceFleetNameT = Aws::String>
47 UpdateDevicesRequest& WithDeviceFleetName(DeviceFleetNameT&& value) {
48 SetDeviceFleetName(std::forward<DeviceFleetNameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::Vector<Device>& GetDevices() const { return m_devices; }
58 inline bool DevicesHasBeenSet() const { return m_devicesHasBeenSet; }
59 template <typename DevicesT = Aws::Vector<Device>>
60 void SetDevices(DevicesT&& value) {
61 m_devicesHasBeenSet = true;
62 m_devices = std::forward<DevicesT>(value);
63 }
64 template <typename DevicesT = Aws::Vector<Device>>
65 UpdateDevicesRequest& WithDevices(DevicesT&& value) {
66 SetDevices(std::forward<DevicesT>(value));
67 return *this;
68 }
69 template <typename DevicesT = Device>
70 UpdateDevicesRequest& AddDevices(DevicesT&& value) {
71 m_devicesHasBeenSet = true;
72 m_devices.emplace_back(std::forward<DevicesT>(value));
73 return *this;
74 }
76 private:
77 Aws::String m_deviceFleetName;
78
79 Aws::Vector<Device> m_devices;
80 bool m_deviceFleetNameHasBeenSet = false;
81 bool m_devicesHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace SageMaker
86} // namespace Aws
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
UpdateDevicesRequest & WithDeviceFleetName(DeviceFleetNameT &&value)
const Aws::Vector< Device > & GetDevices() const
void SetDeviceFleetName(DeviceFleetNameT &&value)
AWS_SAGEMAKER_API UpdateDevicesRequest()=default
virtual const char * GetServiceRequestName() const override
UpdateDevicesRequest & AddDevices(DevicesT &&value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateDevicesRequest & WithDevices(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