/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include This structure contains information about one audience segment. You
* can use segments in your experiments and launches to narrow the user sessions
* used for experiment or launch to only the user sessions that match one or more
* criteria.See Also:
AWS
* API Reference
The ARN of the segment.
*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *The ARN of the segment.
*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *The ARN of the segment.
*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *The ARN of the segment.
*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *The ARN of the segment.
*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *The ARN of the segment.
*/ inline Segment& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *The ARN of the segment.
*/ inline Segment& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *The ARN of the segment.
*/ inline Segment& WithArn(const char* value) { SetArn(value); return *this;} /** *The date and time that this segment was created.
*/ inline const Aws::Utils::DateTime& GetCreatedTime() const{ return m_createdTime; } /** *The date and time that this segment was created.
*/ inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; } /** *The date and time that this segment was created.
*/ inline void SetCreatedTime(const Aws::Utils::DateTime& value) { m_createdTimeHasBeenSet = true; m_createdTime = value; } /** *The date and time that this segment was created.
*/ inline void SetCreatedTime(Aws::Utils::DateTime&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::move(value); } /** *The date and time that this segment was created.
*/ inline Segment& WithCreatedTime(const Aws::Utils::DateTime& value) { SetCreatedTime(value); return *this;} /** *The date and time that this segment was created.
*/ inline Segment& WithCreatedTime(Aws::Utils::DateTime&& value) { SetCreatedTime(std::move(value)); return *this;} /** *The customer-created description for this segment.
*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *The customer-created description for this segment.
*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *The customer-created description for this segment.
*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *The customer-created description for this segment.
*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *The customer-created description for this segment.
*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *The customer-created description for this segment.
*/ inline Segment& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *The customer-created description for this segment.
*/ inline Segment& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *The customer-created description for this segment.
*/ inline Segment& WithDescription(const char* value) { SetDescription(value); return *this;} /** *The number of experiments that this segment is used in. This count includes * all current experiments, not just those that are currently running.
*/ inline long long GetExperimentCount() const{ return m_experimentCount; } /** *The number of experiments that this segment is used in. This count includes * all current experiments, not just those that are currently running.
*/ inline bool ExperimentCountHasBeenSet() const { return m_experimentCountHasBeenSet; } /** *The number of experiments that this segment is used in. This count includes * all current experiments, not just those that are currently running.
*/ inline void SetExperimentCount(long long value) { m_experimentCountHasBeenSet = true; m_experimentCount = value; } /** *The number of experiments that this segment is used in. This count includes * all current experiments, not just those that are currently running.
*/ inline Segment& WithExperimentCount(long long value) { SetExperimentCount(value); return *this;} /** *The date and time that this segment was most recently updated.
*/ inline const Aws::Utils::DateTime& GetLastUpdatedTime() const{ return m_lastUpdatedTime; } /** *The date and time that this segment was most recently updated.
*/ inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; } /** *The date and time that this segment was most recently updated.
*/ inline void SetLastUpdatedTime(const Aws::Utils::DateTime& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = value; } /** *The date and time that this segment was most recently updated.
*/ inline void SetLastUpdatedTime(Aws::Utils::DateTime&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::move(value); } /** *The date and time that this segment was most recently updated.
*/ inline Segment& WithLastUpdatedTime(const Aws::Utils::DateTime& value) { SetLastUpdatedTime(value); return *this;} /** *The date and time that this segment was most recently updated.
*/ inline Segment& WithLastUpdatedTime(Aws::Utils::DateTime&& value) { SetLastUpdatedTime(std::move(value)); return *this;} /** *The number of launches that this segment is used in. This count includes all * current launches, not just those that are currently running.
*/ inline long long GetLaunchCount() const{ return m_launchCount; } /** *The number of launches that this segment is used in. This count includes all * current launches, not just those that are currently running.
*/ inline bool LaunchCountHasBeenSet() const { return m_launchCountHasBeenSet; } /** *The number of launches that this segment is used in. This count includes all * current launches, not just those that are currently running.
*/ inline void SetLaunchCount(long long value) { m_launchCountHasBeenSet = true; m_launchCount = value; } /** *The number of launches that this segment is used in. This count includes all * current launches, not just those that are currently running.
*/ inline Segment& WithLaunchCount(long long value) { SetLaunchCount(value); return *this;} /** *The name of the segment.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *The name of the segment.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The name of the segment.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *The name of the segment.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *The name of the segment.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *The name of the segment.
*/ inline Segment& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The name of the segment.
*/ inline Segment& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The name of the segment.
*/ inline Segment& WithName(const char* value) { SetName(value); return *this;} /** *The pattern that defines the attributes to use to evalute whether a user * session will be in the segment. For more information about the pattern syntax, * see Segment * rule pattern syntax.
*/ inline const Aws::String& GetPattern() const{ return m_pattern; } /** *The pattern that defines the attributes to use to evalute whether a user * session will be in the segment. For more information about the pattern syntax, * see Segment * rule pattern syntax.
*/ inline bool PatternHasBeenSet() const { return m_patternHasBeenSet; } /** *The pattern that defines the attributes to use to evalute whether a user * session will be in the segment. For more information about the pattern syntax, * see Segment * rule pattern syntax.
*/ inline void SetPattern(const Aws::String& value) { m_patternHasBeenSet = true; m_pattern = value; } /** *The pattern that defines the attributes to use to evalute whether a user * session will be in the segment. For more information about the pattern syntax, * see Segment * rule pattern syntax.
*/ inline void SetPattern(Aws::String&& value) { m_patternHasBeenSet = true; m_pattern = std::move(value); } /** *The pattern that defines the attributes to use to evalute whether a user * session will be in the segment. For more information about the pattern syntax, * see Segment * rule pattern syntax.
*/ inline void SetPattern(const char* value) { m_patternHasBeenSet = true; m_pattern.assign(value); } /** *The pattern that defines the attributes to use to evalute whether a user * session will be in the segment. For more information about the pattern syntax, * see Segment * rule pattern syntax.
*/ inline Segment& WithPattern(const Aws::String& value) { SetPattern(value); return *this;} /** *The pattern that defines the attributes to use to evalute whether a user * session will be in the segment. For more information about the pattern syntax, * see Segment * rule pattern syntax.
*/ inline Segment& WithPattern(Aws::String&& value) { SetPattern(std::move(value)); return *this;} /** *The pattern that defines the attributes to use to evalute whether a user * session will be in the segment. For more information about the pattern syntax, * see Segment * rule pattern syntax.
*/ inline Segment& WithPattern(const char* value) { SetPattern(value); return *this;} /** *The list of tag keys and values associated with this launch.
*/ inline const Aws::MapThe list of tag keys and values associated with this launch.
*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *The list of tag keys and values associated with this launch.
*/ inline void SetTags(const Aws::MapThe list of tag keys and values associated with this launch.
*/ inline void SetTags(Aws::MapThe list of tag keys and values associated with this launch.
*/ inline Segment& WithTags(const Aws::MapThe list of tag keys and values associated with this launch.
*/ inline Segment& WithTags(Aws::MapThe list of tag keys and values associated with this launch.
*/ inline Segment& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *The list of tag keys and values associated with this launch.
*/ inline Segment& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *The list of tag keys and values associated with this launch.
*/ inline Segment& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *The list of tag keys and values associated with this launch.
*/ inline Segment& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *The list of tag keys and values associated with this launch.
*/ inline Segment& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *The list of tag keys and values associated with this launch.
*/ inline Segment& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *The list of tag keys and values associated with this launch.
*/ inline Segment& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::Utils::DateTime m_createdTime; bool m_createdTimeHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; long long m_experimentCount; bool m_experimentCountHasBeenSet = false; Aws::Utils::DateTime m_lastUpdatedTime; bool m_lastUpdatedTimeHasBeenSet = false; long long m_launchCount; bool m_launchCountHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_pattern; bool m_patternHasBeenSet = false; Aws::Map