/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace StorageGateway { namespace Model { /** *

A JSON object containing one or more of the following fields:

See * Also:

AWS * API Reference

*/ class UpdateSnapshotScheduleRequest : public StorageGatewayRequest { public: AWS_STORAGEGATEWAY_API UpdateSnapshotScheduleRequest(); // 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; /** *

The Amazon Resource Name (ARN) of the volume. Use the ListVolumes * operation to return a list of gateway volumes.

*/ inline const Aws::String& GetVolumeARN() const{ return m_volumeARN; } /** *

The Amazon Resource Name (ARN) of the volume. Use the ListVolumes * operation to return a list of gateway volumes.

*/ inline bool VolumeARNHasBeenSet() const { return m_volumeARNHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the volume. Use the ListVolumes * operation to return a list of gateway volumes.

*/ inline void SetVolumeARN(const Aws::String& value) { m_volumeARNHasBeenSet = true; m_volumeARN = value; } /** *

The Amazon Resource Name (ARN) of the volume. Use the ListVolumes * operation to return a list of gateway volumes.

*/ inline void SetVolumeARN(Aws::String&& value) { m_volumeARNHasBeenSet = true; m_volumeARN = std::move(value); } /** *

The Amazon Resource Name (ARN) of the volume. Use the ListVolumes * operation to return a list of gateway volumes.

*/ inline void SetVolumeARN(const char* value) { m_volumeARNHasBeenSet = true; m_volumeARN.assign(value); } /** *

The Amazon Resource Name (ARN) of the volume. Use the ListVolumes * operation to return a list of gateway volumes.

*/ inline UpdateSnapshotScheduleRequest& WithVolumeARN(const Aws::String& value) { SetVolumeARN(value); return *this;} /** *

The Amazon Resource Name (ARN) of the volume. Use the ListVolumes * operation to return a list of gateway volumes.

*/ inline UpdateSnapshotScheduleRequest& WithVolumeARN(Aws::String&& value) { SetVolumeARN(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the volume. Use the ListVolumes * operation to return a list of gateway volumes.

*/ inline UpdateSnapshotScheduleRequest& WithVolumeARN(const char* value) { SetVolumeARN(value); return *this;} /** *

The hour of the day at which the snapshot schedule begins represented as * hh, where hh is the hour (0 to 23). The hour of the day is in the * time zone of the gateway.

*/ inline int GetStartAt() const{ return m_startAt; } /** *

The hour of the day at which the snapshot schedule begins represented as * hh, where hh is the hour (0 to 23). The hour of the day is in the * time zone of the gateway.

*/ inline bool StartAtHasBeenSet() const { return m_startAtHasBeenSet; } /** *

The hour of the day at which the snapshot schedule begins represented as * hh, where hh is the hour (0 to 23). The hour of the day is in the * time zone of the gateway.

*/ inline void SetStartAt(int value) { m_startAtHasBeenSet = true; m_startAt = value; } /** *

The hour of the day at which the snapshot schedule begins represented as * hh, where hh is the hour (0 to 23). The hour of the day is in the * time zone of the gateway.

*/ inline UpdateSnapshotScheduleRequest& WithStartAt(int value) { SetStartAt(value); return *this;} /** *

Frequency of snapshots. Specify the number of hours between snapshots.

*/ inline int GetRecurrenceInHours() const{ return m_recurrenceInHours; } /** *

Frequency of snapshots. Specify the number of hours between snapshots.

*/ inline bool RecurrenceInHoursHasBeenSet() const { return m_recurrenceInHoursHasBeenSet; } /** *

Frequency of snapshots. Specify the number of hours between snapshots.

*/ inline void SetRecurrenceInHours(int value) { m_recurrenceInHoursHasBeenSet = true; m_recurrenceInHours = value; } /** *

Frequency of snapshots. Specify the number of hours between snapshots.

*/ inline UpdateSnapshotScheduleRequest& WithRecurrenceInHours(int value) { SetRecurrenceInHours(value); return *this;} /** *

Optional description of the snapshot that overwrites the existing * description.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

Optional description of the snapshot that overwrites the existing * description.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

Optional description of the snapshot that overwrites the existing * description.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

Optional description of the snapshot that overwrites the existing * description.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

Optional description of the snapshot that overwrites the existing * description.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

Optional description of the snapshot that overwrites the existing * description.

*/ inline UpdateSnapshotScheduleRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

Optional description of the snapshot that overwrites the existing * description.

*/ inline UpdateSnapshotScheduleRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

Optional description of the snapshot that overwrites the existing * description.

*/ inline UpdateSnapshotScheduleRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

A list of up to 50 tags that can be assigned to a snapshot. Each tag is a * key-value pair.

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.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

A list of up to 50 tags that can be assigned to a snapshot. Each tag is a * key-value pair.

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.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

A list of up to 50 tags that can be assigned to a snapshot. Each tag is a * key-value pair.

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.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

A list of up to 50 tags that can be assigned to a snapshot. Each tag is a * key-value pair.

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.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

A list of up to 50 tags that can be assigned to a snapshot. Each tag is a * key-value pair.

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.

*/ inline UpdateSnapshotScheduleRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

A list of up to 50 tags that can be assigned to a snapshot. Each tag is a * key-value pair.

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.

*/ inline UpdateSnapshotScheduleRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

A list of up to 50 tags that can be assigned to a snapshot. Each tag is a * key-value pair.

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.

*/ inline UpdateSnapshotScheduleRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

A list of up to 50 tags that can be assigned to a snapshot. Each tag is a * key-value pair.

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.

*/ inline UpdateSnapshotScheduleRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_volumeARN; bool m_volumeARNHasBeenSet = false; int m_startAt; bool m_startAtHasBeenSet = false; int m_recurrenceInHours; bool m_recurrenceInHoursHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace StorageGateway } // namespace Aws