AWS SDK for C++  1.9.154
AWS SDK for C++
UpdateDevicesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace SageMaker
17 {
18 namespace Model
19 {
20 
24  {
25  public:
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::String SerializePayload() const override;
35 
37 
38 
42  inline const Aws::String& GetDeviceFleetName() const{ return m_deviceFleetName; }
43 
47  inline bool DeviceFleetNameHasBeenSet() const { return m_deviceFleetNameHasBeenSet; }
48 
52  inline void SetDeviceFleetName(const Aws::String& value) { m_deviceFleetNameHasBeenSet = true; m_deviceFleetName = value; }
53 
57  inline void SetDeviceFleetName(Aws::String&& value) { m_deviceFleetNameHasBeenSet = true; m_deviceFleetName = std::move(value); }
58 
62  inline void SetDeviceFleetName(const char* value) { m_deviceFleetNameHasBeenSet = true; m_deviceFleetName.assign(value); }
63 
67  inline UpdateDevicesRequest& WithDeviceFleetName(const Aws::String& value) { SetDeviceFleetName(value); return *this;}
68 
72  inline UpdateDevicesRequest& WithDeviceFleetName(Aws::String&& value) { SetDeviceFleetName(std::move(value)); return *this;}
73 
77  inline UpdateDevicesRequest& WithDeviceFleetName(const char* value) { SetDeviceFleetName(value); return *this;}
78 
79 
83  inline const Aws::Vector<Device>& GetDevices() const{ return m_devices; }
84 
88  inline bool DevicesHasBeenSet() const { return m_devicesHasBeenSet; }
89 
93  inline void SetDevices(const Aws::Vector<Device>& value) { m_devicesHasBeenSet = true; m_devices = value; }
94 
98  inline void SetDevices(Aws::Vector<Device>&& value) { m_devicesHasBeenSet = true; m_devices = std::move(value); }
99 
103  inline UpdateDevicesRequest& WithDevices(const Aws::Vector<Device>& value) { SetDevices(value); return *this;}
104 
108  inline UpdateDevicesRequest& WithDevices(Aws::Vector<Device>&& value) { SetDevices(std::move(value)); return *this;}
109 
113  inline UpdateDevicesRequest& AddDevices(const Device& value) { m_devicesHasBeenSet = true; m_devices.push_back(value); return *this; }
114 
118  inline UpdateDevicesRequest& AddDevices(Device&& value) { m_devicesHasBeenSet = true; m_devices.push_back(std::move(value)); return *this; }
119 
120  private:
121 
122  Aws::String m_deviceFleetName;
123  bool m_deviceFleetNameHasBeenSet;
124 
125  Aws::Vector<Device> m_devices;
126  bool m_devicesHasBeenSet;
127  };
128 
129 } // namespace Model
130 } // namespace SageMaker
131 } // namespace Aws
Aws::SageMaker::Model::UpdateDevicesRequest::GetDevices
const Aws::Vector< Device > & GetDevices() const
Definition: UpdateDevicesRequest.h:83
Aws::SavingsPlans::Model::SavingsPlanProductType::NOT_SET
@ NOT_SET
SageMaker_EXPORTS.h
Aws::SageMaker::Model::UpdateDevicesRequest::SetDevices
void SetDevices(const Aws::Vector< Device > &value)
Definition: UpdateDevicesRequest.h:93
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::SageMaker::Model::Device
Definition: Device.h:32
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::SageMaker::Model::UpdateDevicesRequest::WithDevices
UpdateDevicesRequest & WithDevices(const Aws::Vector< Device > &value)
Definition: UpdateDevicesRequest.h:103
Aws::SageMaker::Model::UpdateDevicesRequest
Definition: UpdateDevicesRequest.h:24
AWSVector.h
Aws::SageMaker::Model::UpdateDevicesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SageMaker::Model::UpdateDevicesRequest::WithDeviceFleetName
UpdateDevicesRequest & WithDeviceFleetName(Aws::String &&value)
Definition: UpdateDevicesRequest.h:72
Aws::SageMaker::Model::UpdateDevicesRequest::DeviceFleetNameHasBeenSet
bool DeviceFleetNameHasBeenSet() const
Definition: UpdateDevicesRequest.h:47
Aws::SageMaker::Model::UpdateDevicesRequest::SetDevices
void SetDevices(Aws::Vector< Device > &&value)
Definition: UpdateDevicesRequest.h:98
Aws::SageMaker::SageMakerRequest
Definition: SageMakerRequest.h:17
Aws::SageMaker::Model::UpdateDevicesRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_SAGEMAKER_API
#define AWS_SAGEMAKER_API
Definition: SageMaker_EXPORTS.h:28
Aws::SageMaker::Model::UpdateDevicesRequest::WithDevices
UpdateDevicesRequest & WithDevices(Aws::Vector< Device > &&value)
Definition: UpdateDevicesRequest.h:108
Aws::SageMaker::Model::UpdateDevicesRequest::SetDeviceFleetName
void SetDeviceFleetName(const Aws::String &value)
Definition: UpdateDevicesRequest.h:52
Aws::SageMaker::Model::UpdateDevicesRequest::SetDeviceFleetName
void SetDeviceFleetName(const char *value)
Definition: UpdateDevicesRequest.h:62
Aws::SageMaker::Model::UpdateDevicesRequest::UpdateDevicesRequest
UpdateDevicesRequest()
AWSString.h
Aws::SageMaker::Model::UpdateDevicesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateDevicesRequest.h:32
Aws::SageMaker::Model::UpdateDevicesRequest::WithDeviceFleetName
UpdateDevicesRequest & WithDeviceFleetName(const Aws::String &value)
Definition: UpdateDevicesRequest.h:67
Aws::SageMaker::Model::UpdateDevicesRequest::SetDeviceFleetName
void SetDeviceFleetName(Aws::String &&value)
Definition: UpdateDevicesRequest.h:57
Aws::SageMaker::Model::UpdateDevicesRequest::AddDevices
UpdateDevicesRequest & AddDevices(const Device &value)
Definition: UpdateDevicesRequest.h:113
Aws::SageMaker::Model::UpdateDevicesRequest::WithDeviceFleetName
UpdateDevicesRequest & WithDeviceFleetName(const char *value)
Definition: UpdateDevicesRequest.h:77
Aws::SageMaker::Model::UpdateDevicesRequest::GetDeviceFleetName
const Aws::String & GetDeviceFleetName() const
Definition: UpdateDevicesRequest.h:42
Aws
Definition: AccessManagementClient.h:15
Aws::SageMaker::Model::UpdateDevicesRequest::AddDevices
UpdateDevicesRequest & AddDevices(Device &&value)
Definition: UpdateDevicesRequest.h:118
SageMakerRequest.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SageMaker::Model::UpdateDevicesRequest::DevicesHasBeenSet
bool DevicesHasBeenSet() const
Definition: UpdateDevicesRequest.h:88
Device.h