AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
WorkerCapabilities.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/deadline/Deadline_EXPORTS.h>
9#include <aws/deadline/model/WorkerAmountCapability.h>
10#include <aws/deadline/model/WorkerAttributeCapability.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace deadline {
22namespace Model {
23
30 public:
31 AWS_DEADLINE_API WorkerCapabilities() = default;
34 AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::Vector<WorkerAmountCapability>& GetAmounts() const { return m_amounts; }
41 inline bool AmountsHasBeenSet() const { return m_amountsHasBeenSet; }
42 template <typename AmountsT = Aws::Vector<WorkerAmountCapability>>
43 void SetAmounts(AmountsT&& value) {
44 m_amountsHasBeenSet = true;
45 m_amounts = std::forward<AmountsT>(value);
46 }
47 template <typename AmountsT = Aws::Vector<WorkerAmountCapability>>
48 WorkerCapabilities& WithAmounts(AmountsT&& value) {
49 SetAmounts(std::forward<AmountsT>(value));
50 return *this;
51 }
52 template <typename AmountsT = WorkerAmountCapability>
53 WorkerCapabilities& AddAmounts(AmountsT&& value) {
54 m_amountsHasBeenSet = true;
55 m_amounts.emplace_back(std::forward<AmountsT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::Vector<WorkerAttributeCapability>& GetAttributes() const { return m_attributes; }
65 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
66 template <typename AttributesT = Aws::Vector<WorkerAttributeCapability>>
67 void SetAttributes(AttributesT&& value) {
68 m_attributesHasBeenSet = true;
69 m_attributes = std::forward<AttributesT>(value);
70 }
71 template <typename AttributesT = Aws::Vector<WorkerAttributeCapability>>
72 WorkerCapabilities& WithAttributes(AttributesT&& value) {
73 SetAttributes(std::forward<AttributesT>(value));
74 return *this;
75 }
76 template <typename AttributesT = WorkerAttributeCapability>
77 WorkerCapabilities& AddAttributes(AttributesT&& value) {
78 m_attributesHasBeenSet = true;
79 m_attributes.emplace_back(std::forward<AttributesT>(value));
80 return *this;
81 }
83 private:
85
87 bool m_amountsHasBeenSet = false;
88 bool m_attributesHasBeenSet = false;
89};
90
91} // namespace Model
92} // namespace deadline
93} // namespace Aws
AWS_DEADLINE_API WorkerCapabilities()=default
const Aws::Vector< WorkerAttributeCapability > & GetAttributes() const
AWS_DEADLINE_API WorkerCapabilities(Aws::Utils::Json::JsonView jsonValue)
AWS_DEADLINE_API WorkerCapabilities & operator=(Aws::Utils::Json::JsonView jsonValue)
WorkerCapabilities & AddAmounts(AmountsT &&value)
WorkerCapabilities & AddAttributes(AttributesT &&value)
const Aws::Vector< WorkerAmountCapability > & GetAmounts() const
WorkerCapabilities & WithAmounts(AmountsT &&value)
WorkerCapabilities & WithAttributes(AttributesT &&value)
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue