/**
 * 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/storagegateway/StorageGatewayRequest.h>
#include <aws/storagegateway/StorageGateway_EXPORTS.h>
#include <aws/storagegateway/model/Tag.h>

#include <utility>

namespace Aws {
namespace StorageGateway {
namespace Model {

/**
 * <p>A JSON object containing one or more of the following fields:</p> <ul> <li>
 * <p> <a>UpdateSnapshotScheduleInput$Description</a> </p> </li> <li> <p>
 * <a>UpdateSnapshotScheduleInput$RecurrenceInHours</a> </p> </li> <li> <p>
 * <a>UpdateSnapshotScheduleInput$StartAt</a> </p> </li> <li> <p>
 * <a>UpdateSnapshotScheduleInput$VolumeARN</a> </p> </li> </ul><p><h3>See
 * Also:</h3>   <a
 * href="http://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/UpdateSnapshotScheduleInput">AWS
 * API Reference</a></p>
 */
class UpdateSnapshotScheduleRequest : public StorageGatewayRequest {
 public:
  AWS_STORAGEGATEWAY_API UpdateSnapshotScheduleRequest() = 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 "UpdateSnapshotSchedule"; }

  AWS_STORAGEGATEWAY_API Aws::String SerializePayload() const override;

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

  ///@{
  /**
   * <p>The Amazon Resource Name (ARN) of the volume. Use the <a>ListVolumes</a>
   * operation to return a list of gateway volumes.</p>
   */
  inline const Aws::String& GetVolumeARN() const { return m_volumeARN; }
  inline bool VolumeARNHasBeenSet() const { return m_volumeARNHasBeenSet; }
  template <typename VolumeARNT = Aws::String>
  void SetVolumeARN(VolumeARNT&& value) {
    m_volumeARNHasBeenSet = true;
    m_volumeARN = std::forward<VolumeARNT>(value);
  }
  template <typename VolumeARNT = Aws::String>
  UpdateSnapshotScheduleRequest& WithVolumeARN(VolumeARNT&& value) {
    SetVolumeARN(std::forward<VolumeARNT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The hour of the day at which the snapshot schedule begins represented as
   * <i>hh</i>, where <i>hh</i> is the hour (0 to 23). The hour of the day is in the
   * time zone of the gateway.</p>
   */
  inline int GetStartAt() const { return m_startAt; }
  inline bool StartAtHasBeenSet() const { return m_startAtHasBeenSet; }
  inline void SetStartAt(int value) {
    m_startAtHasBeenSet = true;
    m_startAt = value;
  }
  inline UpdateSnapshotScheduleRequest& WithStartAt(int value) {
    SetStartAt(value);
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>Frequency of snapshots. Specify the number of hours between snapshots.</p>
   */
  inline int GetRecurrenceInHours() const { return m_recurrenceInHours; }
  inline bool RecurrenceInHoursHasBeenSet() const { return m_recurrenceInHoursHasBeenSet; }
  inline void SetRecurrenceInHours(int value) {
    m_recurrenceInHoursHasBeenSet = true;
    m_recurrenceInHours = value;
  }
  inline UpdateSnapshotScheduleRequest& WithRecurrenceInHours(int value) {
    SetRecurrenceInHours(value);
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>Optional description of the snapshot that overwrites the existing
   * description.</p>
   */
  inline const Aws::String& GetDescription() const { return m_description; }
  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
  template <typename DescriptionT = Aws::String>
  void SetDescription(DescriptionT&& value) {
    m_descriptionHasBeenSet = true;
    m_description = std::forward<DescriptionT>(value);
  }
  template <typename DescriptionT = Aws::String>
  UpdateSnapshotScheduleRequest& WithDescription(DescriptionT&& value) {
    SetDescription(std::forward<DescriptionT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>A list of up to 50 tags that can be assigned to a snapshot. Each tag is a
   * key-value pair.</p>  <p>Valid characters for key and value are letters,
   * spaces, and numbers representable in UTF-8 format, and the following special
   * characters: + - = . _ : / @. The maximum length of a tag's key is 128
   * characters, and the maximum length for a tag's value is 256.</p>
   */
  inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
  template <typename TagsT = Aws::Vector<Tag>>
  void SetTags(TagsT&& value) {
    m_tagsHasBeenSet = true;
    m_tags = std::forward<TagsT>(value);
  }
  template <typename TagsT = Aws::Vector<Tag>>
  UpdateSnapshotScheduleRequest& WithTags(TagsT&& value) {
    SetTags(std::forward<TagsT>(value));
    return *this;
  }
  template <typename TagsT = Tag>
  UpdateSnapshotScheduleRequest& AddTags(TagsT&& value) {
    m_tagsHasBeenSet = true;
    m_tags.emplace_back(std::forward<TagsT>(value));
    return *this;
  }
  ///@}
 private:
  Aws::String m_volumeARN;

  int m_startAt{0};

  int m_recurrenceInHours{0};

  Aws::String m_description;

  Aws::Vector<Tag> m_tags;
  bool m_volumeARNHasBeenSet = false;
  bool m_startAtHasBeenSet = false;
  bool m_recurrenceInHoursHasBeenSet = false;
  bool m_descriptionHasBeenSet = false;
  bool m_tagsHasBeenSet = false;
};

}  // namespace Model
}  // namespace StorageGateway
}  // namespace Aws
