7#include <aws/appmonetization/AppMonetization_EXPORTS.h>
8#include <aws/appmonetization/model/MetricDefinition.h>
9#include <aws/appmonetization/model/PlanStage.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
21namespace AppMonetization {
33 AWS_APPMONETIZATION_API
Metric() =
default;
44 template <
typename AppIdT = Aws::String>
46 m_appIdHasBeenSet =
true;
47 m_appId = std::forward<AppIdT>(value);
49 template <
typename AppIdT = Aws::String>
51 SetAppId(std::forward<AppIdT>(value));
63 template <
typename MetricIdT = Aws::String>
65 m_metricIdHasBeenSet =
true;
66 m_metricId = std::forward<MetricIdT>(value);
68 template <
typename MetricIdT = Aws::String>
81 template <
typename NameT = Aws::String>
83 m_nameHasBeenSet =
true;
84 m_name = std::forward<NameT>(value);
86 template <
typename NameT = Aws::String>
88 SetName(std::forward<NameT>(value));
99 template <
typename DescriptionT = Aws::String>
101 m_descriptionHasBeenSet =
true;
102 m_description = std::forward<DescriptionT>(value);
104 template <
typename DescriptionT = Aws::String>
117 template <
typename EventTypeT = Aws::String>
119 m_eventTypeHasBeenSet =
true;
120 m_eventType = std::forward<EventTypeT>(value);
122 template <
typename EventTypeT = Aws::String>
135 template <
typename UnitNameT = Aws::String>
137 m_unitNameHasBeenSet =
true;
138 m_unitName = std::forward<UnitNameT>(value);
140 template <
typename UnitNameT = Aws::String>
154 template <
typename DefinitionT = MetricDefinition>
156 m_definitionHasBeenSet =
true;
157 m_definition = std::forward<DefinitionT>(value);
159 template <
typename DefinitionT = MetricDefinition>
172 template <
typename ArnT = Aws::String>
174 m_arnHasBeenSet =
true;
175 m_arn = std::forward<ArnT>(value);
177 template <
typename ArnT = Aws::String>
179 SetArn(std::forward<ArnT>(value));
192 m_stageHasBeenSet =
true;
218 bool m_appIdHasBeenSet =
false;
219 bool m_metricIdHasBeenSet =
false;
220 bool m_nameHasBeenSet =
false;
221 bool m_descriptionHasBeenSet =
false;
222 bool m_eventTypeHasBeenSet =
false;
223 bool m_unitNameHasBeenSet =
false;
224 bool m_definitionHasBeenSet =
false;
225 bool m_arnHasBeenSet =
false;
226 bool m_stageHasBeenSet =
false;
const Aws::String & GetArn() const
Metric & WithName(NameT &&value)
bool MetricIdHasBeenSet() const
void SetStage(PlanStage value)
void SetMetricId(MetricIdT &&value)
Metric & WithDescription(DescriptionT &&value)
AWS_APPMONETIZATION_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDescription(DescriptionT &&value)
Metric & WithEventType(EventTypeT &&value)
const Aws::String & GetEventType() const
bool NameHasBeenSet() const
bool DescriptionHasBeenSet() const
void SetEventType(EventTypeT &&value)
const Aws::String & GetName() const
bool AppIdHasBeenSet() const
Metric & WithDefinition(DefinitionT &&value)
Metric & WithStage(PlanStage value)
void SetAppId(AppIdT &&value)
bool UnitNameHasBeenSet() const
const Aws::String & GetUnitName() const
Metric & WithAppId(AppIdT &&value)
const Aws::String & GetMetricId() const
PlanStage GetStage() const
AWS_APPMONETIZATION_API Metric(Aws::Utils::Json::JsonView jsonValue)
bool DefinitionHasBeenSet() const
const MetricDefinition & GetDefinition() const
AWS_APPMONETIZATION_API Metric & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDefinition(DefinitionT &&value)
Metric & WithArn(ArnT &&value)
bool StageHasBeenSet() const
void SetName(NameT &&value)
const Aws::String & GetDescription() const
Metric & WithUnitName(UnitNameT &&value)
void SetUnitName(UnitNameT &&value)
bool EventTypeHasBeenSet() const
void SetArn(ArnT &&value)
AWS_APPMONETIZATION_API Metric()=default
bool ArnHasBeenSet() const
const Aws::String & GetAppId() const
Metric & WithMetricId(MetricIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue