AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
PipelineVariableDeclaration.h
1
6#pragma once
7#include <aws/codepipeline/CodePipeline_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace CodePipeline {
20namespace Model {
21
28 public:
29 AWS_CODEPIPELINE_API PipelineVariableDeclaration() = default;
32 AWS_CODEPIPELINE_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 const Aws::String& GetDefaultValue() const { return m_defaultValue; }
57 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
58 template <typename DefaultValueT = Aws::String>
59 void SetDefaultValue(DefaultValueT&& value) {
60 m_defaultValueHasBeenSet = true;
61 m_defaultValue = std::forward<DefaultValueT>(value);
62 }
63 template <typename DefaultValueT = Aws::String>
65 SetDefaultValue(std::forward<DefaultValueT>(value));
66 return *this;
67 }
69
71
76 inline const Aws::String& GetDescription() const { return m_description; }
77 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
78 template <typename DescriptionT = Aws::String>
79 void SetDescription(DescriptionT&& value) {
80 m_descriptionHasBeenSet = true;
81 m_description = std::forward<DescriptionT>(value);
82 }
83 template <typename DescriptionT = Aws::String>
85 SetDescription(std::forward<DescriptionT>(value));
86 return *this;
87 }
89 private:
90 Aws::String m_name;
91
92 Aws::String m_defaultValue;
93
94 Aws::String m_description;
95 bool m_nameHasBeenSet = false;
96 bool m_defaultValueHasBeenSet = false;
97 bool m_descriptionHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace CodePipeline
102} // namespace Aws
AWS_CODEPIPELINE_API PipelineVariableDeclaration & operator=(Aws::Utils::Json::JsonView jsonValue)
PipelineVariableDeclaration & WithDescription(DescriptionT &&value)
AWS_CODEPIPELINE_API PipelineVariableDeclaration()=default
AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const
PipelineVariableDeclaration & WithName(NameT &&value)
AWS_CODEPIPELINE_API PipelineVariableDeclaration(Aws::Utils::Json::JsonView jsonValue)
PipelineVariableDeclaration & WithDefaultValue(DefaultValueT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue