/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Pinpoint { namespace Model { /** *

Specifies the base segments and dimensions for a segment, and the * relationships between these base segments and dimensions.

See * Also:

AWS * API Reference

*/ class SegmentGroup { public: AWS_PINPOINT_API SegmentGroup(); AWS_PINPOINT_API SegmentGroup(Aws::Utils::Json::JsonView jsonValue); AWS_PINPOINT_API SegmentGroup& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

An array that defines the dimensions for the segment.

*/ inline const Aws::Vector& GetDimensions() const{ return m_dimensions; } /** *

An array that defines the dimensions for the segment.

*/ inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; } /** *

An array that defines the dimensions for the segment.

*/ inline void SetDimensions(const Aws::Vector& value) { m_dimensionsHasBeenSet = true; m_dimensions = value; } /** *

An array that defines the dimensions for the segment.

*/ inline void SetDimensions(Aws::Vector&& value) { m_dimensionsHasBeenSet = true; m_dimensions = std::move(value); } /** *

An array that defines the dimensions for the segment.

*/ inline SegmentGroup& WithDimensions(const Aws::Vector& value) { SetDimensions(value); return *this;} /** *

An array that defines the dimensions for the segment.

*/ inline SegmentGroup& WithDimensions(Aws::Vector&& value) { SetDimensions(std::move(value)); return *this;} /** *

An array that defines the dimensions for the segment.

*/ inline SegmentGroup& AddDimensions(const SegmentDimensions& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(value); return *this; } /** *

An array that defines the dimensions for the segment.

*/ inline SegmentGroup& AddDimensions(SegmentDimensions&& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(std::move(value)); return *this; } /** *

The base segment to build the segment on. A base segment, also referred to as * a source segment, defines the initial population of endpoints for a * segment. When you add dimensions to a segment, Amazon Pinpoint filters the base * segment by using the dimensions that you specify.

You can specify more * than one dimensional segment or only one imported segment. If you specify an * imported segment, the Amazon Pinpoint console displays a segment size estimate * that indicates the size of the imported segment without any filters applied to * it.

*/ inline const Aws::Vector& GetSourceSegments() const{ return m_sourceSegments; } /** *

The base segment to build the segment on. A base segment, also referred to as * a source segment, defines the initial population of endpoints for a * segment. When you add dimensions to a segment, Amazon Pinpoint filters the base * segment by using the dimensions that you specify.

You can specify more * than one dimensional segment or only one imported segment. If you specify an * imported segment, the Amazon Pinpoint console displays a segment size estimate * that indicates the size of the imported segment without any filters applied to * it.

*/ inline bool SourceSegmentsHasBeenSet() const { return m_sourceSegmentsHasBeenSet; } /** *

The base segment to build the segment on. A base segment, also referred to as * a source segment, defines the initial population of endpoints for a * segment. When you add dimensions to a segment, Amazon Pinpoint filters the base * segment by using the dimensions that you specify.

You can specify more * than one dimensional segment or only one imported segment. If you specify an * imported segment, the Amazon Pinpoint console displays a segment size estimate * that indicates the size of the imported segment without any filters applied to * it.

*/ inline void SetSourceSegments(const Aws::Vector& value) { m_sourceSegmentsHasBeenSet = true; m_sourceSegments = value; } /** *

The base segment to build the segment on. A base segment, also referred to as * a source segment, defines the initial population of endpoints for a * segment. When you add dimensions to a segment, Amazon Pinpoint filters the base * segment by using the dimensions that you specify.

You can specify more * than one dimensional segment or only one imported segment. If you specify an * imported segment, the Amazon Pinpoint console displays a segment size estimate * that indicates the size of the imported segment without any filters applied to * it.

*/ inline void SetSourceSegments(Aws::Vector&& value) { m_sourceSegmentsHasBeenSet = true; m_sourceSegments = std::move(value); } /** *

The base segment to build the segment on. A base segment, also referred to as * a source segment, defines the initial population of endpoints for a * segment. When you add dimensions to a segment, Amazon Pinpoint filters the base * segment by using the dimensions that you specify.

You can specify more * than one dimensional segment or only one imported segment. If you specify an * imported segment, the Amazon Pinpoint console displays a segment size estimate * that indicates the size of the imported segment without any filters applied to * it.

*/ inline SegmentGroup& WithSourceSegments(const Aws::Vector& value) { SetSourceSegments(value); return *this;} /** *

The base segment to build the segment on. A base segment, also referred to as * a source segment, defines the initial population of endpoints for a * segment. When you add dimensions to a segment, Amazon Pinpoint filters the base * segment by using the dimensions that you specify.

You can specify more * than one dimensional segment or only one imported segment. If you specify an * imported segment, the Amazon Pinpoint console displays a segment size estimate * that indicates the size of the imported segment without any filters applied to * it.

*/ inline SegmentGroup& WithSourceSegments(Aws::Vector&& value) { SetSourceSegments(std::move(value)); return *this;} /** *

The base segment to build the segment on. A base segment, also referred to as * a source segment, defines the initial population of endpoints for a * segment. When you add dimensions to a segment, Amazon Pinpoint filters the base * segment by using the dimensions that you specify.

You can specify more * than one dimensional segment or only one imported segment. If you specify an * imported segment, the Amazon Pinpoint console displays a segment size estimate * that indicates the size of the imported segment without any filters applied to * it.

*/ inline SegmentGroup& AddSourceSegments(const SegmentReference& value) { m_sourceSegmentsHasBeenSet = true; m_sourceSegments.push_back(value); return *this; } /** *

The base segment to build the segment on. A base segment, also referred to as * a source segment, defines the initial population of endpoints for a * segment. When you add dimensions to a segment, Amazon Pinpoint filters the base * segment by using the dimensions that you specify.

You can specify more * than one dimensional segment or only one imported segment. If you specify an * imported segment, the Amazon Pinpoint console displays a segment size estimate * that indicates the size of the imported segment without any filters applied to * it.

*/ inline SegmentGroup& AddSourceSegments(SegmentReference&& value) { m_sourceSegmentsHasBeenSet = true; m_sourceSegments.push_back(std::move(value)); return *this; } /** *

Specifies how to handle multiple base segments for the segment. For example, * if you specify three base segments for the segment, whether the resulting * segment is based on all, any, or none of the base segments.

*/ inline const SourceType& GetSourceType() const{ return m_sourceType; } /** *

Specifies how to handle multiple base segments for the segment. For example, * if you specify three base segments for the segment, whether the resulting * segment is based on all, any, or none of the base segments.

*/ inline bool SourceTypeHasBeenSet() const { return m_sourceTypeHasBeenSet; } /** *

Specifies how to handle multiple base segments for the segment. For example, * if you specify three base segments for the segment, whether the resulting * segment is based on all, any, or none of the base segments.

*/ inline void SetSourceType(const SourceType& value) { m_sourceTypeHasBeenSet = true; m_sourceType = value; } /** *

Specifies how to handle multiple base segments for the segment. For example, * if you specify three base segments for the segment, whether the resulting * segment is based on all, any, or none of the base segments.

*/ inline void SetSourceType(SourceType&& value) { m_sourceTypeHasBeenSet = true; m_sourceType = std::move(value); } /** *

Specifies how to handle multiple base segments for the segment. For example, * if you specify three base segments for the segment, whether the resulting * segment is based on all, any, or none of the base segments.

*/ inline SegmentGroup& WithSourceType(const SourceType& value) { SetSourceType(value); return *this;} /** *

Specifies how to handle multiple base segments for the segment. For example, * if you specify three base segments for the segment, whether the resulting * segment is based on all, any, or none of the base segments.

*/ inline SegmentGroup& WithSourceType(SourceType&& value) { SetSourceType(std::move(value)); return *this;} /** *

Specifies how to handle multiple dimensions for the segment. For example, if * you specify three dimensions for the segment, whether the resulting segment * includes endpoints that match all, any, or none of the dimensions.

*/ inline const Type& GetType() const{ return m_type; } /** *

Specifies how to handle multiple dimensions for the segment. For example, if * you specify three dimensions for the segment, whether the resulting segment * includes endpoints that match all, any, or none of the dimensions.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

Specifies how to handle multiple dimensions for the segment. For example, if * you specify three dimensions for the segment, whether the resulting segment * includes endpoints that match all, any, or none of the dimensions.

*/ inline void SetType(const Type& value) { m_typeHasBeenSet = true; m_type = value; } /** *

Specifies how to handle multiple dimensions for the segment. For example, if * you specify three dimensions for the segment, whether the resulting segment * includes endpoints that match all, any, or none of the dimensions.

*/ inline void SetType(Type&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

Specifies how to handle multiple dimensions for the segment. For example, if * you specify three dimensions for the segment, whether the resulting segment * includes endpoints that match all, any, or none of the dimensions.

*/ inline SegmentGroup& WithType(const Type& value) { SetType(value); return *this;} /** *

Specifies how to handle multiple dimensions for the segment. For example, if * you specify three dimensions for the segment, whether the resulting segment * includes endpoints that match all, any, or none of the dimensions.

*/ inline SegmentGroup& WithType(Type&& value) { SetType(std::move(value)); return *this;} private: Aws::Vector m_dimensions; bool m_dimensionsHasBeenSet = false; Aws::Vector m_sourceSegments; bool m_sourceSegmentsHasBeenSet = false; SourceType m_sourceType; bool m_sourceTypeHasBeenSet = false; Type m_type; bool m_typeHasBeenSet = false; }; } // namespace Model } // namespace Pinpoint } // namespace Aws