/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #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 dimension type and values for a segment * dimension.

See Also:

AWS * API Reference

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

The type of segment dimension to use. Valid values are: INCLUSIVE, endpoints * that match the criteria are included in the segment; and, EXCLUSIVE, endpoints * that match the criteria are excluded from the segment.

*/ inline const DimensionType& GetDimensionType() const{ return m_dimensionType; } /** *

The type of segment dimension to use. Valid values are: INCLUSIVE, endpoints * that match the criteria are included in the segment; and, EXCLUSIVE, endpoints * that match the criteria are excluded from the segment.

*/ inline bool DimensionTypeHasBeenSet() const { return m_dimensionTypeHasBeenSet; } /** *

The type of segment dimension to use. Valid values are: INCLUSIVE, endpoints * that match the criteria are included in the segment; and, EXCLUSIVE, endpoints * that match the criteria are excluded from the segment.

*/ inline void SetDimensionType(const DimensionType& value) { m_dimensionTypeHasBeenSet = true; m_dimensionType = value; } /** *

The type of segment dimension to use. Valid values are: INCLUSIVE, endpoints * that match the criteria are included in the segment; and, EXCLUSIVE, endpoints * that match the criteria are excluded from the segment.

*/ inline void SetDimensionType(DimensionType&& value) { m_dimensionTypeHasBeenSet = true; m_dimensionType = std::move(value); } /** *

The type of segment dimension to use. Valid values are: INCLUSIVE, endpoints * that match the criteria are included in the segment; and, EXCLUSIVE, endpoints * that match the criteria are excluded from the segment.

*/ inline SetDimension& WithDimensionType(const DimensionType& value) { SetDimensionType(value); return *this;} /** *

The type of segment dimension to use. Valid values are: INCLUSIVE, endpoints * that match the criteria are included in the segment; and, EXCLUSIVE, endpoints * that match the criteria are excluded from the segment.

*/ inline SetDimension& WithDimensionType(DimensionType&& value) { SetDimensionType(std::move(value)); return *this;} /** *

The criteria values to use for the segment dimension. Depending on the value * of the DimensionType property, endpoints are included or excluded from the * segment if their values match the criteria values.

*/ inline const Aws::Vector& GetValues() const{ return m_values; } /** *

The criteria values to use for the segment dimension. Depending on the value * of the DimensionType property, endpoints are included or excluded from the * segment if their values match the criteria values.

*/ inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; } /** *

The criteria values to use for the segment dimension. Depending on the value * of the DimensionType property, endpoints are included or excluded from the * segment if their values match the criteria values.

*/ inline void SetValues(const Aws::Vector& value) { m_valuesHasBeenSet = true; m_values = value; } /** *

The criteria values to use for the segment dimension. Depending on the value * of the DimensionType property, endpoints are included or excluded from the * segment if their values match the criteria values.

*/ inline void SetValues(Aws::Vector&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); } /** *

The criteria values to use for the segment dimension. Depending on the value * of the DimensionType property, endpoints are included or excluded from the * segment if their values match the criteria values.

*/ inline SetDimension& WithValues(const Aws::Vector& value) { SetValues(value); return *this;} /** *

The criteria values to use for the segment dimension. Depending on the value * of the DimensionType property, endpoints are included or excluded from the * segment if their values match the criteria values.

*/ inline SetDimension& WithValues(Aws::Vector&& value) { SetValues(std::move(value)); return *this;} /** *

The criteria values to use for the segment dimension. Depending on the value * of the DimensionType property, endpoints are included or excluded from the * segment if their values match the criteria values.

*/ inline SetDimension& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; } /** *

The criteria values to use for the segment dimension. Depending on the value * of the DimensionType property, endpoints are included or excluded from the * segment if their values match the criteria values.

*/ inline SetDimension& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; } /** *

The criteria values to use for the segment dimension. Depending on the value * of the DimensionType property, endpoints are included or excluded from the * segment if their values match the criteria values.

*/ inline SetDimension& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; } private: DimensionType m_dimensionType; bool m_dimensionTypeHasBeenSet; Aws::Vector m_values; bool m_valuesHasBeenSet; }; } // namespace Model } // namespace Pinpoint } // namespace Aws