AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
TransformResources.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/sagemaker/SageMaker_EXPORTS.h>
9#include <aws/sagemaker/model/TransformInstanceType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SageMaker {
21namespace Model {
22
30 public:
31 AWS_SAGEMAKER_API TransformResources() = default;
32 AWS_SAGEMAKER_API TransformResources(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
42 inline TransformInstanceType GetInstanceType() const { return m_instanceType; }
43 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
45 m_instanceTypeHasBeenSet = true;
46 m_instanceType = value;
47 }
49 SetInstanceType(value);
50 return *this;
51 }
53
55
60 inline int GetInstanceCount() const { return m_instanceCount; }
61 inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; }
62 inline void SetInstanceCount(int value) {
63 m_instanceCountHasBeenSet = true;
64 m_instanceCount = value;
65 }
67 SetInstanceCount(value);
68 return *this;
69 }
71
73
95 inline const Aws::String& GetVolumeKmsKeyId() const { return m_volumeKmsKeyId; }
96 inline bool VolumeKmsKeyIdHasBeenSet() const { return m_volumeKmsKeyIdHasBeenSet; }
97 template <typename VolumeKmsKeyIdT = Aws::String>
98 void SetVolumeKmsKeyId(VolumeKmsKeyIdT&& value) {
99 m_volumeKmsKeyIdHasBeenSet = true;
100 m_volumeKmsKeyId = std::forward<VolumeKmsKeyIdT>(value);
101 }
102 template <typename VolumeKmsKeyIdT = Aws::String>
103 TransformResources& WithVolumeKmsKeyId(VolumeKmsKeyIdT&& value) {
104 SetVolumeKmsKeyId(std::forward<VolumeKmsKeyIdT>(value));
105 return *this;
106 }
108
110
119 inline const Aws::String& GetTransformAmiVersion() const { return m_transformAmiVersion; }
120 inline bool TransformAmiVersionHasBeenSet() const { return m_transformAmiVersionHasBeenSet; }
121 template <typename TransformAmiVersionT = Aws::String>
122 void SetTransformAmiVersion(TransformAmiVersionT&& value) {
123 m_transformAmiVersionHasBeenSet = true;
124 m_transformAmiVersion = std::forward<TransformAmiVersionT>(value);
125 }
126 template <typename TransformAmiVersionT = Aws::String>
127 TransformResources& WithTransformAmiVersion(TransformAmiVersionT&& value) {
128 SetTransformAmiVersion(std::forward<TransformAmiVersionT>(value));
129 return *this;
130 }
132 private:
134
135 int m_instanceCount{0};
136
137 Aws::String m_volumeKmsKeyId;
138
139 Aws::String m_transformAmiVersion;
140 bool m_instanceTypeHasBeenSet = false;
141 bool m_instanceCountHasBeenSet = false;
142 bool m_volumeKmsKeyIdHasBeenSet = false;
143 bool m_transformAmiVersionHasBeenSet = false;
144};
145
146} // namespace Model
147} // namespace SageMaker
148} // namespace Aws
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetTransformAmiVersion() const
TransformResources & WithInstanceCount(int value)
AWS_SAGEMAKER_API TransformResources(Aws::Utils::Json::JsonView jsonValue)
void SetVolumeKmsKeyId(VolumeKmsKeyIdT &&value)
AWS_SAGEMAKER_API TransformResources()=default
TransformResources & WithInstanceType(TransformInstanceType value)
TransformResources & WithVolumeKmsKeyId(VolumeKmsKeyIdT &&value)
void SetTransformAmiVersion(TransformAmiVersionT &&value)
TransformInstanceType GetInstanceType() const
void SetInstanceType(TransformInstanceType value)
AWS_SAGEMAKER_API TransformResources & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetVolumeKmsKeyId() const
TransformResources & WithTransformAmiVersion(TransformAmiVersionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue