AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
DeploymentSpecificationsField.h
1
6#pragma once
7#include <aws/launch-wizard/LaunchWizard_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/launch-wizard/model/DeploymentConditionalField.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 LaunchWizard
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_LAUNCHWIZARD_API DeploymentSpecificationsField() = default;
40 AWS_LAUNCHWIZARD_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::Vector<Aws::String>& GetAllowedValues() const { return m_allowedValues; }
48 inline bool AllowedValuesHasBeenSet() const { return m_allowedValuesHasBeenSet; }
49 template<typename AllowedValuesT = Aws::Vector<Aws::String>>
50 void SetAllowedValues(AllowedValuesT&& value) { m_allowedValuesHasBeenSet = true; m_allowedValues = std::forward<AllowedValuesT>(value); }
51 template<typename AllowedValuesT = Aws::Vector<Aws::String>>
52 DeploymentSpecificationsField& WithAllowedValues(AllowedValuesT&& value) { SetAllowedValues(std::forward<AllowedValuesT>(value)); return *this;}
53 template<typename AllowedValuesT = Aws::String>
54 DeploymentSpecificationsField& AddAllowedValues(AllowedValuesT&& value) { m_allowedValuesHasBeenSet = true; m_allowedValues.emplace_back(std::forward<AllowedValuesT>(value)); return *this; }
56
58
61 inline const Aws::Vector<DeploymentConditionalField>& GetConditionals() const { return m_conditionals; }
62 inline bool ConditionalsHasBeenSet() const { return m_conditionalsHasBeenSet; }
63 template<typename ConditionalsT = Aws::Vector<DeploymentConditionalField>>
64 void SetConditionals(ConditionalsT&& value) { m_conditionalsHasBeenSet = true; m_conditionals = std::forward<ConditionalsT>(value); }
65 template<typename ConditionalsT = Aws::Vector<DeploymentConditionalField>>
66 DeploymentSpecificationsField& WithConditionals(ConditionalsT&& value) { SetConditionals(std::forward<ConditionalsT>(value)); return *this;}
67 template<typename ConditionalsT = DeploymentConditionalField>
68 DeploymentSpecificationsField& AddConditionals(ConditionalsT&& value) { m_conditionalsHasBeenSet = true; m_conditionals.emplace_back(std::forward<ConditionalsT>(value)); return *this; }
70
72
75 inline const Aws::String& GetDescription() const { return m_description; }
76 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
77 template<typename DescriptionT = Aws::String>
78 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
79 template<typename DescriptionT = Aws::String>
80 DeploymentSpecificationsField& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
82
84
87 inline const Aws::String& GetName() const { return m_name; }
88 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
89 template<typename NameT = Aws::String>
90 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
91 template<typename NameT = Aws::String>
92 DeploymentSpecificationsField& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
94
96
99 inline const Aws::String& GetRequired() const { return m_required; }
100 inline bool RequiredHasBeenSet() const { return m_requiredHasBeenSet; }
101 template<typename RequiredT = Aws::String>
102 void SetRequired(RequiredT&& value) { m_requiredHasBeenSet = true; m_required = std::forward<RequiredT>(value); }
103 template<typename RequiredT = Aws::String>
104 DeploymentSpecificationsField& WithRequired(RequiredT&& value) { SetRequired(std::forward<RequiredT>(value)); return *this;}
106 private:
107
108 Aws::Vector<Aws::String> m_allowedValues;
109 bool m_allowedValuesHasBeenSet = false;
110
112 bool m_conditionalsHasBeenSet = false;
113
114 Aws::String m_description;
115 bool m_descriptionHasBeenSet = false;
116
117 Aws::String m_name;
118 bool m_nameHasBeenSet = false;
119
120 Aws::String m_required;
121 bool m_requiredHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace LaunchWizard
126} // namespace Aws
DeploymentSpecificationsField & WithAllowedValues(AllowedValuesT &&value)
DeploymentSpecificationsField & WithRequired(RequiredT &&value)
DeploymentSpecificationsField & WithName(NameT &&value)
AWS_LAUNCHWIZARD_API DeploymentSpecificationsField & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LAUNCHWIZARD_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LAUNCHWIZARD_API DeploymentSpecificationsField()=default
DeploymentSpecificationsField & AddConditionals(ConditionalsT &&value)
AWS_LAUNCHWIZARD_API DeploymentSpecificationsField(Aws::Utils::Json::JsonView jsonValue)
DeploymentSpecificationsField & AddAllowedValues(AllowedValuesT &&value)
const Aws::Vector< DeploymentConditionalField > & GetConditionals() const
DeploymentSpecificationsField & WithConditionals(ConditionalsT &&value)
DeploymentSpecificationsField & WithDescription(DescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue