AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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