AWS SDK for C++  1.9.161
AWS SDK for C++
InferenceAcceleratorOverride.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecs/ECS_EXPORTS.h>
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace ECS
22 {
23 namespace Model
24 {
25 
37  {
38  public:
43 
44 
50  inline const Aws::String& GetDeviceName() const{ return m_deviceName; }
51 
57  inline bool DeviceNameHasBeenSet() const { return m_deviceNameHasBeenSet; }
58 
64  inline void SetDeviceName(const Aws::String& value) { m_deviceNameHasBeenSet = true; m_deviceName = value; }
65 
71  inline void SetDeviceName(Aws::String&& value) { m_deviceNameHasBeenSet = true; m_deviceName = std::move(value); }
72 
78  inline void SetDeviceName(const char* value) { m_deviceNameHasBeenSet = true; m_deviceName.assign(value); }
79 
85  inline InferenceAcceleratorOverride& WithDeviceName(const Aws::String& value) { SetDeviceName(value); return *this;}
86 
92  inline InferenceAcceleratorOverride& WithDeviceName(Aws::String&& value) { SetDeviceName(std::move(value)); return *this;}
93 
99  inline InferenceAcceleratorOverride& WithDeviceName(const char* value) { SetDeviceName(value); return *this;}
100 
101 
105  inline const Aws::String& GetDeviceType() const{ return m_deviceType; }
106 
110  inline bool DeviceTypeHasBeenSet() const { return m_deviceTypeHasBeenSet; }
111 
115  inline void SetDeviceType(const Aws::String& value) { m_deviceTypeHasBeenSet = true; m_deviceType = value; }
116 
120  inline void SetDeviceType(Aws::String&& value) { m_deviceTypeHasBeenSet = true; m_deviceType = std::move(value); }
121 
125  inline void SetDeviceType(const char* value) { m_deviceTypeHasBeenSet = true; m_deviceType.assign(value); }
126 
130  inline InferenceAcceleratorOverride& WithDeviceType(const Aws::String& value) { SetDeviceType(value); return *this;}
131 
135  inline InferenceAcceleratorOverride& WithDeviceType(Aws::String&& value) { SetDeviceType(std::move(value)); return *this;}
136 
140  inline InferenceAcceleratorOverride& WithDeviceType(const char* value) { SetDeviceType(value); return *this;}
141 
142  private:
143 
144  Aws::String m_deviceName;
145  bool m_deviceNameHasBeenSet;
146 
147  Aws::String m_deviceType;
148  bool m_deviceTypeHasBeenSet;
149  };
150 
151 } // namespace Model
152 } // namespace ECS
153 } // namespace Aws
Aws::ECS::Model::InferenceAcceleratorOverride::operator=
InferenceAcceleratorOverride & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ECS::Model::InferenceAcceleratorOverride
Definition: InferenceAcceleratorOverride.h:37
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::ECS::Model::InferenceAcceleratorOverride::SetDeviceName
void SetDeviceName(const char *value)
Definition: InferenceAcceleratorOverride.h:78
Aws::ECS::Model::InferenceAcceleratorOverride::WithDeviceName
InferenceAcceleratorOverride & WithDeviceName(const Aws::String &value)
Definition: InferenceAcceleratorOverride.h:85
Aws::ECS::Model::InferenceAcceleratorOverride::GetDeviceName
const Aws::String & GetDeviceName() const
Definition: InferenceAcceleratorOverride.h:50
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::InferenceAcceleratorOverride::WithDeviceName
InferenceAcceleratorOverride & WithDeviceName(const char *value)
Definition: InferenceAcceleratorOverride.h:99
Aws::ECS::Model::InferenceAcceleratorOverride::GetDeviceType
const Aws::String & GetDeviceType() const
Definition: InferenceAcceleratorOverride.h:105
Aws::ECS::Model::InferenceAcceleratorOverride::WithDeviceType
InferenceAcceleratorOverride & WithDeviceType(const Aws::String &value)
Definition: InferenceAcceleratorOverride.h:130
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ECS::Model::InferenceAcceleratorOverride::InferenceAcceleratorOverride
InferenceAcceleratorOverride(Aws::Utils::Json::JsonView jsonValue)
Aws::ECS::Model::InferenceAcceleratorOverride::WithDeviceType
InferenceAcceleratorOverride & WithDeviceType(Aws::String &&value)
Definition: InferenceAcceleratorOverride.h:135
Aws::ECS::Model::InferenceAcceleratorOverride::DeviceNameHasBeenSet
bool DeviceNameHasBeenSet() const
Definition: InferenceAcceleratorOverride.h:57
Aws::ECS::Model::InferenceAcceleratorOverride::InferenceAcceleratorOverride
InferenceAcceleratorOverride()
Aws::ECS::Model::InferenceAcceleratorOverride::WithDeviceType
InferenceAcceleratorOverride & WithDeviceType(const char *value)
Definition: InferenceAcceleratorOverride.h:140
Aws::ECS::Model::InferenceAcceleratorOverride::SetDeviceName
void SetDeviceName(Aws::String &&value)
Definition: InferenceAcceleratorOverride.h:71
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECS::Model::InferenceAcceleratorOverride::WithDeviceName
InferenceAcceleratorOverride & WithDeviceName(Aws::String &&value)
Definition: InferenceAcceleratorOverride.h:92
Aws::ECS::Model::InferenceAcceleratorOverride::DeviceTypeHasBeenSet
bool DeviceTypeHasBeenSet() const
Definition: InferenceAcceleratorOverride.h:110
Aws::ECS::Model::InferenceAcceleratorOverride::SetDeviceType
void SetDeviceType(Aws::String &&value)
Definition: InferenceAcceleratorOverride.h:120
Aws::ECS::Model::InferenceAcceleratorOverride::SetDeviceType
void SetDeviceType(const char *value)
Definition: InferenceAcceleratorOverride.h:125
Aws::ECS::Model::InferenceAcceleratorOverride::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
ECS_EXPORTS.h
Aws::ECS::Model::InferenceAcceleratorOverride::SetDeviceType
void SetDeviceType(const Aws::String &value)
Definition: InferenceAcceleratorOverride.h:115
Aws::ECS::Model::InferenceAcceleratorOverride::SetDeviceName
void SetDeviceName(const Aws::String &value)
Definition: InferenceAcceleratorOverride.h:64