AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ClusterEbsVolumeConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/sagemaker/SageMaker_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SageMaker {
20namespace Model {
21
32 public:
33 AWS_SAGEMAKER_API ClusterEbsVolumeConfig() = default;
36 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
45 inline int GetVolumeSizeInGB() const { return m_volumeSizeInGB; }
46 inline bool VolumeSizeInGBHasBeenSet() const { return m_volumeSizeInGBHasBeenSet; }
47 inline void SetVolumeSizeInGB(int value) {
48 m_volumeSizeInGBHasBeenSet = true;
49 m_volumeSizeInGB = value;
50 }
52 SetVolumeSizeInGB(value);
53 return *this;
54 }
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) {
65 m_volumeKmsKeyIdHasBeenSet = true;
66 m_volumeKmsKeyId = std::forward<VolumeKmsKeyIdT>(value);
67 }
68 template <typename VolumeKmsKeyIdT = Aws::String>
69 ClusterEbsVolumeConfig& WithVolumeKmsKeyId(VolumeKmsKeyIdT&& value) {
70 SetVolumeKmsKeyId(std::forward<VolumeKmsKeyIdT>(value));
71 return *this;
72 }
74
76
95 inline bool GetRootVolume() const { return m_rootVolume; }
96 inline bool RootVolumeHasBeenSet() const { return m_rootVolumeHasBeenSet; }
97 inline void SetRootVolume(bool value) {
98 m_rootVolumeHasBeenSet = true;
99 m_rootVolume = value;
100 }
102 SetRootVolume(value);
103 return *this;
104 }
106 private:
107 int m_volumeSizeInGB{0};
108
109 Aws::String m_volumeKmsKeyId;
110
111 bool m_rootVolume{false};
112 bool m_volumeSizeInGBHasBeenSet = false;
113 bool m_volumeKmsKeyIdHasBeenSet = false;
114 bool m_rootVolumeHasBeenSet = false;
115};
116
117} // namespace Model
118} // namespace SageMaker
119} // 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