7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/AvailableFilter.h>
9#include <aws/connect/model/CreatedByInfo.h>
10#include <aws/connect/model/MetricCalculation.h>
11#include <aws/connect/model/MetricCreationMethod.h>
12#include <aws/connect/model/MetricStatus.h>
13#include <aws/connect/model/MetricType.h>
14#include <aws/connect/model/MetricUnit.h>
15#include <aws/connect/model/TrendIndicator.h>
16#include <aws/core/utils/DateTime.h>
17#include <aws/core/utils/memory/stl/AWSMap.h>
18#include <aws/core/utils/memory/stl/AWSString.h>
19#include <aws/core/utils/memory/stl/AWSVector.h>
53 template <
typename ArnT = Aws::String>
55 m_arnHasBeenSet =
true;
56 m_arn = std::forward<ArnT>(value);
58 template <
typename ArnT = Aws::String>
60 SetArn(std::forward<ArnT>(value));
71 template <
typename IdT = Aws::String>
73 m_idHasBeenSet =
true;
74 m_id = std::forward<IdT>(value);
76 template <
typename IdT = Aws::String>
78 SetId(std::forward<IdT>(value));
89 template <
typename NameT = Aws::String>
91 m_nameHasBeenSet =
true;
92 m_name = std::forward<NameT>(value);
94 template <
typename NameT = Aws::String>
96 SetName(std::forward<NameT>(value));
107 template <
typename DescriptionT = Aws::String>
109 m_descriptionHasBeenSet =
true;
110 m_description = std::forward<DescriptionT>(value);
112 template <
typename DescriptionT = Aws::String>
125 template <
typename MetricCalculationT = MetricCalculation>
127 m_metricCalculationHasBeenSet =
true;
128 m_metricCalculation = std::forward<MetricCalculationT>(value);
130 template <
typename MetricCalculationT = MetricCalculation>
147 m_creationMethodHasBeenSet =
true;
148 m_creationMethod = value;
164 m_statusHasBeenSet =
true;
181 m_typeHasBeenSet =
true;
197 m_unitHasBeenSet =
true;
214 m_positiveTrendIndicatorHasBeenSet =
true;
215 m_positiveTrendIndicator = value;
229 template <
typename GroupingsT = Aws::Vector<Aws::String>>
231 m_groupingsHasBeenSet =
true;
232 m_groupings = std::forward<GroupingsT>(value);
234 template <
typename GroupingsT = Aws::Vector<Aws::String>>
239 template <
typename GroupingsT = Aws::String>
241 m_groupingsHasBeenSet =
true;
242 m_groupings.emplace_back(std::forward<GroupingsT>(value));
253 template <
typename FiltersT = Aws::Vector<AvailableFilter>>
255 m_filtersHasBeenSet =
true;
256 m_filters = std::forward<FiltersT>(value);
258 template <
typename FiltersT = Aws::Vector<AvailableFilter>>
263 template <
typename FiltersT = AvailableFilter>
265 m_filtersHasBeenSet =
true;
266 m_filters.emplace_back(std::forward<FiltersT>(value));
277 template <
typename EffectiveTimeT = Aws::Utils::DateTime>
279 m_effectiveTimeHasBeenSet =
true;
280 m_effectiveTime = std::forward<EffectiveTimeT>(value);
282 template <
typename EffectiveTimeT = Aws::Utils::DateTime>
296 m_refreshRateHasBeenSet =
true;
297 m_refreshRate = value;
311 template <
typename CategoryT = Aws::String>
313 m_categoryHasBeenSet =
true;
314 m_category = std::forward<CategoryT>(value);
316 template <
typename CategoryT = Aws::String>
329 template <
typename SupportedStatsT = Aws::Vector<Aws::String>>
331 m_supportedStatsHasBeenSet =
true;
332 m_supportedStats = std::forward<SupportedStatsT>(value);
334 template <
typename SupportedStatsT = Aws::Vector<Aws::String>>
339 template <
typename SupportedStatsT = Aws::String>
341 m_supportedStatsHasBeenSet =
true;
342 m_supportedStats.emplace_back(std::forward<SupportedStatsT>(value));
353 template <
typename DefaultStatT = Aws::String>
355 m_defaultStatHasBeenSet =
true;
356 m_defaultStat = std::forward<DefaultStatT>(value);
358 template <
typename DefaultStatT = Aws::String>
373 m_supportsPreaggregateCalculationHasBeenSet =
true;
374 m_supportsPreaggregateCalculation = value;
390 m_supportsCustomCalculationHasBeenSet =
true;
391 m_supportsCustomCalculation = value;
405 template <
typename PrimaryEventSourceT = Aws::String>
407 m_primaryEventSourceHasBeenSet =
true;
408 m_primaryEventSource = std::forward<PrimaryEventSourceT>(value);
410 template <
typename PrimaryEventSourceT = Aws::String>
424 template <
typename PrimaryEventSourceEffectiveTimestampTypeT = Aws::String>
426 m_primaryEventSourceEffectiveTimestampTypeHasBeenSet =
true;
427 m_primaryEventSourceEffectiveTimestampType = std::forward<PrimaryEventSourceEffectiveTimestampTypeT>(value);
429 template <
typename PrimaryEventSourceEffectiveTimestampTypeT = Aws::String>
442 template <
typename CreatedTimeT = Aws::Utils::DateTime>
444 m_createdTimeHasBeenSet =
true;
445 m_createdTime = std::forward<CreatedTimeT>(value);
447 template <
typename CreatedTimeT = Aws::Utils::DateTime>
461 template <
typename CreatedUserT = CreatedByInfo>
463 m_createdUserHasBeenSet =
true;
464 m_createdUser = std::forward<CreatedUserT>(value);
466 template <
typename CreatedUserT = CreatedByInfo>
479 template <
typename LastModifiedRegionT = Aws::String>
481 m_lastModifiedRegionHasBeenSet =
true;
482 m_lastModifiedRegion = std::forward<LastModifiedRegionT>(value);
484 template <
typename LastModifiedRegionT = Aws::String>
497 template <
typename LastModifiedTimeT = Aws::Utils::DateTime>
499 m_lastModifiedTimeHasBeenSet =
true;
500 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
502 template <
typename LastModifiedTimeT = Aws::Utils::DateTime>
516 template <
typename LastModifiedUserT = CreatedByInfo>
518 m_lastModifiedUserHasBeenSet =
true;
519 m_lastModifiedUser = std::forward<LastModifiedUserT>(value);
521 template <
typename LastModifiedUserT = CreatedByInfo>
535 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
537 m_tagsHasBeenSet =
true;
538 m_tags = std::forward<TagsT>(value);
540 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
542 SetTags(std::forward<TagsT>(value));
545 template <
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
547 m_tagsHasBeenSet =
true;
548 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
579 long long m_refreshRate{0};
587 bool m_supportsPreaggregateCalculation{
false};
589 bool m_supportsCustomCalculation{
false};
593 Aws::String m_primaryEventSourceEffectiveTimestampType;
597 CreatedByInfo m_createdUser;
603 CreatedByInfo m_lastModifiedUser;
606 bool m_arnHasBeenSet =
false;
607 bool m_idHasBeenSet =
false;
608 bool m_nameHasBeenSet =
false;
609 bool m_descriptionHasBeenSet =
false;
610 bool m_metricCalculationHasBeenSet =
false;
611 bool m_creationMethodHasBeenSet =
false;
612 bool m_statusHasBeenSet =
false;
613 bool m_typeHasBeenSet =
false;
614 bool m_unitHasBeenSet =
false;
615 bool m_positiveTrendIndicatorHasBeenSet =
false;
616 bool m_groupingsHasBeenSet =
false;
617 bool m_filtersHasBeenSet =
false;
618 bool m_effectiveTimeHasBeenSet =
false;
619 bool m_refreshRateHasBeenSet =
false;
620 bool m_categoryHasBeenSet =
false;
621 bool m_supportedStatsHasBeenSet =
false;
622 bool m_defaultStatHasBeenSet =
false;
623 bool m_supportsPreaggregateCalculationHasBeenSet =
false;
624 bool m_supportsCustomCalculationHasBeenSet =
false;
625 bool m_primaryEventSourceHasBeenSet =
false;
626 bool m_primaryEventSourceEffectiveTimestampTypeHasBeenSet =
false;
627 bool m_createdTimeHasBeenSet =
false;
628 bool m_createdUserHasBeenSet =
false;
629 bool m_lastModifiedRegionHasBeenSet =
false;
630 bool m_lastModifiedTimeHasBeenSet =
false;
631 bool m_lastModifiedUserHasBeenSet =
false;
632 bool m_tagsHasBeenSet =
false;
bool GroupingsHasBeenSet() const
const MetricCalculation & GetMetricCalculation() const
TrendIndicator GetPositiveTrendIndicator() const
bool GetSupportsPreaggregateCalculation() const
void SetLastModifiedTime(LastModifiedTimeT &&value)
bool DescriptionHasBeenSet() const
MetricDefinition & WithPrimaryEventSource(PrimaryEventSourceT &&value)
MetricDefinition & AddSupportedStats(SupportedStatsT &&value)
MetricDefinition & AddGroupings(GroupingsT &&value)
MetricDefinition & WithUnit(MetricUnit value)
MetricDefinition & WithMetricCalculation(MetricCalculationT &&value)
MetricDefinition & WithSupportsPreaggregateCalculation(bool value)
const Aws::String & GetName() const
void SetType(MetricType value)
void SetTags(TagsT &&value)
bool PrimaryEventSourceHasBeenSet() const
const Aws::String & GetPrimaryEventSource() const
bool GetSupportsCustomCalculation() const
void SetSupportsCustomCalculation(bool value)
bool CreatedTimeHasBeenSet() const
bool LastModifiedTimeHasBeenSet() const
MetricDefinition & WithDescription(DescriptionT &&value)
MetricDefinition & WithArn(ArnT &&value)
void SetCategory(CategoryT &&value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
MetricDefinition & WithRefreshRate(long long value)
void SetPrimaryEventSourceEffectiveTimestampType(PrimaryEventSourceEffectiveTimestampTypeT &&value)
bool SupportedStatsHasBeenSet() const
bool FiltersHasBeenSet() const
bool LastModifiedRegionHasBeenSet() const
const Aws::Utils::DateTime & GetCreatedTime() const
MetricDefinition & WithCreatedTime(CreatedTimeT &&value)
MetricDefinition & WithLastModifiedUser(LastModifiedUserT &&value)
MetricDefinition & WithId(IdT &&value)
bool CategoryHasBeenSet() const
MetricDefinition & WithCreatedUser(CreatedUserT &&value)
void SetCreatedUser(CreatedUserT &&value)
const Aws::String & GetDescription() const
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
bool TypeHasBeenSet() const
bool TagsHasBeenSet() const
MetricDefinition & WithStatus(MetricStatus value)
MetricDefinition & WithEffectiveTime(EffectiveTimeT &&value)
bool NameHasBeenSet() const
bool StatusHasBeenSet() const
bool RefreshRateHasBeenSet() const
void SetFilters(FiltersT &&value)
void SetPrimaryEventSource(PrimaryEventSourceT &&value)
MetricDefinition & WithTags(TagsT &&value)
void SetPositiveTrendIndicator(TrendIndicator value)
MetricDefinition & AddFilters(FiltersT &&value)
const CreatedByInfo & GetLastModifiedUser() const
MetricDefinition & WithCreationMethod(MetricCreationMethod value)
MetricDefinition & WithLastModifiedRegion(LastModifiedRegionT &&value)
bool CreationMethodHasBeenSet() const
MetricDefinition & WithFilters(FiltersT &&value)
bool CreatedUserHasBeenSet() const
AWS_CONNECT_API MetricDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
bool DefaultStatHasBeenSet() const
bool EffectiveTimeHasBeenSet() const
MetricDefinition & WithDefaultStat(DefaultStatT &&value)
MetricDefinition & WithPrimaryEventSourceEffectiveTimestampType(PrimaryEventSourceEffectiveTimestampTypeT &&value)
void SetEffectiveTime(EffectiveTimeT &&value)
void SetMetricCalculation(MetricCalculationT &&value)
void SetCreationMethod(MetricCreationMethod value)
bool IdHasBeenSet() const
AWS_CONNECT_API MetricDefinition(Aws::Utils::Json::JsonView jsonValue)
void SetSupportsPreaggregateCalculation(bool value)
void SetArn(ArnT &&value)
MetricUnit GetUnit() const
MetricType GetType() const
void SetUnit(MetricUnit value)
MetricStatus GetStatus() const
MetricDefinition & WithLastModifiedTime(LastModifiedTimeT &&value)
const Aws::String & GetLastModifiedRegion() const
const Aws::Vector< AvailableFilter > & GetFilters() const
void SetCreatedTime(CreatedTimeT &&value)
MetricDefinition & WithGroupings(GroupingsT &&value)
void SetDescription(DescriptionT &&value)
void SetStatus(MetricStatus value)
bool PrimaryEventSourceEffectiveTimestampTypeHasBeenSet() const
MetricDefinition & AddTags(TagsKeyT &&key, TagsValueT &&value)
MetricDefinition & WithSupportedStats(SupportedStatsT &&value)
void SetName(NameT &&value)
const Aws::String & GetArn() const
void SetDefaultStat(DefaultStatT &&value)
bool UnitHasBeenSet() const
bool SupportsPreaggregateCalculationHasBeenSet() const
const Aws::Vector< Aws::String > & GetGroupings() const
bool MetricCalculationHasBeenSet() const
MetricDefinition & WithType(MetricType value)
void SetRefreshRate(long long value)
bool ArnHasBeenSet() const
const Aws::Vector< Aws::String > & GetSupportedStats() const
MetricDefinition & WithName(NameT &&value)
void SetSupportedStats(SupportedStatsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_CONNECT_API MetricDefinition()=default
const Aws::String & GetDefaultStat() const
bool LastModifiedUserHasBeenSet() const
const Aws::Utils::DateTime & GetEffectiveTime() const
void SetLastModifiedRegion(LastModifiedRegionT &&value)
long long GetRefreshRate() const
const CreatedByInfo & GetCreatedUser() const
MetricDefinition & WithCategory(CategoryT &&value)
void SetLastModifiedUser(LastModifiedUserT &&value)
bool PositiveTrendIndicatorHasBeenSet() const
const Aws::String & GetCategory() const
const Aws::String & GetId() const
MetricDefinition & WithPositiveTrendIndicator(TrendIndicator value)
const Aws::String & GetPrimaryEventSourceEffectiveTimestampType() const
MetricCreationMethod GetCreationMethod() const
bool SupportsCustomCalculationHasBeenSet() const
void SetGroupings(GroupingsT &&value)
MetricDefinition & WithSupportsCustomCalculation(bool value)
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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue