123 lines
4.0 KiB
C++
123 lines
4.0 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/elasticmapreduce/EMR_EXPORTS.h>
|
|
#include <aws/core/utils/memory/stl/AWSVector.h>
|
|
#include <aws/elasticmapreduce/model/EbsBlockDeviceConfig.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Json
|
|
{
|
|
class JsonValue;
|
|
class JsonView;
|
|
} // namespace Json
|
|
} // namespace Utils
|
|
namespace EMR
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>The Amazon EBS configuration of a cluster instance.</p><p><h3>See Also:</h3>
|
|
* <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/EbsConfiguration">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_EMR_API EbsConfiguration
|
|
{
|
|
public:
|
|
EbsConfiguration();
|
|
EbsConfiguration(Aws::Utils::Json::JsonView jsonValue);
|
|
EbsConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|
|
|
|
|
/**
|
|
* <p>An array of Amazon EBS volume specifications attached to a cluster
|
|
* instance.</p>
|
|
*/
|
|
inline const Aws::Vector<EbsBlockDeviceConfig>& GetEbsBlockDeviceConfigs() const{ return m_ebsBlockDeviceConfigs; }
|
|
|
|
/**
|
|
* <p>An array of Amazon EBS volume specifications attached to a cluster
|
|
* instance.</p>
|
|
*/
|
|
inline bool EbsBlockDeviceConfigsHasBeenSet() const { return m_ebsBlockDeviceConfigsHasBeenSet; }
|
|
|
|
/**
|
|
* <p>An array of Amazon EBS volume specifications attached to a cluster
|
|
* instance.</p>
|
|
*/
|
|
inline void SetEbsBlockDeviceConfigs(const Aws::Vector<EbsBlockDeviceConfig>& value) { m_ebsBlockDeviceConfigsHasBeenSet = true; m_ebsBlockDeviceConfigs = value; }
|
|
|
|
/**
|
|
* <p>An array of Amazon EBS volume specifications attached to a cluster
|
|
* instance.</p>
|
|
*/
|
|
inline void SetEbsBlockDeviceConfigs(Aws::Vector<EbsBlockDeviceConfig>&& value) { m_ebsBlockDeviceConfigsHasBeenSet = true; m_ebsBlockDeviceConfigs = std::move(value); }
|
|
|
|
/**
|
|
* <p>An array of Amazon EBS volume specifications attached to a cluster
|
|
* instance.</p>
|
|
*/
|
|
inline EbsConfiguration& WithEbsBlockDeviceConfigs(const Aws::Vector<EbsBlockDeviceConfig>& value) { SetEbsBlockDeviceConfigs(value); return *this;}
|
|
|
|
/**
|
|
* <p>An array of Amazon EBS volume specifications attached to a cluster
|
|
* instance.</p>
|
|
*/
|
|
inline EbsConfiguration& WithEbsBlockDeviceConfigs(Aws::Vector<EbsBlockDeviceConfig>&& value) { SetEbsBlockDeviceConfigs(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>An array of Amazon EBS volume specifications attached to a cluster
|
|
* instance.</p>
|
|
*/
|
|
inline EbsConfiguration& AddEbsBlockDeviceConfigs(const EbsBlockDeviceConfig& value) { m_ebsBlockDeviceConfigsHasBeenSet = true; m_ebsBlockDeviceConfigs.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p>An array of Amazon EBS volume specifications attached to a cluster
|
|
* instance.</p>
|
|
*/
|
|
inline EbsConfiguration& AddEbsBlockDeviceConfigs(EbsBlockDeviceConfig&& value) { m_ebsBlockDeviceConfigsHasBeenSet = true; m_ebsBlockDeviceConfigs.push_back(std::move(value)); return *this; }
|
|
|
|
|
|
/**
|
|
* <p>Indicates whether an Amazon EBS volume is EBS-optimized.</p>
|
|
*/
|
|
inline bool GetEbsOptimized() const{ return m_ebsOptimized; }
|
|
|
|
/**
|
|
* <p>Indicates whether an Amazon EBS volume is EBS-optimized.</p>
|
|
*/
|
|
inline bool EbsOptimizedHasBeenSet() const { return m_ebsOptimizedHasBeenSet; }
|
|
|
|
/**
|
|
* <p>Indicates whether an Amazon EBS volume is EBS-optimized.</p>
|
|
*/
|
|
inline void SetEbsOptimized(bool value) { m_ebsOptimizedHasBeenSet = true; m_ebsOptimized = value; }
|
|
|
|
/**
|
|
* <p>Indicates whether an Amazon EBS volume is EBS-optimized.</p>
|
|
*/
|
|
inline EbsConfiguration& WithEbsOptimized(bool value) { SetEbsOptimized(value); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::Vector<EbsBlockDeviceConfig> m_ebsBlockDeviceConfigs;
|
|
bool m_ebsBlockDeviceConfigsHasBeenSet;
|
|
|
|
bool m_ebsOptimized;
|
|
bool m_ebsOptimizedHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace EMR
|
|
} // namespace Aws
|