7#include <aws/evidently/CloudWatchEvidently_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
23namespace CloudWatchEvidently
39 AWS_CLOUDWATCHEVIDENTLY_API
Segment() =
default;
51 template<
typename ArnT = Aws::String>
52 void SetArn(ArnT&& value) { m_arnHasBeenSet =
true; m_arn = std::forward<ArnT>(value); }
53 template<
typename ArnT = Aws::String>
63 template<
typename CreatedTimeT = Aws::Utils::DateTime>
64 void SetCreatedTime(CreatedTimeT&& value) { m_createdTimeHasBeenSet =
true; m_createdTime = std::forward<CreatedTimeT>(value); }
65 template<
typename CreatedTimeT = Aws::Utils::DateTime>
75 template<
typename DescriptionT = Aws::String>
76 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
77 template<
typename DescriptionT = Aws::String>
88 inline void SetExperimentCount(
long long value) { m_experimentCountHasBeenSet =
true; m_experimentCount = value; }
98 template<
typename LastUpdatedTimeT = Aws::Utils::DateTime>
99 void SetLastUpdatedTime(LastUpdatedTimeT&& value) { m_lastUpdatedTimeHasBeenSet =
true; m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value); }
100 template<
typename LastUpdatedTimeT = Aws::Utils::DateTime>
111 inline void SetLaunchCount(
long long value) { m_launchCountHasBeenSet =
true; m_launchCount = value; }
121 template<
typename NameT = Aws::String>
122 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
123 template<
typename NameT = Aws::String>
137 template<
typename PatternT = Aws::String>
138 void SetPattern(PatternT&& value) { m_patternHasBeenSet =
true; m_pattern = std::forward<PatternT>(value); }
139 template<
typename PatternT = Aws::String>
149 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
150 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
151 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
153 template<
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
155 m_tagsHasBeenSet =
true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
return *
this;
161 bool m_arnHasBeenSet =
false;
164 bool m_createdTimeHasBeenSet =
false;
167 bool m_descriptionHasBeenSet =
false;
169 long long m_experimentCount{0};
170 bool m_experimentCountHasBeenSet =
false;
173 bool m_lastUpdatedTimeHasBeenSet =
false;
175 long long m_launchCount{0};
176 bool m_launchCountHasBeenSet =
false;
179 bool m_nameHasBeenSet =
false;
182 bool m_patternHasBeenSet =
false;
185 bool m_tagsHasBeenSet =
false;
const Aws::String & GetPattern() const
Segment & WithTags(TagsT &&value)
Segment & AddTags(TagsKeyT &&key, TagsValueT &&value)
Segment & WithCreatedTime(CreatedTimeT &&value)
AWS_CLOUDWATCHEVIDENTLY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetCreatedTime() const
bool PatternHasBeenSet() const
Segment & WithLaunchCount(long long value)
void SetCreatedTime(CreatedTimeT &&value)
Segment & WithPattern(PatternT &&value)
void SetExperimentCount(long long value)
void SetLastUpdatedTime(LastUpdatedTimeT &&value)
Segment & WithDescription(DescriptionT &&value)
bool CreatedTimeHasBeenSet() const
const Aws::String & GetName() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const Aws::String & GetDescription() const
void SetTags(TagsT &&value)
bool TagsHasBeenSet() const
bool ExperimentCountHasBeenSet() const
AWS_CLOUDWATCHEVIDENTLY_API Segment(Aws::Utils::Json::JsonView jsonValue)
Segment & WithLastUpdatedTime(LastUpdatedTimeT &&value)
bool NameHasBeenSet() const
AWS_CLOUDWATCHEVIDENTLY_API Segment()=default
Segment & WithExperimentCount(long long value)
long long GetLaunchCount() const
const Aws::String & GetArn() const
void SetArn(ArnT &&value)
AWS_CLOUDWATCHEVIDENTLY_API Segment & operator=(Aws::Utils::Json::JsonView jsonValue)
bool DescriptionHasBeenSet() const
Segment & WithArn(ArnT &&value)
Segment & WithName(NameT &&value)
bool LaunchCountHasBeenSet() const
void SetLaunchCount(long long value)
void SetPattern(PatternT &&value)
long long GetExperimentCount() const
void SetName(NameT &&value)
bool ArnHasBeenSet() const
void SetDescription(DescriptionT &&value)
const Aws::Utils::DateTime & GetLastUpdatedTime() const
bool LastUpdatedTimeHasBeenSet() const
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
Aws::Utils::Json::JsonValue JsonValue