AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
WorkerAttributeCapability.h
1
6#pragma once
7#include <aws/deadline/Deadline_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.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 deadline
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_DEADLINE_API WorkerAttributeCapability() = default;
38 AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetName() const { return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 template<typename NameT = Aws::String>
48 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
49 template<typename NameT = Aws::String>
50 WorkerAttributeCapability& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
52
54
57 inline const Aws::Vector<Aws::String>& GetValues() const { return m_values; }
58 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
59 template<typename ValuesT = Aws::Vector<Aws::String>>
60 void SetValues(ValuesT&& value) { m_valuesHasBeenSet = true; m_values = std::forward<ValuesT>(value); }
61 template<typename ValuesT = Aws::Vector<Aws::String>>
62 WorkerAttributeCapability& WithValues(ValuesT&& value) { SetValues(std::forward<ValuesT>(value)); return *this;}
63 template<typename ValuesT = Aws::String>
64 WorkerAttributeCapability& AddValues(ValuesT&& value) { m_valuesHasBeenSet = true; m_values.emplace_back(std::forward<ValuesT>(value)); return *this; }
66 private:
67
68 Aws::String m_name;
69 bool m_nameHasBeenSet = false;
70
72 bool m_valuesHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace deadline
77} // namespace Aws
AWS_DEADLINE_API WorkerAttributeCapability & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DEADLINE_API WorkerAttributeCapability(Aws::Utils::Json::JsonView jsonValue)
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
WorkerAttributeCapability & WithValues(ValuesT &&value)
const Aws::Vector< Aws::String > & GetValues() const
WorkerAttributeCapability & WithName(NameT &&value)
WorkerAttributeCapability & AddValues(ValuesT &&value)
AWS_DEADLINE_API WorkerAttributeCapability()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue