AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
StepRequiredCapabilities.h
1
6#pragma once
7#include <aws/deadline/Deadline_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/deadline/model/StepAttributeCapability.h>
10#include <aws/deadline/model/StepAmountCapability.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace deadline
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_DEADLINE_API StepRequiredCapabilities() = default;
39 AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::Vector<StepAttributeCapability>& GetAttributes() const { return m_attributes; }
47 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
48 template<typename AttributesT = Aws::Vector<StepAttributeCapability>>
49 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes = std::forward<AttributesT>(value); }
50 template<typename AttributesT = Aws::Vector<StepAttributeCapability>>
51 StepRequiredCapabilities& WithAttributes(AttributesT&& value) { SetAttributes(std::forward<AttributesT>(value)); return *this;}
52 template<typename AttributesT = StepAttributeCapability>
53 StepRequiredCapabilities& AddAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes.emplace_back(std::forward<AttributesT>(value)); return *this; }
55
57
60 inline const Aws::Vector<StepAmountCapability>& GetAmounts() const { return m_amounts; }
61 inline bool AmountsHasBeenSet() const { return m_amountsHasBeenSet; }
62 template<typename AmountsT = Aws::Vector<StepAmountCapability>>
63 void SetAmounts(AmountsT&& value) { m_amountsHasBeenSet = true; m_amounts = std::forward<AmountsT>(value); }
64 template<typename AmountsT = Aws::Vector<StepAmountCapability>>
65 StepRequiredCapabilities& WithAmounts(AmountsT&& value) { SetAmounts(std::forward<AmountsT>(value)); return *this;}
66 template<typename AmountsT = StepAmountCapability>
67 StepRequiredCapabilities& AddAmounts(AmountsT&& value) { m_amountsHasBeenSet = true; m_amounts.emplace_back(std::forward<AmountsT>(value)); return *this; }
69 private:
70
72 bool m_attributesHasBeenSet = false;
73
75 bool m_amountsHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace deadline
80} // namespace Aws
const Aws::Vector< StepAmountCapability > & GetAmounts() const
StepRequiredCapabilities & AddAttributes(AttributesT &&value)
AWS_DEADLINE_API StepRequiredCapabilities & operator=(Aws::Utils::Json::JsonView jsonValue)
StepRequiredCapabilities & WithAmounts(AmountsT &&value)
AWS_DEADLINE_API StepRequiredCapabilities()=default
const Aws::Vector< StepAttributeCapability > & GetAttributes() const
StepRequiredCapabilities & WithAttributes(AttributesT &&value)
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
StepRequiredCapabilities & AddAmounts(AmountsT &&value)
AWS_DEADLINE_API StepRequiredCapabilities(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue