AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
SourceAlgorithmSpecification.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/sagemaker/SageMaker_EXPORTS.h>
9#include <aws/sagemaker/model/SourceAlgorithm.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 SourceAlgorithmSpecification() = default;
34 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::Vector<SourceAlgorithm>& GetSourceAlgorithms() const { return m_sourceAlgorithms; }
41 inline bool SourceAlgorithmsHasBeenSet() const { return m_sourceAlgorithmsHasBeenSet; }
42 template <typename SourceAlgorithmsT = Aws::Vector<SourceAlgorithm>>
43 void SetSourceAlgorithms(SourceAlgorithmsT&& value) {
44 m_sourceAlgorithmsHasBeenSet = true;
45 m_sourceAlgorithms = std::forward<SourceAlgorithmsT>(value);
46 }
47 template <typename SourceAlgorithmsT = Aws::Vector<SourceAlgorithm>>
49 SetSourceAlgorithms(std::forward<SourceAlgorithmsT>(value));
50 return *this;
51 }
52 template <typename SourceAlgorithmsT = SourceAlgorithm>
54 m_sourceAlgorithmsHasBeenSet = true;
55 m_sourceAlgorithms.emplace_back(std::forward<SourceAlgorithmsT>(value));
56 return *this;
57 }
59 private:
60 Aws::Vector<SourceAlgorithm> m_sourceAlgorithms;
61 bool m_sourceAlgorithmsHasBeenSet = false;
62};
63
64} // namespace Model
65} // namespace SageMaker
66} // namespace Aws
AWS_SAGEMAKER_API SourceAlgorithmSpecification(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API SourceAlgorithmSpecification()=default
SourceAlgorithmSpecification & WithSourceAlgorithms(SourceAlgorithmsT &&value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
SourceAlgorithmSpecification & AddSourceAlgorithms(SourceAlgorithmsT &&value)
AWS_SAGEMAKER_API SourceAlgorithmSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< SourceAlgorithm > & GetSourceAlgorithms() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue