AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
SourceAlgorithm.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/ModelDataSource.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
32 public:
33 AWS_SAGEMAKER_API SourceAlgorithm() = default;
34 AWS_SAGEMAKER_API SourceAlgorithm(Aws::Utils::Json::JsonView jsonValue);
36 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
46 inline const Aws::String& GetModelDataUrl() const { return m_modelDataUrl; }
47 inline bool ModelDataUrlHasBeenSet() const { return m_modelDataUrlHasBeenSet; }
48 template <typename ModelDataUrlT = Aws::String>
49 void SetModelDataUrl(ModelDataUrlT&& value) {
50 m_modelDataUrlHasBeenSet = true;
51 m_modelDataUrl = std::forward<ModelDataUrlT>(value);
52 }
53 template <typename ModelDataUrlT = Aws::String>
54 SourceAlgorithm& WithModelDataUrl(ModelDataUrlT&& value) {
55 SetModelDataUrl(std::forward<ModelDataUrlT>(value));
56 return *this;
57 }
59
61
65 inline const ModelDataSource& GetModelDataSource() const { return m_modelDataSource; }
66 inline bool ModelDataSourceHasBeenSet() const { return m_modelDataSourceHasBeenSet; }
67 template <typename ModelDataSourceT = ModelDataSource>
68 void SetModelDataSource(ModelDataSourceT&& value) {
69 m_modelDataSourceHasBeenSet = true;
70 m_modelDataSource = std::forward<ModelDataSourceT>(value);
71 }
72 template <typename ModelDataSourceT = ModelDataSource>
73 SourceAlgorithm& WithModelDataSource(ModelDataSourceT&& value) {
74 SetModelDataSource(std::forward<ModelDataSourceT>(value));
75 return *this;
76 }
78
80
83 inline const Aws::String& GetModelDataETag() const { return m_modelDataETag; }
84 inline bool ModelDataETagHasBeenSet() const { return m_modelDataETagHasBeenSet; }
85 template <typename ModelDataETagT = Aws::String>
86 void SetModelDataETag(ModelDataETagT&& value) {
87 m_modelDataETagHasBeenSet = true;
88 m_modelDataETag = std::forward<ModelDataETagT>(value);
89 }
90 template <typename ModelDataETagT = Aws::String>
91 SourceAlgorithm& WithModelDataETag(ModelDataETagT&& value) {
92 SetModelDataETag(std::forward<ModelDataETagT>(value));
93 return *this;
94 }
96
98
103 inline const Aws::String& GetAlgorithmName() const { return m_algorithmName; }
104 inline bool AlgorithmNameHasBeenSet() const { return m_algorithmNameHasBeenSet; }
105 template <typename AlgorithmNameT = Aws::String>
106 void SetAlgorithmName(AlgorithmNameT&& value) {
107 m_algorithmNameHasBeenSet = true;
108 m_algorithmName = std::forward<AlgorithmNameT>(value);
109 }
110 template <typename AlgorithmNameT = Aws::String>
111 SourceAlgorithm& WithAlgorithmName(AlgorithmNameT&& value) {
112 SetAlgorithmName(std::forward<AlgorithmNameT>(value));
113 return *this;
114 }
116 private:
117 Aws::String m_modelDataUrl;
118
119 ModelDataSource m_modelDataSource;
120
121 Aws::String m_modelDataETag;
122
123 Aws::String m_algorithmName;
124 bool m_modelDataUrlHasBeenSet = false;
125 bool m_modelDataSourceHasBeenSet = false;
126 bool m_modelDataETagHasBeenSet = false;
127 bool m_algorithmNameHasBeenSet = false;
128};
129
130} // namespace Model
131} // namespace SageMaker
132} // namespace Aws
void SetModelDataSource(ModelDataSourceT &&value)
SourceAlgorithm & WithModelDataETag(ModelDataETagT &&value)
const Aws::String & GetModelDataETag() const
SourceAlgorithm & WithModelDataSource(ModelDataSourceT &&value)
const Aws::String & GetModelDataUrl() const
void SetModelDataUrl(ModelDataUrlT &&value)
void SetAlgorithmName(AlgorithmNameT &&value)
const ModelDataSource & GetModelDataSource() const
SourceAlgorithm & WithModelDataUrl(ModelDataUrlT &&value)
AWS_SAGEMAKER_API SourceAlgorithm(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetModelDataETag(ModelDataETagT &&value)
AWS_SAGEMAKER_API SourceAlgorithm & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetAlgorithmName() const
SourceAlgorithm & WithAlgorithmName(AlgorithmNameT &&value)
AWS_SAGEMAKER_API SourceAlgorithm()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue