AWS SDK for C++

AWS SDK for C++ Version 1.11.860

Loading...
Searching...
No Matches
ExperimentRunEvent.h
1
6#pragma once
7#include <aws/appconfig/AppConfig_EXPORTS.h>
8#include <aws/appconfig/model/ExperimentRunEventType.h>
9#include <aws/appconfig/model/TreatmentOverrides.h>
10#include <aws/appconfig/model/TriggeredBy.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace AppConfig {
24namespace Model {
25
33 public:
34 AWS_APPCONFIG_API ExperimentRunEvent() = default;
35 AWS_APPCONFIG_API ExperimentRunEvent(Aws::Utils::Json::JsonView jsonValue);
37 AWS_APPCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetDescription() const { return m_description; }
44 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
45 template <typename DescriptionT = Aws::String>
46 void SetDescription(DescriptionT&& value) {
47 m_descriptionHasBeenSet = true;
48 m_description = std::forward<DescriptionT>(value);
49 }
50 template <typename DescriptionT = Aws::String>
51 ExperimentRunEvent& WithDescription(DescriptionT&& value) {
52 SetDescription(std::forward<DescriptionT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::String& GetAssociatedDeployment() const { return m_associatedDeployment; }
63 inline bool AssociatedDeploymentHasBeenSet() const { return m_associatedDeploymentHasBeenSet; }
64 template <typename AssociatedDeploymentT = Aws::String>
65 void SetAssociatedDeployment(AssociatedDeploymentT&& value) {
66 m_associatedDeploymentHasBeenSet = true;
67 m_associatedDeployment = std::forward<AssociatedDeploymentT>(value);
68 }
69 template <typename AssociatedDeploymentT = Aws::String>
70 ExperimentRunEvent& WithAssociatedDeployment(AssociatedDeploymentT&& value) {
71 SetAssociatedDeployment(std::forward<AssociatedDeploymentT>(value));
72 return *this;
73 }
75
77
82 inline ExperimentRunEventType GetEventType() const { return m_eventType; }
83 inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
85 m_eventTypeHasBeenSet = true;
86 m_eventType = value;
87 }
89 SetEventType(value);
90 return *this;
91 }
93
95
98 inline const Aws::Utils::DateTime& GetOccurredAt() const { return m_occurredAt; }
99 inline bool OccurredAtHasBeenSet() const { return m_occurredAtHasBeenSet; }
100 template <typename OccurredAtT = Aws::Utils::DateTime>
101 void SetOccurredAt(OccurredAtT&& value) {
102 m_occurredAtHasBeenSet = true;
103 m_occurredAt = std::forward<OccurredAtT>(value);
104 }
105 template <typename OccurredAtT = Aws::Utils::DateTime>
106 ExperimentRunEvent& WithOccurredAt(OccurredAtT&& value) {
107 SetOccurredAt(std::forward<OccurredAtT>(value));
108 return *this;
109 }
111
113
116 inline TriggeredBy GetTriggeredBy() const { return m_triggeredBy; }
117 inline bool TriggeredByHasBeenSet() const { return m_triggeredByHasBeenSet; }
118 inline void SetTriggeredBy(TriggeredBy value) {
119 m_triggeredByHasBeenSet = true;
120 m_triggeredBy = value;
121 }
123 SetTriggeredBy(value);
124 return *this;
125 }
127
129
132 inline double GetExposurePercentage() const { return m_exposurePercentage; }
133 inline bool ExposurePercentageHasBeenSet() const { return m_exposurePercentageHasBeenSet; }
134 inline void SetExposurePercentage(double value) {
135 m_exposurePercentageHasBeenSet = true;
136 m_exposurePercentage = value;
137 }
140 return *this;
141 }
143
145
148 inline const TreatmentOverrides& GetTreatmentOverrides() const { return m_treatmentOverrides; }
149 inline bool TreatmentOverridesHasBeenSet() const { return m_treatmentOverridesHasBeenSet; }
150 template <typename TreatmentOverridesT = TreatmentOverrides>
151 void SetTreatmentOverrides(TreatmentOverridesT&& value) {
152 m_treatmentOverridesHasBeenSet = true;
153 m_treatmentOverrides = std::forward<TreatmentOverridesT>(value);
154 }
155 template <typename TreatmentOverridesT = TreatmentOverrides>
156 ExperimentRunEvent& WithTreatmentOverrides(TreatmentOverridesT&& value) {
157 SetTreatmentOverrides(std::forward<TreatmentOverridesT>(value));
158 return *this;
159 }
161 private:
162 Aws::String m_description;
163
164 Aws::String m_associatedDeployment;
165
167
168 Aws::Utils::DateTime m_occurredAt{};
169
170 TriggeredBy m_triggeredBy{TriggeredBy::NOT_SET};
171
172 double m_exposurePercentage{0.0};
173
174 TreatmentOverrides m_treatmentOverrides;
175 bool m_descriptionHasBeenSet = false;
176 bool m_associatedDeploymentHasBeenSet = false;
177 bool m_eventTypeHasBeenSet = false;
178 bool m_occurredAtHasBeenSet = false;
179 bool m_triggeredByHasBeenSet = false;
180 bool m_exposurePercentageHasBeenSet = false;
181 bool m_treatmentOverridesHasBeenSet = false;
182};
183
184} // namespace Model
185} // namespace AppConfig
186} // namespace Aws
void SetTreatmentOverrides(TreatmentOverridesT &&value)
void SetAssociatedDeployment(AssociatedDeploymentT &&value)
ExperimentRunEvent & WithOccurredAt(OccurredAtT &&value)
ExperimentRunEvent & WithDescription(DescriptionT &&value)
AWS_APPCONFIG_API ExperimentRunEvent(Aws::Utils::Json::JsonView jsonValue)
AWS_APPCONFIG_API ExperimentRunEvent & operator=(Aws::Utils::Json::JsonView jsonValue)
ExperimentRunEvent & WithEventType(ExperimentRunEventType value)
ExperimentRunEventType GetEventType() const
AWS_APPCONFIG_API ExperimentRunEvent()=default
ExperimentRunEvent & WithTreatmentOverrides(TreatmentOverridesT &&value)
const TreatmentOverrides & GetTreatmentOverrides() const
ExperimentRunEvent & WithExposurePercentage(double value)
const Aws::String & GetAssociatedDeployment() const
const Aws::Utils::DateTime & GetOccurredAt() const
ExperimentRunEvent & WithAssociatedDeployment(AssociatedDeploymentT &&value)
ExperimentRunEvent & WithTriggeredBy(TriggeredBy value)
void SetEventType(ExperimentRunEventType value)
AWS_APPCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue