AWS SDK for C++  0.14.3
AWS SDK for C++
Ebs.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 Utils
23 {
24 namespace Xml
25 {
26  class XmlNode;
27 } // namespace Xml
28 } // namespace Utils
29 namespace AutoScaling
30 {
31 namespace Model
32 {
33 
38  {
39  public:
40  Ebs();
41  Ebs(const Aws::Utils::Xml::XmlNode& xmlNode);
42  Ebs& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
43 
44  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
45  void OutputToStream(Aws::OStream& oStream, const char* location) const;
46 
50  inline const Aws::String& GetSnapshotId() const{ return m_snapshotId; }
51 
55  inline void SetSnapshotId(const Aws::String& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = value; }
56 
60  inline void SetSnapshotId(Aws::String&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = value; }
61 
65  inline void SetSnapshotId(const char* value) { m_snapshotIdHasBeenSet = true; m_snapshotId.assign(value); }
66 
70  inline Ebs& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;}
71 
75  inline Ebs& WithSnapshotId(Aws::String&& value) { SetSnapshotId(value); return *this;}
76 
80  inline Ebs& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;}
81 
90  inline int GetVolumeSize() const{ return m_volumeSize; }
91 
100  inline void SetVolumeSize(int value) { m_volumeSizeHasBeenSet = true; m_volumeSize = value; }
101 
110  inline Ebs& WithVolumeSize(int value) { SetVolumeSize(value); return *this;}
111 
119  inline const Aws::String& GetVolumeType() const{ return m_volumeType; }
120 
128  inline void SetVolumeType(const Aws::String& value) { m_volumeTypeHasBeenSet = true; m_volumeType = value; }
129 
137  inline void SetVolumeType(Aws::String&& value) { m_volumeTypeHasBeenSet = true; m_volumeType = value; }
138 
146  inline void SetVolumeType(const char* value) { m_volumeTypeHasBeenSet = true; m_volumeType.assign(value); }
147 
155  inline Ebs& WithVolumeType(const Aws::String& value) { SetVolumeType(value); return *this;}
156 
164  inline Ebs& WithVolumeType(Aws::String&& value) { SetVolumeType(value); return *this;}
165 
173  inline Ebs& WithVolumeType(const char* value) { SetVolumeType(value); return *this;}
174 
179  inline bool GetDeleteOnTermination() const{ return m_deleteOnTermination; }
180 
185  inline void SetDeleteOnTermination(bool value) { m_deleteOnTerminationHasBeenSet = true; m_deleteOnTermination = value; }
186 
191  inline Ebs& WithDeleteOnTermination(bool value) { SetDeleteOnTermination(value); return *this;}
192 
198  inline int GetIops() const{ return m_iops; }
199 
205  inline void SetIops(int value) { m_iopsHasBeenSet = true; m_iops = value; }
206 
212  inline Ebs& WithIops(int value) { SetIops(value); return *this;}
213 
223  inline bool GetEncrypted() const{ return m_encrypted; }
224 
234  inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; }
235 
245  inline Ebs& WithEncrypted(bool value) { SetEncrypted(value); return *this;}
246 
247  private:
248  Aws::String m_snapshotId;
249  bool m_snapshotIdHasBeenSet;
250  int m_volumeSize;
251  bool m_volumeSizeHasBeenSet;
252  Aws::String m_volumeType;
253  bool m_volumeTypeHasBeenSet;
254  bool m_deleteOnTermination;
255  bool m_deleteOnTerminationHasBeenSet;
256  int m_iops;
257  bool m_iopsHasBeenSet;
258  bool m_encrypted;
259  bool m_encryptedHasBeenSet;
260  };
261 
262 } // namespace Model
263 } // namespace AutoScaling
264 } // namespace Aws
const Aws::String & GetSnapshotId() const
Definition: Ebs.h:50
void SetVolumeSize(int value)
Definition: Ebs.h:100
void SetVolumeType(const char *value)
Definition: Ebs.h:146
const Aws::String & GetVolumeType() const
Definition: Ebs.h:119
Ebs & WithSnapshotId(const Aws::String &value)
Definition: Ebs.h:70
Ebs & WithSnapshotId(const char *value)
Definition: Ebs.h:80
Ebs & WithIops(int value)
Definition: Ebs.h:212
void SetVolumeType(const Aws::String &value)
Definition: Ebs.h:128
int GetIops() const
Definition: Ebs.h:198
Ebs & WithVolumeType(const char *value)
Definition: Ebs.h:173
void SetIops(int value)
Definition: Ebs.h:205
void SetSnapshotId(const char *value)
Definition: Ebs.h:65
Ebs & WithEncrypted(bool value)
Definition: Ebs.h:245
Ebs & WithSnapshotId(Aws::String &&value)
Definition: Ebs.h:75
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
Ebs & WithDeleteOnTermination(bool value)
Definition: Ebs.h:191
void SetDeleteOnTermination(bool value)
Definition: Ebs.h:185
Ebs & WithVolumeType(Aws::String &&value)
Definition: Ebs.h:164
int GetVolumeSize() const
Definition: Ebs.h:90
void SetVolumeType(Aws::String &&value)
Definition: Ebs.h:137
bool GetDeleteOnTermination() const
Definition: Ebs.h:179
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetSnapshotId(Aws::String &&value)
Definition: Ebs.h:60
Ebs & WithVolumeSize(int value)
Definition: Ebs.h:110
void SetSnapshotId(const Aws::String &value)
Definition: Ebs.h:55
#define AWS_AUTOSCALING_API
Ebs & WithVolumeType(const Aws::String &value)
Definition: Ebs.h:155
void SetEncrypted(bool value)
Definition: Ebs.h:234
bool GetEncrypted() const
Definition: Ebs.h:223
JSON (JavaScript Object Notation).