AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
WorkflowSummary.h
1
6#pragma once
7#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/imagebuilder/model/WorkflowType.h>
10#include <aws/imagebuilder/model/WorkflowState.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace imagebuilder
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_IMAGEBUILDER_API WorkflowSummary() = default;
38 AWS_IMAGEBUILDER_API WorkflowSummary(Aws::Utils::Json::JsonView jsonValue);
39 AWS_IMAGEBUILDER_API WorkflowSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetArn() const { return m_arn; }
48 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
49 template<typename ArnT = Aws::String>
50 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
51 template<typename ArnT = Aws::String>
52 WorkflowSummary& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
54
56
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template<typename NameT = Aws::String>
62 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
63 template<typename NameT = Aws::String>
64 WorkflowSummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
66
68
71 inline const Aws::String& GetVersion() const { return m_version; }
72 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
73 template<typename VersionT = Aws::String>
74 void SetVersion(VersionT&& value) { m_versionHasBeenSet = true; m_version = std::forward<VersionT>(value); }
75 template<typename VersionT = Aws::String>
76 WorkflowSummary& WithVersion(VersionT&& value) { SetVersion(std::forward<VersionT>(value)); return *this;}
78
80
83 inline const Aws::String& GetDescription() const { return m_description; }
84 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
85 template<typename DescriptionT = Aws::String>
86 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
87 template<typename DescriptionT = Aws::String>
88 WorkflowSummary& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
90
92
95 inline const Aws::String& GetChangeDescription() const { return m_changeDescription; }
96 inline bool ChangeDescriptionHasBeenSet() const { return m_changeDescriptionHasBeenSet; }
97 template<typename ChangeDescriptionT = Aws::String>
98 void SetChangeDescription(ChangeDescriptionT&& value) { m_changeDescriptionHasBeenSet = true; m_changeDescription = std::forward<ChangeDescriptionT>(value); }
99 template<typename ChangeDescriptionT = Aws::String>
100 WorkflowSummary& WithChangeDescription(ChangeDescriptionT&& value) { SetChangeDescription(std::forward<ChangeDescriptionT>(value)); return *this;}
102
104
108 inline WorkflowType GetType() const { return m_type; }
109 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
110 inline void SetType(WorkflowType value) { m_typeHasBeenSet = true; m_type = value; }
111 inline WorkflowSummary& WithType(WorkflowType value) { SetType(value); return *this;}
113
115
118 inline const Aws::String& GetOwner() const { return m_owner; }
119 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
120 template<typename OwnerT = Aws::String>
121 void SetOwner(OwnerT&& value) { m_ownerHasBeenSet = true; m_owner = std::forward<OwnerT>(value); }
122 template<typename OwnerT = Aws::String>
123 WorkflowSummary& WithOwner(OwnerT&& value) { SetOwner(std::forward<OwnerT>(value)); return *this;}
125
127
130 inline const WorkflowState& GetState() const { return m_state; }
131 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
132 template<typename StateT = WorkflowState>
133 void SetState(StateT&& value) { m_stateHasBeenSet = true; m_state = std::forward<StateT>(value); }
134 template<typename StateT = WorkflowState>
135 WorkflowSummary& WithState(StateT&& value) { SetState(std::forward<StateT>(value)); return *this;}
137
139
142 inline const Aws::String& GetDateCreated() const { return m_dateCreated; }
143 inline bool DateCreatedHasBeenSet() const { return m_dateCreatedHasBeenSet; }
144 template<typename DateCreatedT = Aws::String>
145 void SetDateCreated(DateCreatedT&& value) { m_dateCreatedHasBeenSet = true; m_dateCreated = std::forward<DateCreatedT>(value); }
146 template<typename DateCreatedT = Aws::String>
147 WorkflowSummary& WithDateCreated(DateCreatedT&& value) { SetDateCreated(std::forward<DateCreatedT>(value)); return *this;}
149
151
154 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
155 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
156 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
157 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
158 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
159 WorkflowSummary& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
160 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
161 WorkflowSummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
162 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
163 }
165 private:
166
167 Aws::String m_arn;
168 bool m_arnHasBeenSet = false;
169
170 Aws::String m_name;
171 bool m_nameHasBeenSet = false;
172
173 Aws::String m_version;
174 bool m_versionHasBeenSet = false;
175
176 Aws::String m_description;
177 bool m_descriptionHasBeenSet = false;
178
179 Aws::String m_changeDescription;
180 bool m_changeDescriptionHasBeenSet = false;
181
183 bool m_typeHasBeenSet = false;
184
185 Aws::String m_owner;
186 bool m_ownerHasBeenSet = false;
187
188 WorkflowState m_state;
189 bool m_stateHasBeenSet = false;
190
191 Aws::String m_dateCreated;
192 bool m_dateCreatedHasBeenSet = false;
193
195 bool m_tagsHasBeenSet = false;
196 };
197
198} // namespace Model
199} // namespace imagebuilder
200} // namespace Aws
WorkflowSummary & WithOwner(OwnerT &&value)
WorkflowSummary & WithDescription(DescriptionT &&value)
const Aws::String & GetChangeDescription() const
void SetDateCreated(DateCreatedT &&value)
void SetDescription(DescriptionT &&value)
WorkflowSummary & WithType(WorkflowType value)
WorkflowSummary & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_IMAGEBUILDER_API WorkflowSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const WorkflowState & GetState() const
WorkflowSummary & WithState(StateT &&value)
WorkflowSummary & WithTags(TagsT &&value)
AWS_IMAGEBUILDER_API WorkflowSummary(Aws::Utils::Json::JsonView jsonValue)
WorkflowSummary & WithDateCreated(DateCreatedT &&value)
void SetChangeDescription(ChangeDescriptionT &&value)
const Aws::String & GetVersion() const
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
WorkflowSummary & WithName(NameT &&value)
const Aws::String & GetDescription() const
const Aws::String & GetDateCreated() const
WorkflowSummary & WithVersion(VersionT &&value)
WorkflowSummary & WithChangeDescription(ChangeDescriptionT &&value)
AWS_IMAGEBUILDER_API WorkflowSummary()=default
WorkflowSummary & WithArn(ArnT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue