AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
VolumeSpecification.h
1
6#pragma once
7#include <aws/elasticmapreduce/EMR_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace EMR
22{
23namespace Model
24{
25
34 {
35 public:
36 AWS_EMR_API VolumeSpecification();
40
41
43
47 inline const Aws::String& GetVolumeType() const{ return m_volumeType; }
48 inline bool VolumeTypeHasBeenSet() const { return m_volumeTypeHasBeenSet; }
49 inline void SetVolumeType(const Aws::String& value) { m_volumeTypeHasBeenSet = true; m_volumeType = value; }
50 inline void SetVolumeType(Aws::String&& value) { m_volumeTypeHasBeenSet = true; m_volumeType = std::move(value); }
51 inline void SetVolumeType(const char* value) { m_volumeTypeHasBeenSet = true; m_volumeType.assign(value); }
52 inline VolumeSpecification& WithVolumeType(const Aws::String& value) { SetVolumeType(value); return *this;}
53 inline VolumeSpecification& WithVolumeType(Aws::String&& value) { SetVolumeType(std::move(value)); return *this;}
54 inline VolumeSpecification& WithVolumeType(const char* value) { SetVolumeType(value); return *this;}
56
58
61 inline int GetIops() const{ return m_iops; }
62 inline bool IopsHasBeenSet() const { return m_iopsHasBeenSet; }
63 inline void SetIops(int value) { m_iopsHasBeenSet = true; m_iops = value; }
64 inline VolumeSpecification& WithIops(int value) { SetIops(value); return *this;}
66
68
72 inline int GetSizeInGB() const{ return m_sizeInGB; }
73 inline bool SizeInGBHasBeenSet() const { return m_sizeInGBHasBeenSet; }
74 inline void SetSizeInGB(int value) { m_sizeInGBHasBeenSet = true; m_sizeInGB = value; }
75 inline VolumeSpecification& WithSizeInGB(int value) { SetSizeInGB(value); return *this;}
77
79
83 inline int GetThroughput() const{ return m_throughput; }
84 inline bool ThroughputHasBeenSet() const { return m_throughputHasBeenSet; }
85 inline void SetThroughput(int value) { m_throughputHasBeenSet = true; m_throughput = value; }
86 inline VolumeSpecification& WithThroughput(int value) { SetThroughput(value); return *this;}
88 private:
89
90 Aws::String m_volumeType;
91 bool m_volumeTypeHasBeenSet = false;
92
93 int m_iops;
94 bool m_iopsHasBeenSet = false;
95
96 int m_sizeInGB;
97 bool m_sizeInGBHasBeenSet = false;
98
99 int m_throughput;
100 bool m_throughputHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace EMR
105} // namespace Aws
void SetVolumeType(const Aws::String &value)
VolumeSpecification & WithVolumeType(Aws::String &&value)
VolumeSpecification & WithSizeInGB(int value)
VolumeSpecification & WithVolumeType(const Aws::String &value)
const Aws::String & GetVolumeType() const
AWS_EMR_API VolumeSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
VolumeSpecification & WithVolumeType(const char *value)
void SetVolumeType(Aws::String &&value)
VolumeSpecification & WithIops(int value)
VolumeSpecification & WithThroughput(int value)
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_EMR_API VolumeSpecification(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue