AWS SDK for C++  1.9.103
AWS SDK for C++
UpdateSnapshotScheduleRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace StorageGateway
17 {
18 namespace Model
19 {
20 
32  {
33  public:
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::String SerializePayload() const override;
43 
45 
46 
51  inline const Aws::String& GetVolumeARN() const{ return m_volumeARN; }
52 
57  inline bool VolumeARNHasBeenSet() const { return m_volumeARNHasBeenSet; }
58 
63  inline void SetVolumeARN(const Aws::String& value) { m_volumeARNHasBeenSet = true; m_volumeARN = value; }
64 
69  inline void SetVolumeARN(Aws::String&& value) { m_volumeARNHasBeenSet = true; m_volumeARN = std::move(value); }
70 
75  inline void SetVolumeARN(const char* value) { m_volumeARNHasBeenSet = true; m_volumeARN.assign(value); }
76 
81  inline UpdateSnapshotScheduleRequest& WithVolumeARN(const Aws::String& value) { SetVolumeARN(value); return *this;}
82 
87  inline UpdateSnapshotScheduleRequest& WithVolumeARN(Aws::String&& value) { SetVolumeARN(std::move(value)); return *this;}
88 
93  inline UpdateSnapshotScheduleRequest& WithVolumeARN(const char* value) { SetVolumeARN(value); return *this;}
94 
95 
101  inline int GetStartAt() const{ return m_startAt; }
102 
108  inline bool StartAtHasBeenSet() const { return m_startAtHasBeenSet; }
109 
115  inline void SetStartAt(int value) { m_startAtHasBeenSet = true; m_startAt = value; }
116 
122  inline UpdateSnapshotScheduleRequest& WithStartAt(int value) { SetStartAt(value); return *this;}
123 
124 
128  inline int GetRecurrenceInHours() const{ return m_recurrenceInHours; }
129 
133  inline bool RecurrenceInHoursHasBeenSet() const { return m_recurrenceInHoursHasBeenSet; }
134 
138  inline void SetRecurrenceInHours(int value) { m_recurrenceInHoursHasBeenSet = true; m_recurrenceInHours = value; }
139 
143  inline UpdateSnapshotScheduleRequest& WithRecurrenceInHours(int value) { SetRecurrenceInHours(value); return *this;}
144 
145 
150  inline const Aws::String& GetDescription() const{ return m_description; }
151 
156  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
157 
162  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
163 
168  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
169 
174  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
175 
180  inline UpdateSnapshotScheduleRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
181 
186  inline UpdateSnapshotScheduleRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
187 
192  inline UpdateSnapshotScheduleRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
193 
194 
202  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
203 
211  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
212 
220  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
221 
229  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
230 
238  inline UpdateSnapshotScheduleRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
239 
247  inline UpdateSnapshotScheduleRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
248 
256  inline UpdateSnapshotScheduleRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
257 
265  inline UpdateSnapshotScheduleRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
266 
267  private:
268 
269  Aws::String m_volumeARN;
270  bool m_volumeARNHasBeenSet;
271 
272  int m_startAt;
273  bool m_startAtHasBeenSet;
274 
275  int m_recurrenceInHours;
276  bool m_recurrenceInHoursHasBeenSet;
277 
278  Aws::String m_description;
279  bool m_descriptionHasBeenSet;
280 
281  Aws::Vector<Tag> m_tags;
282  bool m_tagsHasBeenSet;
283  };
284 
285 } // namespace Model
286 } // namespace StorageGateway
287 } // namespace Aws
Aws::StorageGateway::Model::UpdateSnapshotScheduleRequest::VolumeARNHasBeenSet
bool VolumeARNHasBeenSet() const
Definition: UpdateSnapshotScheduleRequest.h:57
Aws::StorageGateway::Model::UpdateSnapshotScheduleRequest::SetVolumeARN
void SetVolumeARN(const Aws::String &value)
Definition: UpdateSnapshotScheduleRequest.h:63
Aws::StorageGateway::Model::UpdateSnapshotScheduleRequest
Definition: UpdateSnapshotScheduleRequest.h:32
Aws::StorageGateway::Model::UpdateSnapshotScheduleRequest::WithDescription
UpdateSnapshotScheduleRequest & WithDescription(Aws::String &&value)
Definition: UpdateSnapshotScheduleRequest.h:186
Aws::StorageGateway::Model::UpdateSnapshotScheduleRequest::WithVolumeARN
UpdateSnapshotScheduleRequest & WithVolumeARN(const Aws::String &value)
Definition: UpdateSnapshotScheduleRequest.h:81
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::StorageGateway::Model::UpdateSnapshotScheduleRequest::GetStartAt
int GetStartAt() const
Definition: UpdateSnapshotScheduleRequest.h:101
Aws::StorageGateway::Model::Tag
Definition: Tag.h:34
Aws::StorageGateway::Model::UpdateSnapshotScheduleRequest::AddTags
UpdateSnapshotScheduleRequest & AddTags(const Tag &value)
Definition: UpdateSnapshotScheduleRequest.h:256
Aws::StorageGateway::Model::UpdateSnapshotScheduleRequest::RecurrenceInHoursHasBeenSet
bool RecurrenceInHoursHasBeenSet() const
Definition: UpdateSnapshotScheduleRequest.h:133
Aws::StorageGateway::Model::UpdateSnapshotScheduleRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: UpdateSnapshotScheduleRequest.h:229
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::StorageGateway::Model::UpdateSnapshotScheduleRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: UpdateSnapshotScheduleRequest.h:162
Aws::StorageGateway::Model::UpdateSnapshotScheduleRequest::StartAtHasBeenSet
bool StartAtHasBeenSet() const
Definition: UpdateSnapshotScheduleRequest.h:108
AWSVector.h
Aws::StorageGateway::Model::UpdateSnapshotScheduleRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::StorageGateway::Model::UpdateSnapshotScheduleRequest::GetDescription
const Aws::String & GetDescription() const
Definition: UpdateSnapshotScheduleRequest.h:150
Aws::StorageGateway::Model::UpdateSnapshotScheduleRequest::SetVolumeARN
void SetVolumeARN(Aws::String &&value)
Definition: UpdateSnapshotScheduleRequest.h:69
Aws::StorageGateway::Model::UpdateSnapshotScheduleRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: UpdateSnapshotScheduleRequest.h:168
Aws::StorageGateway::Model::UpdateSnapshotScheduleRequest::SetRecurrenceInHours
void SetRecurrenceInHours(int value)
Definition: UpdateSnapshotScheduleRequest.h:138
Aws::StorageGateway::Model::UpdateSnapshotScheduleRequest::WithTags
UpdateSnapshotScheduleRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: UpdateSnapshotScheduleRequest.h:247
Aws::StorageGateway::StorageGatewayRequest
Definition: StorageGatewayRequest.h:17
Aws::StorageGateway::Model::UpdateSnapshotScheduleRequest::WithDescription
UpdateSnapshotScheduleRequest & WithDescription(const Aws::String &value)
Definition: UpdateSnapshotScheduleRequest.h:180
Aws::StorageGateway::Model::UpdateSnapshotScheduleRequest::GetRecurrenceInHours
int GetRecurrenceInHours() const
Definition: UpdateSnapshotScheduleRequest.h:128
Aws::StorageGateway::Model::UpdateSnapshotScheduleRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: UpdateSnapshotScheduleRequest.h:211
Aws::StorageGateway::Model::UpdateSnapshotScheduleRequest::WithVolumeARN
UpdateSnapshotScheduleRequest & WithVolumeARN(const char *value)
Definition: UpdateSnapshotScheduleRequest.h:93
Aws::StorageGateway::Model::UpdateSnapshotScheduleRequest::AddTags
UpdateSnapshotScheduleRequest & AddTags(Tag &&value)
Definition: UpdateSnapshotScheduleRequest.h:265
Aws::StorageGateway::Model::UpdateSnapshotScheduleRequest::WithRecurrenceInHours
UpdateSnapshotScheduleRequest & WithRecurrenceInHours(int value)
Definition: UpdateSnapshotScheduleRequest.h:143
Aws::StorageGateway::Model::UpdateSnapshotScheduleRequest::WithVolumeARN
UpdateSnapshotScheduleRequest & WithVolumeARN(Aws::String &&value)
Definition: UpdateSnapshotScheduleRequest.h:87
Aws::StorageGateway::Model::UpdateSnapshotScheduleRequest::UpdateSnapshotScheduleRequest
UpdateSnapshotScheduleRequest()
Aws::StorageGateway::Model::UpdateSnapshotScheduleRequest::WithStartAt
UpdateSnapshotScheduleRequest & WithStartAt(int value)
Definition: UpdateSnapshotScheduleRequest.h:122
Aws::StorageGateway::Model::UpdateSnapshotScheduleRequest::SetDescription
void SetDescription(const char *value)
Definition: UpdateSnapshotScheduleRequest.h:174
AWSString.h
AWS_STORAGEGATEWAY_API
#define AWS_STORAGEGATEWAY_API
Definition: StorageGateway_EXPORTS.h:28
Aws::StorageGateway::Model::UpdateSnapshotScheduleRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::StorageGateway::Model::UpdateSnapshotScheduleRequest::SetStartAt
void SetStartAt(int value)
Definition: UpdateSnapshotScheduleRequest.h:115
StorageGatewayRequest.h
Aws
Definition: AccessManagementClient.h:15
Aws::StorageGateway::Model::UpdateSnapshotScheduleRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: UpdateSnapshotScheduleRequest.h:202
Tag.h
Aws::StorageGateway::Model::UpdateSnapshotScheduleRequest::WithTags
UpdateSnapshotScheduleRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: UpdateSnapshotScheduleRequest.h:238
StorageGateway_EXPORTS.h
Aws::StorageGateway::Model::UpdateSnapshotScheduleRequest::SetVolumeARN
void SetVolumeARN(const char *value)
Definition: UpdateSnapshotScheduleRequest.h:75
Aws::StorageGateway::Model::UpdateSnapshotScheduleRequest::GetVolumeARN
const Aws::String & GetVolumeARN() const
Definition: UpdateSnapshotScheduleRequest.h:51
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::StorageGateway::Model::UpdateSnapshotScheduleRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: UpdateSnapshotScheduleRequest.h:220
Aws::StorageGateway::Model::UpdateSnapshotScheduleRequest::WithDescription
UpdateSnapshotScheduleRequest & WithDescription(const char *value)
Definition: UpdateSnapshotScheduleRequest.h:192
Aws::StorageGateway::Model::UpdateSnapshotScheduleRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateSnapshotScheduleRequest.h:40
Aws::StorageGateway::Model::UpdateSnapshotScheduleRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: UpdateSnapshotScheduleRequest.h:156