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

#pragma once
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/scheduler/Scheduler_EXPORTS.h>
#include <aws/scheduler/model/ScheduleGroupSummary.h>

#include <utility>

namespace Aws {
template <typename RESULT_TYPE>
class AmazonWebServiceResult;

namespace Utils {
namespace Json {
class JsonValue;
}  // namespace Json
}  // namespace Utils
namespace Scheduler {
namespace Model {
class ListScheduleGroupsResult {
 public:
  AWS_SCHEDULER_API ListScheduleGroupsResult() = default;
  AWS_SCHEDULER_API ListScheduleGroupsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
  AWS_SCHEDULER_API ListScheduleGroupsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);

  ///@{
  /**
   * <p>Indicates whether there are additional results to retrieve. If the value is
   * null, there are no more results.</p>
   */
  inline const Aws::String& GetNextToken() const { return m_nextToken; }
  template <typename NextTokenT = Aws::String>
  void SetNextToken(NextTokenT&& value) {
    m_nextTokenHasBeenSet = true;
    m_nextToken = std::forward<NextTokenT>(value);
  }
  template <typename NextTokenT = Aws::String>
  ListScheduleGroupsResult& WithNextToken(NextTokenT&& value) {
    SetNextToken(std::forward<NextTokenT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The schedule groups that match the specified criteria.</p>
   */
  inline const Aws::Vector<ScheduleGroupSummary>& GetScheduleGroups() const { return m_scheduleGroups; }
  template <typename ScheduleGroupsT = Aws::Vector<ScheduleGroupSummary>>
  void SetScheduleGroups(ScheduleGroupsT&& value) {
    m_scheduleGroupsHasBeenSet = true;
    m_scheduleGroups = std::forward<ScheduleGroupsT>(value);
  }
  template <typename ScheduleGroupsT = Aws::Vector<ScheduleGroupSummary>>
  ListScheduleGroupsResult& WithScheduleGroups(ScheduleGroupsT&& value) {
    SetScheduleGroups(std::forward<ScheduleGroupsT>(value));
    return *this;
  }
  template <typename ScheduleGroupsT = ScheduleGroupSummary>
  ListScheduleGroupsResult& AddScheduleGroups(ScheduleGroupsT&& value) {
    m_scheduleGroupsHasBeenSet = true;
    m_scheduleGroups.emplace_back(std::forward<ScheduleGroupsT>(value));
    return *this;
  }
  ///@}

  ///@{

  inline const Aws::String& GetRequestId() const { return m_requestId; }
  template <typename RequestIdT = Aws::String>
  void SetRequestId(RequestIdT&& value) {
    m_requestIdHasBeenSet = true;
    m_requestId = std::forward<RequestIdT>(value);
  }
  template <typename RequestIdT = Aws::String>
  ListScheduleGroupsResult& WithRequestId(RequestIdT&& value) {
    SetRequestId(std::forward<RequestIdT>(value));
    return *this;
  }
  ///@}
 private:
  Aws::String m_nextToken;

  Aws::Vector<ScheduleGroupSummary> m_scheduleGroups;

  Aws::String m_requestId;
  bool m_nextTokenHasBeenSet = false;
  bool m_scheduleGroupsHasBeenSet = false;
  bool m_requestIdHasBeenSet = false;
};

}  // namespace Model
}  // namespace Scheduler
}  // namespace Aws
