AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ResourceSpec.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sagemaker/model/AppInstanceType.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SageMaker
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_SAGEMAKER_API ResourceSpec();
37 AWS_SAGEMAKER_API ResourceSpec(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SAGEMAKER_API ResourceSpec& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetSageMakerImageArn() const{ return m_sageMakerImageArn; }
47 inline bool SageMakerImageArnHasBeenSet() const { return m_sageMakerImageArnHasBeenSet; }
48 inline void SetSageMakerImageArn(const Aws::String& value) { m_sageMakerImageArnHasBeenSet = true; m_sageMakerImageArn = value; }
49 inline void SetSageMakerImageArn(Aws::String&& value) { m_sageMakerImageArnHasBeenSet = true; m_sageMakerImageArn = std::move(value); }
50 inline void SetSageMakerImageArn(const char* value) { m_sageMakerImageArnHasBeenSet = true; m_sageMakerImageArn.assign(value); }
51 inline ResourceSpec& WithSageMakerImageArn(const Aws::String& value) { SetSageMakerImageArn(value); return *this;}
52 inline ResourceSpec& WithSageMakerImageArn(Aws::String&& value) { SetSageMakerImageArn(std::move(value)); return *this;}
53 inline ResourceSpec& WithSageMakerImageArn(const char* value) { SetSageMakerImageArn(value); return *this;}
55
57
60 inline const Aws::String& GetSageMakerImageVersionArn() const{ return m_sageMakerImageVersionArn; }
61 inline bool SageMakerImageVersionArnHasBeenSet() const { return m_sageMakerImageVersionArnHasBeenSet; }
62 inline void SetSageMakerImageVersionArn(const Aws::String& value) { m_sageMakerImageVersionArnHasBeenSet = true; m_sageMakerImageVersionArn = value; }
63 inline void SetSageMakerImageVersionArn(Aws::String&& value) { m_sageMakerImageVersionArnHasBeenSet = true; m_sageMakerImageVersionArn = std::move(value); }
64 inline void SetSageMakerImageVersionArn(const char* value) { m_sageMakerImageVersionArnHasBeenSet = true; m_sageMakerImageVersionArn.assign(value); }
66 inline ResourceSpec& WithSageMakerImageVersionArn(Aws::String&& value) { SetSageMakerImageVersionArn(std::move(value)); return *this;}
67 inline ResourceSpec& WithSageMakerImageVersionArn(const char* value) { SetSageMakerImageVersionArn(value); return *this;}
69
71
75 inline const Aws::String& GetSageMakerImageVersionAlias() const{ return m_sageMakerImageVersionAlias; }
76 inline bool SageMakerImageVersionAliasHasBeenSet() const { return m_sageMakerImageVersionAliasHasBeenSet; }
77 inline void SetSageMakerImageVersionAlias(const Aws::String& value) { m_sageMakerImageVersionAliasHasBeenSet = true; m_sageMakerImageVersionAlias = value; }
78 inline void SetSageMakerImageVersionAlias(Aws::String&& value) { m_sageMakerImageVersionAliasHasBeenSet = true; m_sageMakerImageVersionAlias = std::move(value); }
79 inline void SetSageMakerImageVersionAlias(const char* value) { m_sageMakerImageVersionAliasHasBeenSet = true; m_sageMakerImageVersionAlias.assign(value); }
81 inline ResourceSpec& WithSageMakerImageVersionAlias(Aws::String&& value) { SetSageMakerImageVersionAlias(std::move(value)); return *this;}
82 inline ResourceSpec& WithSageMakerImageVersionAlias(const char* value) { SetSageMakerImageVersionAlias(value); return *this;}
84
86
93 inline const AppInstanceType& GetInstanceType() const{ return m_instanceType; }
94 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
95 inline void SetInstanceType(const AppInstanceType& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
96 inline void SetInstanceType(AppInstanceType&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
97 inline ResourceSpec& WithInstanceType(const AppInstanceType& value) { SetInstanceType(value); return *this;}
98 inline ResourceSpec& WithInstanceType(AppInstanceType&& value) { SetInstanceType(std::move(value)); return *this;}
100
102
106 inline const Aws::String& GetLifecycleConfigArn() const{ return m_lifecycleConfigArn; }
107 inline bool LifecycleConfigArnHasBeenSet() const { return m_lifecycleConfigArnHasBeenSet; }
108 inline void SetLifecycleConfigArn(const Aws::String& value) { m_lifecycleConfigArnHasBeenSet = true; m_lifecycleConfigArn = value; }
109 inline void SetLifecycleConfigArn(Aws::String&& value) { m_lifecycleConfigArnHasBeenSet = true; m_lifecycleConfigArn = std::move(value); }
110 inline void SetLifecycleConfigArn(const char* value) { m_lifecycleConfigArnHasBeenSet = true; m_lifecycleConfigArn.assign(value); }
111 inline ResourceSpec& WithLifecycleConfigArn(const Aws::String& value) { SetLifecycleConfigArn(value); return *this;}
112 inline ResourceSpec& WithLifecycleConfigArn(Aws::String&& value) { SetLifecycleConfigArn(std::move(value)); return *this;}
113 inline ResourceSpec& WithLifecycleConfigArn(const char* value) { SetLifecycleConfigArn(value); return *this;}
115 private:
116
117 Aws::String m_sageMakerImageArn;
118 bool m_sageMakerImageArnHasBeenSet = false;
119
120 Aws::String m_sageMakerImageVersionArn;
121 bool m_sageMakerImageVersionArnHasBeenSet = false;
122
123 Aws::String m_sageMakerImageVersionAlias;
124 bool m_sageMakerImageVersionAliasHasBeenSet = false;
125
126 AppInstanceType m_instanceType;
127 bool m_instanceTypeHasBeenSet = false;
128
129 Aws::String m_lifecycleConfigArn;
130 bool m_lifecycleConfigArnHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace SageMaker
135} // namespace Aws
ResourceSpec & WithInstanceType(AppInstanceType &&value)
void SetSageMakerImageVersionAlias(Aws::String &&value)
void SetSageMakerImageVersionAlias(const char *value)
AWS_SAGEMAKER_API ResourceSpec(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetLifecycleConfigArn() const
ResourceSpec & WithSageMakerImageVersionAlias(const char *value)
const Aws::String & GetSageMakerImageVersionArn() const
void SetSageMakerImageVersionArn(const Aws::String &value)
bool SageMakerImageVersionAliasHasBeenSet() const
void SetSageMakerImageArn(const char *value)
ResourceSpec & WithSageMakerImageVersionAlias(Aws::String &&value)
void SetInstanceType(const AppInstanceType &value)
const AppInstanceType & GetInstanceType() const
ResourceSpec & WithSageMakerImageArn(Aws::String &&value)
ResourceSpec & WithSageMakerImageVersionArn(Aws::String &&value)
ResourceSpec & WithSageMakerImageVersionArn(const Aws::String &value)
void SetSageMakerImageVersionArn(const char *value)
ResourceSpec & WithLifecycleConfigArn(const char *value)
ResourceSpec & WithSageMakerImageVersionAlias(const Aws::String &value)
ResourceSpec & WithInstanceType(const AppInstanceType &value)
void SetLifecycleConfigArn(const char *value)
void SetLifecycleConfigArn(const Aws::String &value)
ResourceSpec & WithLifecycleConfigArn(Aws::String &&value)
ResourceSpec & WithSageMakerImageArn(const char *value)
ResourceSpec & WithSageMakerImageVersionArn(const char *value)
void SetSageMakerImageArn(Aws::String &&value)
ResourceSpec & WithLifecycleConfigArn(const Aws::String &value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSageMakerImageVersionAlias(const Aws::String &value)
void SetSageMakerImageVersionArn(Aws::String &&value)
void SetLifecycleConfigArn(Aws::String &&value)
const Aws::String & GetSageMakerImageVersionAlias() const
const Aws::String & GetSageMakerImageArn() const
void SetSageMakerImageArn(const Aws::String &value)
ResourceSpec & WithSageMakerImageArn(const Aws::String &value)
void SetInstanceType(AppInstanceType &&value)
AWS_SAGEMAKER_API ResourceSpec & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue