AWS SDK for C++  0.12.9
AWS SDK for C++
VolumeConfiguration.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
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Json
24 {
25  class JsonValue;
26 } // namespace Json
27 } // namespace Utils
28 namespace OpsWorks
29 {
30 namespace Model
31 {
32 
37  {
38  public:
41  VolumeConfiguration& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
42  Aws::Utils::Json::JsonValue Jsonize() const;
43 
47  inline const Aws::String& GetMountPoint() const{ return m_mountPoint; }
48 
52  inline void SetMountPoint(const Aws::String& value) { m_mountPointHasBeenSet = true; m_mountPoint = value; }
53 
57  inline void SetMountPoint(Aws::String&& value) { m_mountPointHasBeenSet = true; m_mountPoint = value; }
58 
62  inline void SetMountPoint(const char* value) { m_mountPointHasBeenSet = true; m_mountPoint.assign(value); }
63 
67  inline VolumeConfiguration& WithMountPoint(const Aws::String& value) { SetMountPoint(value); return *this;}
68 
72  inline VolumeConfiguration& WithMountPoint(Aws::String&& value) { SetMountPoint(value); return *this;}
73 
77  inline VolumeConfiguration& WithMountPoint(const char* value) { SetMountPoint(value); return *this;}
78 
83  inline long GetRaidLevel() const{ return m_raidLevel; }
84 
89  inline void SetRaidLevel(long value) { m_raidLevelHasBeenSet = true; m_raidLevel = value; }
90 
95  inline VolumeConfiguration& WithRaidLevel(long value) { SetRaidLevel(value); return *this;}
96 
100  inline long GetNumberOfDisks() const{ return m_numberOfDisks; }
101 
105  inline void SetNumberOfDisks(long value) { m_numberOfDisksHasBeenSet = true; m_numberOfDisks = value; }
106 
110  inline VolumeConfiguration& WithNumberOfDisks(long value) { SetNumberOfDisks(value); return *this;}
111 
115  inline long GetSize() const{ return m_size; }
116 
120  inline void SetSize(long value) { m_sizeHasBeenSet = true; m_size = value; }
121 
125  inline VolumeConfiguration& WithSize(long value) { SetSize(value); return *this;}
126 
132  inline const Aws::String& GetVolumeType() const{ return m_volumeType; }
133 
139  inline void SetVolumeType(const Aws::String& value) { m_volumeTypeHasBeenSet = true; m_volumeType = value; }
140 
146  inline void SetVolumeType(Aws::String&& value) { m_volumeTypeHasBeenSet = true; m_volumeType = value; }
147 
153  inline void SetVolumeType(const char* value) { m_volumeTypeHasBeenSet = true; m_volumeType.assign(value); }
154 
160  inline VolumeConfiguration& WithVolumeType(const Aws::String& value) { SetVolumeType(value); return *this;}
161 
167  inline VolumeConfiguration& WithVolumeType(Aws::String&& value) { SetVolumeType(value); return *this;}
168 
174  inline VolumeConfiguration& WithVolumeType(const char* value) { SetVolumeType(value); return *this;}
175 
179  inline long GetIops() const{ return m_iops; }
180 
184  inline void SetIops(long value) { m_iopsHasBeenSet = true; m_iops = value; }
185 
189  inline VolumeConfiguration& WithIops(long value) { SetIops(value); return *this;}
190 
191  private:
192  Aws::String m_mountPoint;
193  bool m_mountPointHasBeenSet;
194  long m_raidLevel;
195  bool m_raidLevelHasBeenSet;
196  long m_numberOfDisks;
197  bool m_numberOfDisksHasBeenSet;
198  long m_size;
199  bool m_sizeHasBeenSet;
200  Aws::String m_volumeType;
201  bool m_volumeTypeHasBeenSet;
202  long m_iops;
203  bool m_iopsHasBeenSet;
204  };
205 
206 } // namespace Model
207 } // namespace OpsWorks
208 } // namespace Aws
VolumeConfiguration & WithRaidLevel(long value)
VolumeConfiguration & WithMountPoint(const char *value)
const Aws::String & GetMountPoint() const
VolumeConfiguration & WithVolumeType(const Aws::String &value)
VolumeConfiguration & WithMountPoint(const Aws::String &value)
const Aws::String & GetVolumeType() const
VolumeConfiguration & WithVolumeType(Aws::String &&value)
VolumeConfiguration & WithIops(long value)
void SetMountPoint(const Aws::String &value)
VolumeConfiguration & WithMountPoint(Aws::String &&value)
VolumeConfiguration & WithSize(long value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_OPSWORKS_API
void SetVolumeType(const Aws::String &value)
VolumeConfiguration & WithVolumeType(const char *value)
JSON (JavaScript Object Notation).
VolumeConfiguration & WithNumberOfDisks(long value)