7#include <aws/appmonetization/AppMonetizationRequest.h>
8#include <aws/appmonetization/AppMonetization_EXPORTS.h>
9#include <aws/appmonetization/model/MetricDefinition.h>
10#include <aws/core/utils/UUID.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
17namespace AppMonetization {
46 template <
typename AppIdT = Aws::String>
48 m_appIdHasBeenSet =
true;
49 m_appId = std::forward<AppIdT>(value);
51 template <
typename AppIdT = Aws::String>
53 SetAppId(std::forward<AppIdT>(value));
65 template <
typename NameT = Aws::String>
67 m_nameHasBeenSet =
true;
68 m_name = std::forward<NameT>(value);
70 template <
typename NameT = Aws::String>
72 SetName(std::forward<NameT>(value));
83 template <
typename DescriptionT = Aws::String>
85 m_descriptionHasBeenSet =
true;
86 m_description = std::forward<DescriptionT>(value);
88 template <
typename DescriptionT = Aws::String>
102 template <
typename EventTypeT = Aws::String>
104 m_eventTypeHasBeenSet =
true;
105 m_eventType = std::forward<EventTypeT>(value);
107 template <
typename EventTypeT = Aws::String>
121 template <
typename UnitNameT = Aws::String>
123 m_unitNameHasBeenSet =
true;
124 m_unitName = std::forward<UnitNameT>(value);
126 template <
typename UnitNameT = Aws::String>
140 template <
typename DefinitionT = MetricDefinition>
142 m_definitionHasBeenSet =
true;
143 m_definition = std::forward<DefinitionT>(value);
145 template <
typename DefinitionT = MetricDefinition>
160 template <
typename ClientTokenT = Aws::String>
162 m_clientTokenHasBeenSet =
true;
163 m_clientToken = std::forward<ClientTokenT>(value);
165 template <
typename ClientTokenT = Aws::String>
179 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
181 m_tagsHasBeenSet =
true;
182 m_tags = std::forward<TagsT>(value);
184 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
186 SetTags(std::forward<TagsT>(value));
189 template <
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
191 m_tagsHasBeenSet =
true;
192 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
212 bool m_appIdHasBeenSet =
false;
213 bool m_nameHasBeenSet =
false;
214 bool m_descriptionHasBeenSet =
false;
215 bool m_eventTypeHasBeenSet =
false;
216 bool m_unitNameHasBeenSet =
false;
217 bool m_definitionHasBeenSet =
false;
218 bool m_clientTokenHasBeenSet =
true;
219 bool m_tagsHasBeenSet =
false;
CreateMetricRequest & WithEventType(EventTypeT &&value)
void SetDefinition(DefinitionT &&value)
CreateMetricRequest & WithDescription(DescriptionT &&value)
bool UnitNameHasBeenSet() const
CreateMetricRequest & WithDefinition(DefinitionT &&value)
const MetricDefinition & GetDefinition() const
bool ClientTokenHasBeenSet() const
const Aws::String & GetEventType() const
CreateMetricRequest & WithTags(TagsT &&value)
void SetClientToken(ClientTokenT &&value)
const Aws::String & GetClientToken() const
AWS_APPMONETIZATION_API Aws::String SerializePayload() const override
void SetEventType(EventTypeT &&value)
void SetTags(TagsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetName(NameT &&value)
bool EventTypeHasBeenSet() const
const Aws::String & GetUnitName() const
CreateMetricRequest & WithName(NameT &&value)
bool DescriptionHasBeenSet() const
bool DefinitionHasBeenSet() const
void SetUnitName(UnitNameT &&value)
void SetAppId(AppIdT &&value)
bool NameHasBeenSet() const
void SetDescription(DescriptionT &&value)
CreateMetricRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateMetricRequest & WithClientToken(ClientTokenT &&value)
CreateMetricRequest & WithUnitName(UnitNameT &&value)
const Aws::String & GetName() const
bool AppIdHasBeenSet() const
virtual const char * GetServiceRequestName() const override
AWS_APPMONETIZATION_API CreateMetricRequest()=default
bool TagsHasBeenSet() const
const Aws::String & GetAppId() const
const Aws::String & GetDescription() const
CreateMetricRequest & WithAppId(AppIdT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
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