AWS SDK for C++

AWS SDK for C++ Version 1.11.927

Loading...
Searching...
No Matches
UpdateSnapshotScheduleRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/storagegateway/StorageGatewayRequest.h>
10#include <aws/storagegateway/StorageGateway_EXPORTS.h>
11#include <aws/storagegateway/model/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace StorageGateway {
17namespace Model {
18
30 public:
31 AWS_STORAGEGATEWAY_API UpdateSnapshotScheduleRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "UpdateSnapshotSchedule"; }
38
39 AWS_STORAGEGATEWAY_API Aws::String SerializePayload() const override;
40
41 AWS_STORAGEGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
42
44
48 inline const Aws::String& GetVolumeARN() const { return m_volumeARN; }
49 inline bool VolumeARNHasBeenSet() const { return m_volumeARNHasBeenSet; }
50 template <typename VolumeARNT = Aws::String>
51 void SetVolumeARN(VolumeARNT&& value) {
52 m_volumeARNHasBeenSet = true;
53 m_volumeARN = std::forward<VolumeARNT>(value);
54 }
55 template <typename VolumeARNT = Aws::String>
57 SetVolumeARN(std::forward<VolumeARNT>(value));
58 return *this;
59 }
61
63
68 inline int GetStartAt() const { return m_startAt; }
69 inline bool StartAtHasBeenSet() const { return m_startAtHasBeenSet; }
70 inline void SetStartAt(int value) {
71 m_startAtHasBeenSet = true;
72 m_startAt = value;
73 }
75 SetStartAt(value);
76 return *this;
77 }
79
81
84 inline int GetRecurrenceInHours() const { return m_recurrenceInHours; }
85 inline bool RecurrenceInHoursHasBeenSet() const { return m_recurrenceInHoursHasBeenSet; }
86 inline void SetRecurrenceInHours(int value) {
87 m_recurrenceInHoursHasBeenSet = true;
88 m_recurrenceInHours = value;
89 }
92 return *this;
93 }
95
97
101 inline const Aws::String& GetDescription() const { return m_description; }
102 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
103 template <typename DescriptionT = Aws::String>
104 void SetDescription(DescriptionT&& value) {
105 m_descriptionHasBeenSet = true;
106 m_description = std::forward<DescriptionT>(value);
107 }
108 template <typename DescriptionT = Aws::String>
110 SetDescription(std::forward<DescriptionT>(value));
111 return *this;
112 }
114
116
123 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
124 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
125 template <typename TagsT = Aws::Vector<Tag>>
126 void SetTags(TagsT&& value) {
127 m_tagsHasBeenSet = true;
128 m_tags = std::forward<TagsT>(value);
129 }
130 template <typename TagsT = Aws::Vector<Tag>>
132 SetTags(std::forward<TagsT>(value));
133 return *this;
134 }
135 template <typename TagsT = Tag>
137 m_tagsHasBeenSet = true;
138 m_tags.emplace_back(std::forward<TagsT>(value));
139 return *this;
140 }
142 private:
143 Aws::String m_volumeARN;
144
145 int m_startAt{0};
146
147 int m_recurrenceInHours{0};
148
149 Aws::String m_description;
150
151 Aws::Vector<Tag> m_tags;
152 bool m_volumeARNHasBeenSet = false;
153 bool m_startAtHasBeenSet = false;
154 bool m_recurrenceInHoursHasBeenSet = false;
155 bool m_descriptionHasBeenSet = false;
156 bool m_tagsHasBeenSet = false;
157};
158
159} // namespace Model
160} // namespace StorageGateway
161} // 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