AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
WorkerAmountCapability.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/deadline/Deadline_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace deadline {
20namespace Model {
21
28 public:
29 AWS_DEADLINE_API WorkerAmountCapability() = default;
32 AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetName() const { return m_name; }
39 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
40 template <typename NameT = Aws::String>
41 void SetName(NameT&& value) {
42 m_nameHasBeenSet = true;
43 m_name = std::forward<NameT>(value);
44 }
45 template <typename NameT = Aws::String>
47 SetName(std::forward<NameT>(value));
48 return *this;
49 }
51
53
56 inline double GetValue() const { return m_value; }
57 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
58 inline void SetValue(double value) {
59 m_valueHasBeenSet = true;
60 m_value = value;
61 }
62 inline WorkerAmountCapability& WithValue(double value) {
63 SetValue(value);
64 return *this;
65 }
67 private:
68 Aws::String m_name;
69
70 double m_value{0.0};
71 bool m_nameHasBeenSet = false;
72 bool m_valueHasBeenSet = false;
73};
74
75} // namespace Model
76} // namespace deadline
77} // namespace Aws
WorkerAmountCapability & WithName(NameT &&value)
AWS_DEADLINE_API WorkerAmountCapability(Aws::Utils::Json::JsonView jsonValue)
AWS_DEADLINE_API WorkerAmountCapability()=default
WorkerAmountCapability & WithValue(double value)
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DEADLINE_API WorkerAmountCapability & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue