AWS SDK for C++  0.12.9
AWS SDK for C++
EbsConfiguration.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 
35  {
36  public:
39  EbsConfiguration& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
40  Aws::Utils::Json::JsonValue Jsonize() const;
41 
42 
43  inline const Aws::Vector<EbsBlockDeviceConfig>& GetEbsBlockDeviceConfigs() const{ return m_ebsBlockDeviceConfigs; }
44 
45 
46  inline void SetEbsBlockDeviceConfigs(const Aws::Vector<EbsBlockDeviceConfig>& value) { m_ebsBlockDeviceConfigsHasBeenSet = true; m_ebsBlockDeviceConfigs = value; }
47 
48 
49  inline void SetEbsBlockDeviceConfigs(Aws::Vector<EbsBlockDeviceConfig>&& value) { m_ebsBlockDeviceConfigsHasBeenSet = true; m_ebsBlockDeviceConfigs = value; }
50 
51 
52  inline EbsConfiguration& WithEbsBlockDeviceConfigs(const Aws::Vector<EbsBlockDeviceConfig>& value) { SetEbsBlockDeviceConfigs(value); return *this;}
53 
54 
55  inline EbsConfiguration& WithEbsBlockDeviceConfigs(Aws::Vector<EbsBlockDeviceConfig>&& value) { SetEbsBlockDeviceConfigs(value); return *this;}
56 
57 
58  inline EbsConfiguration& AddEbsBlockDeviceConfigs(const EbsBlockDeviceConfig& value) { m_ebsBlockDeviceConfigsHasBeenSet = true; m_ebsBlockDeviceConfigs.push_back(value); return *this; }
59 
60 
61  inline EbsConfiguration& AddEbsBlockDeviceConfigs(EbsBlockDeviceConfig&& value) { m_ebsBlockDeviceConfigsHasBeenSet = true; m_ebsBlockDeviceConfigs.push_back(value); return *this; }
62 
63 
64  inline bool GetEbsOptimized() const{ return m_ebsOptimized; }
65 
66 
67  inline void SetEbsOptimized(bool value) { m_ebsOptimizedHasBeenSet = true; m_ebsOptimized = value; }
68 
69 
70  inline EbsConfiguration& WithEbsOptimized(bool value) { SetEbsOptimized(value); return *this;}
71 
72  private:
73  Aws::Vector<EbsBlockDeviceConfig> m_ebsBlockDeviceConfigs;
74  bool m_ebsBlockDeviceConfigsHasBeenSet;
75  bool m_ebsOptimized;
76  bool m_ebsOptimizedHasBeenSet;
77  };
78 
79 } // namespace Model
80 } // namespace EMR
81 } // namespace Aws
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
void SetEbsBlockDeviceConfigs(Aws::Vector< EbsBlockDeviceConfig > &&value)
EbsConfiguration & WithEbsOptimized(bool value)
const Aws::Vector< EbsBlockDeviceConfig > & GetEbsBlockDeviceConfigs() const
EbsConfiguration & AddEbsBlockDeviceConfigs(const EbsBlockDeviceConfig &value)
void SetEbsBlockDeviceConfigs(const Aws::Vector< EbsBlockDeviceConfig > &value)
EbsConfiguration & WithEbsBlockDeviceConfigs(Aws::Vector< EbsBlockDeviceConfig > &&value)
EbsConfiguration & AddEbsBlockDeviceConfigs(EbsBlockDeviceConfig &&value)
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:34
EbsConfiguration & WithEbsBlockDeviceConfigs(const Aws::Vector< EbsBlockDeviceConfig > &value)
JSON (JavaScript Object Notation).