7#include <aws/codeguruprofiler/CodeGuruProfiler_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
22namespace CodeGuruProfiler
36 AWS_CODEGURUPROFILER_API
Pattern() =
default;
48 template<
typename CountersToAggregateT = Aws::Vector<Aws::String>>
49 void SetCountersToAggregate(CountersToAggregateT&& value) { m_countersToAggregateHasBeenSet =
true; m_countersToAggregate = std::forward<CountersToAggregateT>(value); }
50 template<
typename CountersToAggregateT = Aws::Vector<Aws::String>>
52 template<
typename CountersToAggregateT = Aws::String>
53 Pattern&
AddCountersToAggregate(CountersToAggregateT&& value) { m_countersToAggregateHasBeenSet =
true; m_countersToAggregate.emplace_back(std::forward<CountersToAggregateT>(value));
return *
this; }
63 template<
typename DescriptionT = Aws::String>
64 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
65 template<
typename DescriptionT = Aws::String>
75 template<
typename IdT = Aws::String>
76 void SetId(IdT&& value) { m_idHasBeenSet =
true; m_id = std::forward<IdT>(value); }
77 template<
typename IdT = Aws::String>
87 template<
typename NameT = Aws::String>
88 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
89 template<
typename NameT = Aws::String>
100 template<
typename ResolutionStepsT = Aws::String>
101 void SetResolutionSteps(ResolutionStepsT&& value) { m_resolutionStepsHasBeenSet =
true; m_resolutionSteps = std::forward<ResolutionStepsT>(value); }
102 template<
typename ResolutionStepsT = Aws::String>
113 template<
typename TargetFramesT = Aws::Vector<Aws::Vector<Aws::String>>>
114 void SetTargetFrames(TargetFramesT&& value) { m_targetFramesHasBeenSet =
true; m_targetFrames = std::forward<TargetFramesT>(value); }
115 template<
typename TargetFramesT = Aws::Vector<Aws::Vector<Aws::String>>>
117 template<
typename TargetFramesT = Aws::Vector<Aws::String>>
118 Pattern&
AddTargetFrames(TargetFramesT&& value) { m_targetFramesHasBeenSet =
true; m_targetFrames.emplace_back(std::forward<TargetFramesT>(value));
return *
this; }
129 inline void SetThresholdPercent(
double value) { m_thresholdPercentHasBeenSet =
true; m_thresholdPercent = value; }
135 bool m_countersToAggregateHasBeenSet =
false;
138 bool m_descriptionHasBeenSet =
false;
141 bool m_idHasBeenSet =
false;
144 bool m_nameHasBeenSet =
false;
147 bool m_resolutionStepsHasBeenSet =
false;
150 bool m_targetFramesHasBeenSet =
false;
152 double m_thresholdPercent{0.0};
153 bool m_thresholdPercentHasBeenSet =
false;
bool ResolutionStepsHasBeenSet() const
bool ThresholdPercentHasBeenSet() const
Pattern & WithCountersToAggregate(CountersToAggregateT &&value)
Pattern & WithName(NameT &&value)
Pattern & WithId(IdT &&value)
AWS_CODEGURUPROFILER_API Pattern(Aws::Utils::Json::JsonView jsonValue)
void SetCountersToAggregate(CountersToAggregateT &&value)
Pattern & WithThresholdPercent(double value)
const Aws::String & GetResolutionSteps() const
const Aws::String & GetName() const
void SetDescription(DescriptionT &&value)
Pattern & WithDescription(DescriptionT &&value)
AWS_CODEGURUPROFILER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::Vector< Aws::String > > & GetTargetFrames() const
bool IdHasBeenSet() const
Pattern & WithResolutionSteps(ResolutionStepsT &&value)
bool NameHasBeenSet() const
const Aws::String & GetId() const
bool CountersToAggregateHasBeenSet() const
Pattern & AddCountersToAggregate(CountersToAggregateT &&value)
Pattern & AddTargetFrames(TargetFramesT &&value)
AWS_CODEGURUPROFILER_API Pattern()=default
void SetThresholdPercent(double value)
void SetResolutionSteps(ResolutionStepsT &&value)
Pattern & WithTargetFrames(TargetFramesT &&value)
void SetTargetFrames(TargetFramesT &&value)
void SetName(NameT &&value)
bool TargetFramesHasBeenSet() const
const Aws::Vector< Aws::String > & GetCountersToAggregate() const
const Aws::String & GetDescription() const
bool DescriptionHasBeenSet() const
AWS_CODEGURUPROFILER_API Pattern & operator=(Aws::Utils::Json::JsonView jsonValue)
double GetThresholdPercent() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue