AWS SDK for C++

AWS SDK for C++ Version 1.11.637

Loading...
Searching...
No Matches
ClusterEbsVolumeConfig.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_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 SageMaker
22{
23namespace Model
24{
25
36 {
37 public:
38 AWS_SAGEMAKER_API ClusterEbsVolumeConfig() = default;
41 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
51 inline int GetVolumeSizeInGB() const { return m_volumeSizeInGB; }
52 inline bool VolumeSizeInGBHasBeenSet() const { return m_volumeSizeInGBHasBeenSet; }
53 inline void SetVolumeSizeInGB(int value) { m_volumeSizeInGBHasBeenSet = true; m_volumeSizeInGB = value; }
54 inline ClusterEbsVolumeConfig& WithVolumeSizeInGB(int value) { SetVolumeSizeInGB(value); return *this;}
56
58
61 inline const Aws::String& GetVolumeKmsKeyId() const { return m_volumeKmsKeyId; }
62 inline bool VolumeKmsKeyIdHasBeenSet() const { return m_volumeKmsKeyIdHasBeenSet; }
63 template<typename VolumeKmsKeyIdT = Aws::String>
64 void SetVolumeKmsKeyId(VolumeKmsKeyIdT&& value) { m_volumeKmsKeyIdHasBeenSet = true; m_volumeKmsKeyId = std::forward<VolumeKmsKeyIdT>(value); }
65 template<typename VolumeKmsKeyIdT = Aws::String>
66 ClusterEbsVolumeConfig& WithVolumeKmsKeyId(VolumeKmsKeyIdT&& value) { SetVolumeKmsKeyId(std::forward<VolumeKmsKeyIdT>(value)); return *this;}
68
70
89 inline bool GetRootVolume() const { return m_rootVolume; }
90 inline bool RootVolumeHasBeenSet() const { return m_rootVolumeHasBeenSet; }
91 inline void SetRootVolume(bool value) { m_rootVolumeHasBeenSet = true; m_rootVolume = value; }
92 inline ClusterEbsVolumeConfig& WithRootVolume(bool value) { SetRootVolume(value); return *this;}
94 private:
95
96 int m_volumeSizeInGB{0};
97 bool m_volumeSizeInGBHasBeenSet = false;
98
99 Aws::String m_volumeKmsKeyId;
100 bool m_volumeKmsKeyIdHasBeenSet = false;
101
102 bool m_rootVolume{false};
103 bool m_rootVolumeHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace SageMaker
108} // namespace Aws
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
ClusterEbsVolumeConfig & WithVolumeKmsKeyId(VolumeKmsKeyIdT &&value)
AWS_SAGEMAKER_API ClusterEbsVolumeConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API ClusterEbsVolumeConfig()=default
ClusterEbsVolumeConfig & WithRootVolume(bool value)
AWS_SAGEMAKER_API ClusterEbsVolumeConfig(Aws::Utils::Json::JsonView jsonValue)
ClusterEbsVolumeConfig & WithVolumeSizeInGB(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue