AWS SDK for C++  0.14.3
AWS SDK for C++
UpdateSnapshotScheduleRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
19 
20 namespace Aws
21 {
22 namespace StorageGateway
23 {
24 namespace Model
25 {
26 
35  {
36  public:
38  Aws::String SerializePayload() const override;
39 
40  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
41 
46  inline const Aws::String& GetVolumeARN() const{ return m_volumeARN; }
47 
52  inline void SetVolumeARN(const Aws::String& value) { m_volumeARNHasBeenSet = true; m_volumeARN = value; }
53 
58  inline void SetVolumeARN(Aws::String&& value) { m_volumeARNHasBeenSet = true; m_volumeARN = value; }
59 
64  inline void SetVolumeARN(const char* value) { m_volumeARNHasBeenSet = true; m_volumeARN.assign(value); }
65 
70  inline UpdateSnapshotScheduleRequest& WithVolumeARN(const Aws::String& value) { SetVolumeARN(value); return *this;}
71 
76  inline UpdateSnapshotScheduleRequest& WithVolumeARN(Aws::String&& value) { SetVolumeARN(value); return *this;}
77 
82  inline UpdateSnapshotScheduleRequest& WithVolumeARN(const char* value) { SetVolumeARN(value); return *this;}
83 
89  inline int GetStartAt() const{ return m_startAt; }
90 
96  inline void SetStartAt(int value) { m_startAtHasBeenSet = true; m_startAt = value; }
97 
103  inline UpdateSnapshotScheduleRequest& WithStartAt(int value) { SetStartAt(value); return *this;}
104 
108  inline int GetRecurrenceInHours() const{ return m_recurrenceInHours; }
109 
113  inline void SetRecurrenceInHours(int value) { m_recurrenceInHoursHasBeenSet = true; m_recurrenceInHours = value; }
114 
118  inline UpdateSnapshotScheduleRequest& WithRecurrenceInHours(int value) { SetRecurrenceInHours(value); return *this;}
119 
124  inline const Aws::String& GetDescription() const{ return m_description; }
125 
130  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
131 
136  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
137 
142  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
143 
148  inline UpdateSnapshotScheduleRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
149 
154  inline UpdateSnapshotScheduleRequest& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
155 
160  inline UpdateSnapshotScheduleRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
161 
162  private:
163  Aws::String m_volumeARN;
164  bool m_volumeARNHasBeenSet;
165  int m_startAt;
166  bool m_startAtHasBeenSet;
167  int m_recurrenceInHours;
168  bool m_recurrenceInHoursHasBeenSet;
169  Aws::String m_description;
170  bool m_descriptionHasBeenSet;
171  };
172 
173 } // namespace Model
174 } // namespace StorageGateway
175 } // namespace Aws
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
UpdateSnapshotScheduleRequest & WithDescription(const Aws::String &value)
UpdateSnapshotScheduleRequest & WithVolumeARN(const Aws::String &value)
UpdateSnapshotScheduleRequest & WithVolumeARN(const char *value)
UpdateSnapshotScheduleRequest & WithVolumeARN(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
UpdateSnapshotScheduleRequest & WithDescription(Aws::String &&value)
#define AWS_STORAGEGATEWAY_API
JSON (JavaScript Object Notation).
UpdateSnapshotScheduleRequest & WithDescription(const char *value)