AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ExperimentSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/fis/FIS_EXPORTS.h>
11#include <aws/fis/model/ExperimentOptions.h>
12#include <aws/fis/model/ExperimentState.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace FIS {
24namespace Model {
25
32 public:
33 AWS_FIS_API ExperimentSummary() = default;
37
39
42 inline const Aws::String& GetId() const { return m_id; }
43 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
44 template <typename IdT = Aws::String>
45 void SetId(IdT&& value) {
46 m_idHasBeenSet = true;
47 m_id = std::forward<IdT>(value);
48 }
49 template <typename IdT = Aws::String>
50 ExperimentSummary& WithId(IdT&& value) {
51 SetId(std::forward<IdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetArn() const { return m_arn; }
61 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
62 template <typename ArnT = Aws::String>
63 void SetArn(ArnT&& value) {
64 m_arnHasBeenSet = true;
65 m_arn = std::forward<ArnT>(value);
66 }
67 template <typename ArnT = Aws::String>
68 ExperimentSummary& WithArn(ArnT&& value) {
69 SetArn(std::forward<ArnT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetExperimentTemplateId() const { return m_experimentTemplateId; }
79 inline bool ExperimentTemplateIdHasBeenSet() const { return m_experimentTemplateIdHasBeenSet; }
80 template <typename ExperimentTemplateIdT = Aws::String>
81 void SetExperimentTemplateId(ExperimentTemplateIdT&& value) {
82 m_experimentTemplateIdHasBeenSet = true;
83 m_experimentTemplateId = std::forward<ExperimentTemplateIdT>(value);
84 }
85 template <typename ExperimentTemplateIdT = Aws::String>
86 ExperimentSummary& WithExperimentTemplateId(ExperimentTemplateIdT&& value) {
87 SetExperimentTemplateId(std::forward<ExperimentTemplateIdT>(value));
88 return *this;
89 }
91
93
96 inline const ExperimentState& GetState() const { return m_state; }
97 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
98 template <typename StateT = ExperimentState>
99 void SetState(StateT&& value) {
100 m_stateHasBeenSet = true;
101 m_state = std::forward<StateT>(value);
102 }
103 template <typename StateT = ExperimentState>
104 ExperimentSummary& WithState(StateT&& value) {
105 SetState(std::forward<StateT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
115 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
116 template <typename CreationTimeT = Aws::Utils::DateTime>
117 void SetCreationTime(CreationTimeT&& value) {
118 m_creationTimeHasBeenSet = true;
119 m_creationTime = std::forward<CreationTimeT>(value);
120 }
121 template <typename CreationTimeT = Aws::Utils::DateTime>
122 ExperimentSummary& WithCreationTime(CreationTimeT&& value) {
123 SetCreationTime(std::forward<CreationTimeT>(value));
124 return *this;
125 }
127
129
132 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
133 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
134 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
135 void SetTags(TagsT&& value) {
136 m_tagsHasBeenSet = true;
137 m_tags = std::forward<TagsT>(value);
138 }
139 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
140 ExperimentSummary& WithTags(TagsT&& value) {
141 SetTags(std::forward<TagsT>(value));
142 return *this;
143 }
144 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
145 ExperimentSummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
146 m_tagsHasBeenSet = true;
147 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
148 return *this;
149 }
151
153
156 inline const ExperimentOptions& GetExperimentOptions() const { return m_experimentOptions; }
157 inline bool ExperimentOptionsHasBeenSet() const { return m_experimentOptionsHasBeenSet; }
158 template <typename ExperimentOptionsT = ExperimentOptions>
159 void SetExperimentOptions(ExperimentOptionsT&& value) {
160 m_experimentOptionsHasBeenSet = true;
161 m_experimentOptions = std::forward<ExperimentOptionsT>(value);
162 }
163 template <typename ExperimentOptionsT = ExperimentOptions>
164 ExperimentSummary& WithExperimentOptions(ExperimentOptionsT&& value) {
165 SetExperimentOptions(std::forward<ExperimentOptionsT>(value));
166 return *this;
167 }
169 private:
170 Aws::String m_id;
171
172 Aws::String m_arn;
173
174 Aws::String m_experimentTemplateId;
175
176 ExperimentState m_state;
177
178 Aws::Utils::DateTime m_creationTime{};
179
181
182 ExperimentOptions m_experimentOptions;
183 bool m_idHasBeenSet = false;
184 bool m_arnHasBeenSet = false;
185 bool m_experimentTemplateIdHasBeenSet = false;
186 bool m_stateHasBeenSet = false;
187 bool m_creationTimeHasBeenSet = false;
188 bool m_tagsHasBeenSet = false;
189 bool m_experimentOptionsHasBeenSet = false;
190};
191
192} // namespace Model
193} // namespace FIS
194} // namespace Aws
const Aws::String & GetExperimentTemplateId() const
ExperimentSummary & WithState(StateT &&value)
AWS_FIS_API Aws::Utils::Json::JsonValue Jsonize() const
ExperimentSummary & WithTags(TagsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const Aws::String & GetId() const
AWS_FIS_API ExperimentSummary()=default
const ExperimentState & GetState() const
const Aws::Utils::DateTime & GetCreationTime() const
AWS_FIS_API ExperimentSummary(Aws::Utils::Json::JsonView jsonValue)
ExperimentSummary & WithArn(ArnT &&value)
ExperimentSummary & WithCreationTime(CreationTimeT &&value)
void SetCreationTime(CreationTimeT &&value)
const ExperimentOptions & GetExperimentOptions() const
ExperimentSummary & WithExperimentOptions(ExperimentOptionsT &&value)
void SetExperimentTemplateId(ExperimentTemplateIdT &&value)
ExperimentSummary & WithExperimentTemplateId(ExperimentTemplateIdT &&value)
ExperimentSummary & AddTags(TagsKeyT &&key, TagsValueT &&value)
ExperimentSummary & WithId(IdT &&value)
void SetExperimentOptions(ExperimentOptionsT &&value)
const Aws::String & GetArn() const
AWS_FIS_API ExperimentSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
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