AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UpdateSnapshotScheduleRequest.h
1
6#pragma once
7#include <aws/storagegateway/StorageGateway_EXPORTS.h>
8#include <aws/storagegateway/StorageGatewayRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/storagegateway/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace StorageGateway
17{
18namespace Model
19{
20
32 {
33 public:
34 AWS_STORAGEGATEWAY_API UpdateSnapshotScheduleRequest() = default;
35
36 // Service request name is the Operation name which will send this request out,
37 // each operation should has unique request name, so that we can get operation's name from this request.
38 // Note: this is not true for response, multiple operations may have the same response name,
39 // so we can not get operation's name from response.
40 inline virtual const char* GetServiceRequestName() const override { return "UpdateSnapshotSchedule"; }
41
42 AWS_STORAGEGATEWAY_API Aws::String SerializePayload() const override;
43
44 AWS_STORAGEGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
45
46
48
52 inline const Aws::String& GetVolumeARN() const { return m_volumeARN; }
53 inline bool VolumeARNHasBeenSet() const { return m_volumeARNHasBeenSet; }
54 template<typename VolumeARNT = Aws::String>
55 void SetVolumeARN(VolumeARNT&& value) { m_volumeARNHasBeenSet = true; m_volumeARN = std::forward<VolumeARNT>(value); }
56 template<typename VolumeARNT = Aws::String>
57 UpdateSnapshotScheduleRequest& WithVolumeARN(VolumeARNT&& value) { SetVolumeARN(std::forward<VolumeARNT>(value)); return *this;}
59
61
66 inline int GetStartAt() const { return m_startAt; }
67 inline bool StartAtHasBeenSet() const { return m_startAtHasBeenSet; }
68 inline void SetStartAt(int value) { m_startAtHasBeenSet = true; m_startAt = value; }
69 inline UpdateSnapshotScheduleRequest& WithStartAt(int value) { SetStartAt(value); return *this;}
71
73
76 inline int GetRecurrenceInHours() const { return m_recurrenceInHours; }
77 inline bool RecurrenceInHoursHasBeenSet() const { return m_recurrenceInHoursHasBeenSet; }
78 inline void SetRecurrenceInHours(int value) { m_recurrenceInHoursHasBeenSet = true; m_recurrenceInHours = value; }
81
83
87 inline const Aws::String& GetDescription() const { return m_description; }
88 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
89 template<typename DescriptionT = Aws::String>
90 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
91 template<typename DescriptionT = Aws::String>
92 UpdateSnapshotScheduleRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
94
96
103 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
104 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
105 template<typename TagsT = Aws::Vector<Tag>>
106 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
107 template<typename TagsT = Aws::Vector<Tag>>
108 UpdateSnapshotScheduleRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
109 template<typename TagsT = Tag>
110 UpdateSnapshotScheduleRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
112 private:
113
114 Aws::String m_volumeARN;
115 bool m_volumeARNHasBeenSet = false;
116
117 int m_startAt{0};
118 bool m_startAtHasBeenSet = false;
119
120 int m_recurrenceInHours{0};
121 bool m_recurrenceInHoursHasBeenSet = false;
122
123 Aws::String m_description;
124 bool m_descriptionHasBeenSet = false;
125
126 Aws::Vector<Tag> m_tags;
127 bool m_tagsHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace StorageGateway
132} // namespace Aws
UpdateSnapshotScheduleRequest & WithDescription(DescriptionT &&value)
UpdateSnapshotScheduleRequest & WithVolumeARN(VolumeARNT &&value)
AWS_STORAGEGATEWAY_API UpdateSnapshotScheduleRequest()=default
AWS_STORAGEGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_STORAGEGATEWAY_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector