AWS SDK for C++

AWS SDK for C++ Version 1.11.925

Loading...
Searching...
No Matches
ForwardConfig.h
1
6#pragma once
7#include <aws/core/utils/Document.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/sagemakertrainingsessionruntime/SageMakerTrainingSessionRuntime_EXPORTS.h>
10#include <aws/sagemakertrainingsessionruntime/model/Datum.h>
11#include <aws/sagemakertrainingsessionruntime/model/LossFnName.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SageMakerTrainingSessionRuntime {
23namespace Model {
24
32 public:
33 AWS_SAGEMAKERTRAININGSESSIONRUNTIME_API ForwardConfig() = default;
34 AWS_SAGEMAKERTRAININGSESSIONRUNTIME_API ForwardConfig(Aws::Utils::Json::JsonView jsonValue);
35 AWS_SAGEMAKERTRAININGSESSIONRUNTIME_API ForwardConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_SAGEMAKERTRAININGSESSIONRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline LossFnName GetLossFnName() const { return m_lossFnName; }
43 inline bool LossFnNameHasBeenSet() const { return m_lossFnNameHasBeenSet; }
44 inline void SetLossFnName(LossFnName value) {
45 m_lossFnNameHasBeenSet = true;
46 m_lossFnName = value;
47 }
49 SetLossFnName(value);
50 return *this;
51 }
53
55
60 inline const Aws::Vector<Datum>& GetDatumList() const { return m_datumList; }
61 inline bool DatumListHasBeenSet() const { return m_datumListHasBeenSet; }
62 template <typename DatumListT = Aws::Vector<Datum>>
63 void SetDatumList(DatumListT&& value) {
64 m_datumListHasBeenSet = true;
65 m_datumList = std::forward<DatumListT>(value);
66 }
67 template <typename DatumListT = Aws::Vector<Datum>>
68 ForwardConfig& WithDatumList(DatumListT&& value) {
69 SetDatumList(std::forward<DatumListT>(value));
70 return *this;
71 }
72 template <typename DatumListT = Datum>
73 ForwardConfig& AddDatumList(DatumListT&& value) {
74 m_datumListHasBeenSet = true;
75 m_datumList.emplace_back(std::forward<DatumListT>(value));
76 return *this;
77 }
79
81
87 inline Aws::Utils::DocumentView GetLossFnConfig() const { return m_lossFnConfig; }
88 inline bool LossFnConfigHasBeenSet() const { return m_lossFnConfigHasBeenSet; }
89 template <typename LossFnConfigT = Aws::Utils::Document>
90 void SetLossFnConfig(LossFnConfigT&& value) {
91 m_lossFnConfigHasBeenSet = true;
92 m_lossFnConfig = std::forward<LossFnConfigT>(value);
93 }
94 template <typename LossFnConfigT = Aws::Utils::Document>
95 ForwardConfig& WithLossFnConfig(LossFnConfigT&& value) {
96 SetLossFnConfig(std::forward<LossFnConfigT>(value));
97 return *this;
98 }
100 private:
101 LossFnName m_lossFnName{LossFnName::NOT_SET};
102
103 Aws::Vector<Datum> m_datumList;
104
105 Aws::Utils::Document m_lossFnConfig;
106 bool m_lossFnNameHasBeenSet = false;
107 bool m_datumListHasBeenSet = false;
108 bool m_lossFnConfigHasBeenSet = false;
109};
110
111} // namespace Model
112} // namespace SageMakerTrainingSessionRuntime
113} // namespace Aws
const Aws::Vector< Datum > & GetDatumList() const
AWS_SAGEMAKERTRAININGSESSIONRUNTIME_API ForwardConfig()=default
AWS_SAGEMAKERTRAININGSESSIONRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SAGEMAKERTRAININGSESSIONRUNTIME_API ForwardConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKERTRAININGSESSIONRUNTIME_API ForwardConfig(Aws::Utils::Json::JsonView jsonValue)
ForwardConfig & WithLossFnConfig(LossFnConfigT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue