AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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