/**
 * 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/ssm/SSMRequest.h>
#include <aws/ssm/SSM_EXPORTS.h>

#include <utility>

namespace Aws {
namespace SSM {
namespace Model {

/**
 */
class GetCalendarStateRequest : public SSMRequest {
 public:
  AWS_SSM_API GetCalendarStateRequest() = default;

  // Service request name is the Operation name which will send this request out,
  // each operation should has unique request name, so that we can get operation's name from this request.
  // Note: this is not true for response, multiple operations may have the same response name,
  // so we can not get operation's name from response.
  inline virtual const char* GetServiceRequestName() const override { return "GetCalendarState"; }

  AWS_SSM_API Aws::String SerializePayload() const override;

  AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;

  ///@{
  /**
   * <p>The names of Amazon Resource Names (ARNs) of the Systems Manager documents
   * (SSM documents) that represent the calendar entries for which you want to get
   * the state.</p>
   */
  inline const Aws::Vector<Aws::String>& GetCalendarNames() const { return m_calendarNames; }
  inline bool CalendarNamesHasBeenSet() const { return m_calendarNamesHasBeenSet; }
  template <typename CalendarNamesT = Aws::Vector<Aws::String>>
  void SetCalendarNames(CalendarNamesT&& value) {
    m_calendarNamesHasBeenSet = true;
    m_calendarNames = std::forward<CalendarNamesT>(value);
  }
  template <typename CalendarNamesT = Aws::Vector<Aws::String>>
  GetCalendarStateRequest& WithCalendarNames(CalendarNamesT&& value) {
    SetCalendarNames(std::forward<CalendarNamesT>(value));
    return *this;
  }
  template <typename CalendarNamesT = Aws::String>
  GetCalendarStateRequest& AddCalendarNames(CalendarNamesT&& value) {
    m_calendarNamesHasBeenSet = true;
    m_calendarNames.emplace_back(std::forward<CalendarNamesT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>(Optional) The specific time for which you want to get calendar state
   * information, in <a href="https://en.wikipedia.org/wiki/ISO_8601">ISO 8601</a>
   * format. If you don't specify a value or <code>AtTime</code>, the current time is
   * used.</p>
   */
  inline const Aws::String& GetAtTime() const { return m_atTime; }
  inline bool AtTimeHasBeenSet() const { return m_atTimeHasBeenSet; }
  template <typename AtTimeT = Aws::String>
  void SetAtTime(AtTimeT&& value) {
    m_atTimeHasBeenSet = true;
    m_atTime = std::forward<AtTimeT>(value);
  }
  template <typename AtTimeT = Aws::String>
  GetCalendarStateRequest& WithAtTime(AtTimeT&& value) {
    SetAtTime(std::forward<AtTimeT>(value));
    return *this;
  }
  ///@}
 private:
  Aws::Vector<Aws::String> m_calendarNames;

  Aws::String m_atTime;
  bool m_calendarNamesHasBeenSet = false;
  bool m_atTimeHasBeenSet = false;
};

}  // namespace Model
}  // namespace SSM
}  // namespace Aws
