AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ExperimentSummary.h
1
6#pragma once
7#include <aws/fis/FIS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/fis/model/ExperimentState.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/fis/model/ExperimentOptions.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace FIS
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_FIS_API ExperimentSummary() = default;
42
43
45
48 inline const Aws::String& GetId() const { return m_id; }
49 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
50 template<typename IdT = Aws::String>
51 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
52 template<typename IdT = Aws::String>
53 ExperimentSummary& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
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) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
64 template<typename ArnT = Aws::String>
65 ExperimentSummary& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
67
69
72 inline const Aws::String& GetExperimentTemplateId() const { return m_experimentTemplateId; }
73 inline bool ExperimentTemplateIdHasBeenSet() const { return m_experimentTemplateIdHasBeenSet; }
74 template<typename ExperimentTemplateIdT = Aws::String>
75 void SetExperimentTemplateId(ExperimentTemplateIdT&& value) { m_experimentTemplateIdHasBeenSet = true; m_experimentTemplateId = std::forward<ExperimentTemplateIdT>(value); }
76 template<typename ExperimentTemplateIdT = Aws::String>
77 ExperimentSummary& WithExperimentTemplateId(ExperimentTemplateIdT&& value) { SetExperimentTemplateId(std::forward<ExperimentTemplateIdT>(value)); return *this;}
79
81
84 inline const ExperimentState& GetState() const { return m_state; }
85 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
86 template<typename StateT = ExperimentState>
87 void SetState(StateT&& value) { m_stateHasBeenSet = true; m_state = std::forward<StateT>(value); }
88 template<typename StateT = ExperimentState>
89 ExperimentSummary& WithState(StateT&& value) { SetState(std::forward<StateT>(value)); return *this;}
91
93
96 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
97 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
98 template<typename CreationTimeT = Aws::Utils::DateTime>
99 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
100 template<typename CreationTimeT = Aws::Utils::DateTime>
101 ExperimentSummary& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
103
105
108 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
109 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
110 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
111 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
112 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
113 ExperimentSummary& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
114 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
115 ExperimentSummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
116 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
117 }
119
121
124 inline const ExperimentOptions& GetExperimentOptions() const { return m_experimentOptions; }
125 inline bool ExperimentOptionsHasBeenSet() const { return m_experimentOptionsHasBeenSet; }
126 template<typename ExperimentOptionsT = ExperimentOptions>
127 void SetExperimentOptions(ExperimentOptionsT&& value) { m_experimentOptionsHasBeenSet = true; m_experimentOptions = std::forward<ExperimentOptionsT>(value); }
128 template<typename ExperimentOptionsT = ExperimentOptions>
129 ExperimentSummary& WithExperimentOptions(ExperimentOptionsT&& value) { SetExperimentOptions(std::forward<ExperimentOptionsT>(value)); return *this;}
131 private:
132
133 Aws::String m_id;
134 bool m_idHasBeenSet = false;
135
136 Aws::String m_arn;
137 bool m_arnHasBeenSet = false;
138
139 Aws::String m_experimentTemplateId;
140 bool m_experimentTemplateIdHasBeenSet = false;
141
142 ExperimentState m_state;
143 bool m_stateHasBeenSet = false;
144
145 Aws::Utils::DateTime m_creationTime{};
146 bool m_creationTimeHasBeenSet = false;
147
149 bool m_tagsHasBeenSet = false;
150
151 ExperimentOptions m_experimentOptions;
152 bool m_experimentOptionsHasBeenSet = false;
153 };
154
155} // namespace Model
156} // namespace FIS
157} // 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