/*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
*  http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/

#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
