/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Specifies criteria for including or excluding endpoints from a segment based
* on how recently an endpoint was active.See Also:
AWS
* API Reference
The duration to use when determining whether an endpoint is active or * inactive.
*/ inline const Duration& GetDuration() const{ return m_duration; } /** *The duration to use when determining whether an endpoint is active or * inactive.
*/ inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; } /** *The duration to use when determining whether an endpoint is active or * inactive.
*/ inline void SetDuration(const Duration& value) { m_durationHasBeenSet = true; m_duration = value; } /** *The duration to use when determining whether an endpoint is active or * inactive.
*/ inline void SetDuration(Duration&& value) { m_durationHasBeenSet = true; m_duration = std::move(value); } /** *The duration to use when determining whether an endpoint is active or * inactive.
*/ inline RecencyDimension& WithDuration(const Duration& value) { SetDuration(value); return *this;} /** *The duration to use when determining whether an endpoint is active or * inactive.
*/ inline RecencyDimension& WithDuration(Duration&& value) { SetDuration(std::move(value)); return *this;} /** *The type of recency dimension to use for the segment. Valid values are: * ACTIVE, endpoints that were active within the specified duration are included in * the segment; and, INACTIVE, endpoints that weren't active within the specified * duration are included in the segment.
*/ inline const RecencyType& GetRecencyType() const{ return m_recencyType; } /** *The type of recency dimension to use for the segment. Valid values are: * ACTIVE, endpoints that were active within the specified duration are included in * the segment; and, INACTIVE, endpoints that weren't active within the specified * duration are included in the segment.
*/ inline bool RecencyTypeHasBeenSet() const { return m_recencyTypeHasBeenSet; } /** *The type of recency dimension to use for the segment. Valid values are: * ACTIVE, endpoints that were active within the specified duration are included in * the segment; and, INACTIVE, endpoints that weren't active within the specified * duration are included in the segment.
*/ inline void SetRecencyType(const RecencyType& value) { m_recencyTypeHasBeenSet = true; m_recencyType = value; } /** *The type of recency dimension to use for the segment. Valid values are: * ACTIVE, endpoints that were active within the specified duration are included in * the segment; and, INACTIVE, endpoints that weren't active within the specified * duration are included in the segment.
*/ inline void SetRecencyType(RecencyType&& value) { m_recencyTypeHasBeenSet = true; m_recencyType = std::move(value); } /** *The type of recency dimension to use for the segment. Valid values are: * ACTIVE, endpoints that were active within the specified duration are included in * the segment; and, INACTIVE, endpoints that weren't active within the specified * duration are included in the segment.
*/ inline RecencyDimension& WithRecencyType(const RecencyType& value) { SetRecencyType(value); return *this;} /** *The type of recency dimension to use for the segment. Valid values are: * ACTIVE, endpoints that were active within the specified duration are included in * the segment; and, INACTIVE, endpoints that weren't active within the specified * duration are included in the segment.
*/ inline RecencyDimension& WithRecencyType(RecencyType&& value) { SetRecencyType(std::move(value)); return *this;} private: Duration m_duration; bool m_durationHasBeenSet = false; RecencyType m_recencyType; bool m_recencyTypeHasBeenSet = false; }; } // namespace Model } // namespace Pinpoint } // namespace Aws