AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ElasticInferenceAccelerator.h
1
6#pragma once
7#include <aws/elastic-inference/ElasticInference_EXPORTS.h>
8#include <aws/elastic-inference/model/ElasticInferenceAcceleratorHealth.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ElasticInference
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_ELASTICINFERENCE_API ElasticInferenceAccelerator();
37 AWS_ELASTICINFERENCE_API ElasticInferenceAccelerator(Aws::Utils::Json::JsonView jsonValue);
39 AWS_ELASTICINFERENCE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const ElasticInferenceAcceleratorHealth& GetAcceleratorHealth() const{ return m_acceleratorHealth; }
47 inline bool AcceleratorHealthHasBeenSet() const { return m_acceleratorHealthHasBeenSet; }
48 inline void SetAcceleratorHealth(const ElasticInferenceAcceleratorHealth& value) { m_acceleratorHealthHasBeenSet = true; m_acceleratorHealth = value; }
49 inline void SetAcceleratorHealth(ElasticInferenceAcceleratorHealth&& value) { m_acceleratorHealthHasBeenSet = true; m_acceleratorHealth = std::move(value); }
53
55
58 inline const Aws::String& GetAcceleratorType() const{ return m_acceleratorType; }
59 inline bool AcceleratorTypeHasBeenSet() const { return m_acceleratorTypeHasBeenSet; }
60 inline void SetAcceleratorType(const Aws::String& value) { m_acceleratorTypeHasBeenSet = true; m_acceleratorType = value; }
61 inline void SetAcceleratorType(Aws::String&& value) { m_acceleratorTypeHasBeenSet = true; m_acceleratorType = std::move(value); }
62 inline void SetAcceleratorType(const char* value) { m_acceleratorTypeHasBeenSet = true; m_acceleratorType.assign(value); }
64 inline ElasticInferenceAccelerator& WithAcceleratorType(Aws::String&& value) { SetAcceleratorType(std::move(value)); return *this;}
65 inline ElasticInferenceAccelerator& WithAcceleratorType(const char* value) { SetAcceleratorType(value); return *this;}
67
69
72 inline const Aws::String& GetAcceleratorId() const{ return m_acceleratorId; }
73 inline bool AcceleratorIdHasBeenSet() const { return m_acceleratorIdHasBeenSet; }
74 inline void SetAcceleratorId(const Aws::String& value) { m_acceleratorIdHasBeenSet = true; m_acceleratorId = value; }
75 inline void SetAcceleratorId(Aws::String&& value) { m_acceleratorIdHasBeenSet = true; m_acceleratorId = std::move(value); }
76 inline void SetAcceleratorId(const char* value) { m_acceleratorIdHasBeenSet = true; m_acceleratorId.assign(value); }
77 inline ElasticInferenceAccelerator& WithAcceleratorId(const Aws::String& value) { SetAcceleratorId(value); return *this;}
78 inline ElasticInferenceAccelerator& WithAcceleratorId(Aws::String&& value) { SetAcceleratorId(std::move(value)); return *this;}
79 inline ElasticInferenceAccelerator& WithAcceleratorId(const char* value) { SetAcceleratorId(value); return *this;}
81
83
87 inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
88 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
89 inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
90 inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
91 inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
93 inline ElasticInferenceAccelerator& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
94 inline ElasticInferenceAccelerator& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
96
98
102 inline const Aws::String& GetAttachedResource() const{ return m_attachedResource; }
103 inline bool AttachedResourceHasBeenSet() const { return m_attachedResourceHasBeenSet; }
104 inline void SetAttachedResource(const Aws::String& value) { m_attachedResourceHasBeenSet = true; m_attachedResource = value; }
105 inline void SetAttachedResource(Aws::String&& value) { m_attachedResourceHasBeenSet = true; m_attachedResource = std::move(value); }
106 inline void SetAttachedResource(const char* value) { m_attachedResourceHasBeenSet = true; m_attachedResource.assign(value); }
108 inline ElasticInferenceAccelerator& WithAttachedResource(Aws::String&& value) { SetAttachedResource(std::move(value)); return *this;}
109 inline ElasticInferenceAccelerator& WithAttachedResource(const char* value) { SetAttachedResource(value); return *this;}
111 private:
112
113 ElasticInferenceAcceleratorHealth m_acceleratorHealth;
114 bool m_acceleratorHealthHasBeenSet = false;
115
116 Aws::String m_acceleratorType;
117 bool m_acceleratorTypeHasBeenSet = false;
118
119 Aws::String m_acceleratorId;
120 bool m_acceleratorIdHasBeenSet = false;
121
122 Aws::String m_availabilityZone;
123 bool m_availabilityZoneHasBeenSet = false;
124
125 Aws::String m_attachedResource;
126 bool m_attachedResourceHasBeenSet = false;
127 };
128
129} // namespace Model
130} // namespace ElasticInference
131} // namespace Aws
void SetAcceleratorHealth(ElasticInferenceAcceleratorHealth &&value)
ElasticInferenceAccelerator & WithAttachedResource(Aws::String &&value)
ElasticInferenceAccelerator & WithAvailabilityZone(Aws::String &&value)
ElasticInferenceAccelerator & WithAvailabilityZone(const char *value)
ElasticInferenceAccelerator & WithAcceleratorType(const Aws::String &value)
AWS_ELASTICINFERENCE_API ElasticInferenceAccelerator(Aws::Utils::Json::JsonView jsonValue)
ElasticInferenceAccelerator & WithAcceleratorId(const Aws::String &value)
ElasticInferenceAccelerator & WithAttachedResource(const char *value)
ElasticInferenceAccelerator & WithAttachedResource(const Aws::String &value)
AWS_ELASTICINFERENCE_API Aws::Utils::Json::JsonValue Jsonize() const
ElasticInferenceAccelerator & WithAcceleratorId(const char *value)
ElasticInferenceAccelerator & WithAcceleratorHealth(const ElasticInferenceAcceleratorHealth &value)
ElasticInferenceAccelerator & WithAcceleratorType(Aws::String &&value)
ElasticInferenceAccelerator & WithAcceleratorHealth(ElasticInferenceAcceleratorHealth &&value)
ElasticInferenceAccelerator & WithAvailabilityZone(const Aws::String &value)
ElasticInferenceAccelerator & WithAcceleratorId(Aws::String &&value)
void SetAcceleratorHealth(const ElasticInferenceAcceleratorHealth &value)
const ElasticInferenceAcceleratorHealth & GetAcceleratorHealth() const
ElasticInferenceAccelerator & WithAcceleratorType(const char *value)
AWS_ELASTICINFERENCE_API ElasticInferenceAccelerator & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue