/**
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * SPDX-License-Identifier: Apache-2.0.
 */

#pragma once
#include <aws/connect/Connect_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/connect/model/RoutingCriteriaInputStep.h>
#include <utility>

namespace Aws
{
namespace Utils
{
namespace Json
{
  class JsonValue;
  class JsonView;
} // namespace Json
} // namespace Utils
namespace Connect
{
namespace Model
{

  /**
   * <p>An object to define the RoutingCriteria.</p><p><h3>See Also:</h3>   <a
   * href="http://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/RoutingCriteriaInput">AWS
   * API Reference</a></p>
   */
  class RoutingCriteriaInput
  {
  public:
    AWS_CONNECT_API RoutingCriteriaInput();
    AWS_CONNECT_API RoutingCriteriaInput(Aws::Utils::Json::JsonView jsonValue);
    AWS_CONNECT_API RoutingCriteriaInput& operator=(Aws::Utils::Json::JsonView jsonValue);
    AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;


    ///@{
    /**
     * <p>When Amazon Connect does not find an available agent meeting the requirements
     * in a step for&#x2028; a given step duration, the routing criteria will move on
     * to the next step sequentially until a&#x2028; join is completed with an agent.
     * When all steps are exhausted, the contact will be offered to any agent in the
     * queue.</p>
     */
    inline const Aws::Vector<RoutingCriteriaInputStep>& GetSteps() const{ return m_steps; }
    inline bool StepsHasBeenSet() const { return m_stepsHasBeenSet; }
    inline void SetSteps(const Aws::Vector<RoutingCriteriaInputStep>& value) { m_stepsHasBeenSet = true; m_steps = value; }
    inline void SetSteps(Aws::Vector<RoutingCriteriaInputStep>&& value) { m_stepsHasBeenSet = true; m_steps = std::move(value); }
    inline RoutingCriteriaInput& WithSteps(const Aws::Vector<RoutingCriteriaInputStep>& value) { SetSteps(value); return *this;}
    inline RoutingCriteriaInput& WithSteps(Aws::Vector<RoutingCriteriaInputStep>&& value) { SetSteps(std::move(value)); return *this;}
    inline RoutingCriteriaInput& AddSteps(const RoutingCriteriaInputStep& value) { m_stepsHasBeenSet = true; m_steps.push_back(value); return *this; }
    inline RoutingCriteriaInput& AddSteps(RoutingCriteriaInputStep&& value) { m_stepsHasBeenSet = true; m_steps.push_back(std::move(value)); return *this; }
    ///@}
  private:

    Aws::Vector<RoutingCriteriaInputStep> m_steps;
    bool m_stepsHasBeenSet = false;
  };

} // namespace Model
} // namespace Connect
} // namespace Aws
