AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
InferenceAccelerator.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ECS
22{
23namespace Model
24{
25
35 {
36 public:
37 AWS_ECS_API InferenceAccelerator() = default;
41
42
44
49 inline const Aws::String& GetDeviceName() const { return m_deviceName; }
50 inline bool DeviceNameHasBeenSet() const { return m_deviceNameHasBeenSet; }
51 template<typename DeviceNameT = Aws::String>
52 void SetDeviceName(DeviceNameT&& value) { m_deviceNameHasBeenSet = true; m_deviceName = std::forward<DeviceNameT>(value); }
53 template<typename DeviceNameT = Aws::String>
54 InferenceAccelerator& WithDeviceName(DeviceNameT&& value) { SetDeviceName(std::forward<DeviceNameT>(value)); return *this;}
56
58
61 inline const Aws::String& GetDeviceType() const { return m_deviceType; }
62 inline bool DeviceTypeHasBeenSet() const { return m_deviceTypeHasBeenSet; }
63 template<typename DeviceTypeT = Aws::String>
64 void SetDeviceType(DeviceTypeT&& value) { m_deviceTypeHasBeenSet = true; m_deviceType = std::forward<DeviceTypeT>(value); }
65 template<typename DeviceTypeT = Aws::String>
66 InferenceAccelerator& WithDeviceType(DeviceTypeT&& value) { SetDeviceType(std::forward<DeviceTypeT>(value)); return *this;}
68 private:
69
70 Aws::String m_deviceName;
71 bool m_deviceNameHasBeenSet = false;
72
73 Aws::String m_deviceType;
74 bool m_deviceTypeHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace ECS
79} // namespace Aws
AWS_ECS_API InferenceAccelerator & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ECS_API InferenceAccelerator()=default
const Aws::String & GetDeviceName() const
const Aws::String & GetDeviceType() const
InferenceAccelerator & WithDeviceType(DeviceTypeT &&value)
AWS_ECS_API InferenceAccelerator(Aws::Utils::Json::JsonView jsonValue)
InferenceAccelerator & WithDeviceName(DeviceNameT &&value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue