AWS SDK for C++  0.12.9
AWS SDK for C++
ScheduledInstancesEbs.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
16 #include <aws/ec2/EC2_EXPORTS.h>
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Xml
25 {
26  class XmlNode;
27 } // namespace Xml
28 } // namespace Utils
29 namespace EC2
30 {
31 namespace Model
32 {
33 
38  {
39  public:
42  ScheduledInstancesEbs& 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 ScheduledInstancesEbs& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;}
71 
75  inline ScheduledInstancesEbs& WithSnapshotId(Aws::String&& value) { SetSnapshotId(value); return *this;}
76 
80  inline ScheduledInstancesEbs& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;}
81 
87  inline long GetVolumeSize() const{ return m_volumeSize; }
88 
94  inline void SetVolumeSize(long value) { m_volumeSizeHasBeenSet = true; m_volumeSize = value; }
95 
101  inline ScheduledInstancesEbs& WithVolumeSize(long value) { SetVolumeSize(value); return *this;}
102 
106  inline bool GetDeleteOnTermination() const{ return m_deleteOnTermination; }
107 
111  inline void SetDeleteOnTermination(bool value) { m_deleteOnTerminationHasBeenSet = true; m_deleteOnTermination = value; }
112 
116  inline ScheduledInstancesEbs& WithDeleteOnTermination(bool value) { SetDeleteOnTermination(value); return *this;}
117 
124  inline const Aws::String& GetVolumeType() const{ return m_volumeType; }
125 
132  inline void SetVolumeType(const Aws::String& value) { m_volumeTypeHasBeenSet = true; m_volumeType = value; }
133 
140  inline void SetVolumeType(Aws::String&& value) { m_volumeTypeHasBeenSet = true; m_volumeType = value; }
141 
148  inline void SetVolumeType(const char* value) { m_volumeTypeHasBeenSet = true; m_volumeType.assign(value); }
149 
156  inline ScheduledInstancesEbs& WithVolumeType(const Aws::String& value) { SetVolumeType(value); return *this;}
157 
164  inline ScheduledInstancesEbs& WithVolumeType(Aws::String&& value) { SetVolumeType(value); return *this;}
165 
172  inline ScheduledInstancesEbs& WithVolumeType(const char* value) { SetVolumeType(value); return *this;}
173 
189  inline long GetIops() const{ return m_iops; }
190 
206  inline void SetIops(long value) { m_iopsHasBeenSet = true; m_iops = value; }
207 
223  inline ScheduledInstancesEbs& WithIops(long value) { SetIops(value); return *this;}
224 
229  inline bool GetEncrypted() const{ return m_encrypted; }
230 
235  inline void SetEncrypted(bool value) { m_encryptedHasBeenSet = true; m_encrypted = value; }
236 
241  inline ScheduledInstancesEbs& WithEncrypted(bool value) { SetEncrypted(value); return *this;}
242 
243  private:
244  Aws::String m_snapshotId;
245  bool m_snapshotIdHasBeenSet;
246  long m_volumeSize;
247  bool m_volumeSizeHasBeenSet;
248  bool m_deleteOnTermination;
249  bool m_deleteOnTerminationHasBeenSet;
250  Aws::String m_volumeType;
251  bool m_volumeTypeHasBeenSet;
252  long m_iops;
253  bool m_iopsHasBeenSet;
254  bool m_encrypted;
255  bool m_encryptedHasBeenSet;
256  };
257 
258 } // namespace Model
259 } // namespace EC2
260 } // namespace Aws
const Aws::String & GetSnapshotId() const
ScheduledInstancesEbs & WithVolumeSize(long value)
void SetVolumeType(const Aws::String &value)
const Aws::String & GetVolumeType() const
ScheduledInstancesEbs & WithIops(long value)
ScheduledInstancesEbs & WithDeleteOnTermination(bool value)
void SetSnapshotId(const Aws::String &value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
ScheduledInstancesEbs & WithSnapshotId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ScheduledInstancesEbs & WithEncrypted(bool value)
ScheduledInstancesEbs & WithSnapshotId(Aws::String &&value)
ScheduledInstancesEbs & WithVolumeType(const char *value)
ScheduledInstancesEbs & WithSnapshotId(const Aws::String &value)
ScheduledInstancesEbs & WithVolumeType(Aws::String &&value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:34
ScheduledInstancesEbs & WithVolumeType(const Aws::String &value)
JSON (JavaScript Object Notation).