AWS SDK for C++  0.14.3
AWS SDK for C++
EbsBlockDevice.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 Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace EMR
30 {
31 namespace Model
32 {
33 
39  {
40  public:
43  EbsBlockDevice& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
50  inline const VolumeSpecification& GetVolumeSpecification() const{ return m_volumeSpecification; }
51 
56  inline void SetVolumeSpecification(const VolumeSpecification& value) { m_volumeSpecificationHasBeenSet = true; m_volumeSpecification = value; }
57 
62  inline void SetVolumeSpecification(VolumeSpecification&& value) { m_volumeSpecificationHasBeenSet = true; m_volumeSpecification = value; }
63 
68  inline EbsBlockDevice& WithVolumeSpecification(const VolumeSpecification& value) { SetVolumeSpecification(value); return *this;}
69 
74  inline EbsBlockDevice& WithVolumeSpecification(VolumeSpecification&& value) { SetVolumeSpecification(value); return *this;}
75 
79  inline const Aws::String& GetDevice() const{ return m_device; }
80 
84  inline void SetDevice(const Aws::String& value) { m_deviceHasBeenSet = true; m_device = value; }
85 
89  inline void SetDevice(Aws::String&& value) { m_deviceHasBeenSet = true; m_device = value; }
90 
94  inline void SetDevice(const char* value) { m_deviceHasBeenSet = true; m_device.assign(value); }
95 
99  inline EbsBlockDevice& WithDevice(const Aws::String& value) { SetDevice(value); return *this;}
100 
104  inline EbsBlockDevice& WithDevice(Aws::String&& value) { SetDevice(value); return *this;}
105 
109  inline EbsBlockDevice& WithDevice(const char* value) { SetDevice(value); return *this;}
110 
111  private:
112  VolumeSpecification m_volumeSpecification;
113  bool m_volumeSpecificationHasBeenSet;
114  Aws::String m_device;
115  bool m_deviceHasBeenSet;
116  };
117 
118 } // namespace Model
119 } // namespace EMR
120 } // namespace Aws
EbsBlockDevice & WithVolumeSpecification(const VolumeSpecification &value)
EbsBlockDevice & WithDevice(const Aws::String &value)
void SetVolumeSpecification(VolumeSpecification &&value)
void SetDevice(const char *value)
const VolumeSpecification & GetVolumeSpecification() const
void SetVolumeSpecification(const VolumeSpecification &value)
EbsBlockDevice & WithVolumeSpecification(VolumeSpecification &&value)
void SetDevice(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::String & GetDevice() const
void SetDevice(const Aws::String &value)
EbsBlockDevice & WithDevice(Aws::String &&value)
EbsBlockDevice & WithDevice(const char *value)
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:37
JSON (JavaScript Object Notation).