115 lines
4.2 KiB
C
115 lines
4.2 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/elasticmapreduce/model/VolumeSpecification.h>
|
|||
|
|
#include <utility>
|
|||
|
|
|
|||
|
|
namespace Aws
|
|||
|
|
{
|
|||
|
|
namespace Utils
|
|||
|
|
{
|
|||
|
|
namespace Json
|
|||
|
|
{
|
|||
|
|
class JsonValue;
|
|||
|
|
class JsonView;
|
|||
|
|
} // namespace Json
|
|||
|
|
} // namespace Utils
|
|||
|
|
namespace EMR
|
|||
|
|
{
|
|||
|
|
namespace Model
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Configuration of requested EBS block device associated with the instance
|
|||
|
|
* group with count of volumes that will be associated to every
|
|||
|
|
* instance.</p><p><h3>See Also:</h3> <a
|
|||
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/EbsBlockDeviceConfig">AWS
|
|||
|
|
* API Reference</a></p>
|
|||
|
|
*/
|
|||
|
|
class AWS_EMR_API EbsBlockDeviceConfig
|
|||
|
|
{
|
|||
|
|
public:
|
|||
|
|
EbsBlockDeviceConfig();
|
|||
|
|
EbsBlockDeviceConfig(Aws::Utils::Json::JsonView jsonValue);
|
|||
|
|
EbsBlockDeviceConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|||
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>EBS volume specifications such as volume type, IOPS, and size (GiB) that will
|
|||
|
|
* be requested for the EBS volume attached to an EC2 instance in the cluster.</p>
|
|||
|
|
*/
|
|||
|
|
inline const VolumeSpecification& GetVolumeSpecification() const{ return m_volumeSpecification; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>EBS volume specifications such as volume type, IOPS, and size (GiB) that will
|
|||
|
|
* be requested for the EBS volume attached to an EC2 instance in the cluster.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool VolumeSpecificationHasBeenSet() const { return m_volumeSpecificationHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>EBS volume specifications such as volume type, IOPS, and size (GiB) that will
|
|||
|
|
* be requested for the EBS volume attached to an EC2 instance in the cluster.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetVolumeSpecification(const VolumeSpecification& value) { m_volumeSpecificationHasBeenSet = true; m_volumeSpecification = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>EBS volume specifications such as volume type, IOPS, and size (GiB) that will
|
|||
|
|
* be requested for the EBS volume attached to an EC2 instance in the cluster.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetVolumeSpecification(VolumeSpecification&& value) { m_volumeSpecificationHasBeenSet = true; m_volumeSpecification = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>EBS volume specifications such as volume type, IOPS, and size (GiB) that will
|
|||
|
|
* be requested for the EBS volume attached to an EC2 instance in the cluster.</p>
|
|||
|
|
*/
|
|||
|
|
inline EbsBlockDeviceConfig& WithVolumeSpecification(const VolumeSpecification& value) { SetVolumeSpecification(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>EBS volume specifications such as volume type, IOPS, and size (GiB) that will
|
|||
|
|
* be requested for the EBS volume attached to an EC2 instance in the cluster.</p>
|
|||
|
|
*/
|
|||
|
|
inline EbsBlockDeviceConfig& WithVolumeSpecification(VolumeSpecification&& value) { SetVolumeSpecification(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Number of EBS volumes with a specific volume configuration that will be
|
|||
|
|
* associated with every instance in the instance group</p>
|
|||
|
|
*/
|
|||
|
|
inline int GetVolumesPerInstance() const{ return m_volumesPerInstance; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Number of EBS volumes with a specific volume configuration that will be
|
|||
|
|
* associated with every instance in the instance group</p>
|
|||
|
|
*/
|
|||
|
|
inline bool VolumesPerInstanceHasBeenSet() const { return m_volumesPerInstanceHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Number of EBS volumes with a specific volume configuration that will be
|
|||
|
|
* associated with every instance in the instance group</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetVolumesPerInstance(int value) { m_volumesPerInstanceHasBeenSet = true; m_volumesPerInstance = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Number of EBS volumes with a specific volume configuration that will be
|
|||
|
|
* associated with every instance in the instance group</p>
|
|||
|
|
*/
|
|||
|
|
inline EbsBlockDeviceConfig& WithVolumesPerInstance(int value) { SetVolumesPerInstance(value); return *this;}
|
|||
|
|
|
|||
|
|
private:
|
|||
|
|
|
|||
|
|
VolumeSpecification m_volumeSpecification;
|
|||
|
|
bool m_volumeSpecificationHasBeenSet;
|
|||
|
|
|
|||
|
|
int m_volumesPerInstance;
|
|||
|
|
bool m_volumesPerInstanceHasBeenSet;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
} // namespace Model
|
|||
|
|
} // namespace EMR
|
|||
|
|
} // namespace Aws
|