This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-pinpoint/include/aws/pinpoint/model/SimpleCondition.h

156 lines
5.1 KiB
C
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/pinpoint/Pinpoint_EXPORTS.h>
#include <aws/pinpoint/model/EventCondition.h>
#include <aws/pinpoint/model/SegmentCondition.h>
#include <aws/pinpoint/model/SegmentDimensions.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Pinpoint
{
namespace Model
{
/**
* <p>Specifies a condition to evaluate for an activity in a journey.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/SimpleCondition">AWS
* API Reference</a></p>
*/
class AWS_PINPOINT_API SimpleCondition
{
public:
SimpleCondition();
SimpleCondition(Aws::Utils::Json::JsonView jsonValue);
SimpleCondition& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The dimension settings for the event that's associated with the activity.</p>
*/
inline const EventCondition& GetEventCondition() const{ return m_eventCondition; }
/**
* <p>The dimension settings for the event that's associated with the activity.</p>
*/
inline bool EventConditionHasBeenSet() const { return m_eventConditionHasBeenSet; }
/**
* <p>The dimension settings for the event that's associated with the activity.</p>
*/
inline void SetEventCondition(const EventCondition& value) { m_eventConditionHasBeenSet = true; m_eventCondition = value; }
/**
* <p>The dimension settings for the event that's associated with the activity.</p>
*/
inline void SetEventCondition(EventCondition&& value) { m_eventConditionHasBeenSet = true; m_eventCondition = std::move(value); }
/**
* <p>The dimension settings for the event that's associated with the activity.</p>
*/
inline SimpleCondition& WithEventCondition(const EventCondition& value) { SetEventCondition(value); return *this;}
/**
* <p>The dimension settings for the event that's associated with the activity.</p>
*/
inline SimpleCondition& WithEventCondition(EventCondition&& value) { SetEventCondition(std::move(value)); return *this;}
/**
* <p>The segment that's associated with the activity.</p>
*/
inline const SegmentCondition& GetSegmentCondition() const{ return m_segmentCondition; }
/**
* <p>The segment that's associated with the activity.</p>
*/
inline bool SegmentConditionHasBeenSet() const { return m_segmentConditionHasBeenSet; }
/**
* <p>The segment that's associated with the activity.</p>
*/
inline void SetSegmentCondition(const SegmentCondition& value) { m_segmentConditionHasBeenSet = true; m_segmentCondition = value; }
/**
* <p>The segment that's associated with the activity.</p>
*/
inline void SetSegmentCondition(SegmentCondition&& value) { m_segmentConditionHasBeenSet = true; m_segmentCondition = std::move(value); }
/**
* <p>The segment that's associated with the activity.</p>
*/
inline SimpleCondition& WithSegmentCondition(const SegmentCondition& value) { SetSegmentCondition(value); return *this;}
/**
* <p>The segment that's associated with the activity.</p>
*/
inline SimpleCondition& WithSegmentCondition(SegmentCondition&& value) { SetSegmentCondition(std::move(value)); return *this;}
/**
* <p>The dimension settings for the segment that's associated with the
* activity.</p>
*/
inline const SegmentDimensions& GetSegmentDimensions() const{ return m_segmentDimensions; }
/**
* <p>The dimension settings for the segment that's associated with the
* activity.</p>
*/
inline bool SegmentDimensionsHasBeenSet() const { return m_segmentDimensionsHasBeenSet; }
/**
* <p>The dimension settings for the segment that's associated with the
* activity.</p>
*/
inline void SetSegmentDimensions(const SegmentDimensions& value) { m_segmentDimensionsHasBeenSet = true; m_segmentDimensions = value; }
/**
* <p>The dimension settings for the segment that's associated with the
* activity.</p>
*/
inline void SetSegmentDimensions(SegmentDimensions&& value) { m_segmentDimensionsHasBeenSet = true; m_segmentDimensions = std::move(value); }
/**
* <p>The dimension settings for the segment that's associated with the
* activity.</p>
*/
inline SimpleCondition& WithSegmentDimensions(const SegmentDimensions& value) { SetSegmentDimensions(value); return *this;}
/**
* <p>The dimension settings for the segment that's associated with the
* activity.</p>
*/
inline SimpleCondition& WithSegmentDimensions(SegmentDimensions&& value) { SetSegmentDimensions(std::move(value)); return *this;}
private:
EventCondition m_eventCondition;
bool m_eventConditionHasBeenSet;
SegmentCondition m_segmentCondition;
bool m_segmentConditionHasBeenSet;
SegmentDimensions m_segmentDimensions;
bool m_segmentDimensionsHasBeenSet;
};
} // namespace Model
} // namespace Pinpoint
} // namespace Aws