AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
TrainedModelsConfigurationPolicy.h
1
6#pragma once
7#include <aws/cleanroomsml/CleanRoomsML_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/cleanroomsml/model/MetricsConfigurationPolicy.h>
10#include <aws/cleanroomsml/model/TrainedModelArtifactMaxSize.h>
11#include <aws/cleanroomsml/model/LogsConfigurationPolicy.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace CleanRoomsML
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_CLEANROOMSML_API TrainedModelsConfigurationPolicy() = default;
41 AWS_CLEANROOMSML_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::Vector<LogsConfigurationPolicy>& GetContainerLogs() const { return m_containerLogs; }
49 inline bool ContainerLogsHasBeenSet() const { return m_containerLogsHasBeenSet; }
50 template<typename ContainerLogsT = Aws::Vector<LogsConfigurationPolicy>>
51 void SetContainerLogs(ContainerLogsT&& value) { m_containerLogsHasBeenSet = true; m_containerLogs = std::forward<ContainerLogsT>(value); }
52 template<typename ContainerLogsT = Aws::Vector<LogsConfigurationPolicy>>
53 TrainedModelsConfigurationPolicy& WithContainerLogs(ContainerLogsT&& value) { SetContainerLogs(std::forward<ContainerLogsT>(value)); return *this;}
54 template<typename ContainerLogsT = LogsConfigurationPolicy>
55 TrainedModelsConfigurationPolicy& AddContainerLogs(ContainerLogsT&& value) { m_containerLogsHasBeenSet = true; m_containerLogs.emplace_back(std::forward<ContainerLogsT>(value)); return *this; }
57
59
62 inline const MetricsConfigurationPolicy& GetContainerMetrics() const { return m_containerMetrics; }
63 inline bool ContainerMetricsHasBeenSet() const { return m_containerMetricsHasBeenSet; }
64 template<typename ContainerMetricsT = MetricsConfigurationPolicy>
65 void SetContainerMetrics(ContainerMetricsT&& value) { m_containerMetricsHasBeenSet = true; m_containerMetrics = std::forward<ContainerMetricsT>(value); }
66 template<typename ContainerMetricsT = MetricsConfigurationPolicy>
67 TrainedModelsConfigurationPolicy& WithContainerMetrics(ContainerMetricsT&& value) { SetContainerMetrics(std::forward<ContainerMetricsT>(value)); return *this;}
69
71
76 inline const TrainedModelArtifactMaxSize& GetMaxArtifactSize() const { return m_maxArtifactSize; }
77 inline bool MaxArtifactSizeHasBeenSet() const { return m_maxArtifactSizeHasBeenSet; }
78 template<typename MaxArtifactSizeT = TrainedModelArtifactMaxSize>
79 void SetMaxArtifactSize(MaxArtifactSizeT&& value) { m_maxArtifactSizeHasBeenSet = true; m_maxArtifactSize = std::forward<MaxArtifactSizeT>(value); }
80 template<typename MaxArtifactSizeT = TrainedModelArtifactMaxSize>
81 TrainedModelsConfigurationPolicy& WithMaxArtifactSize(MaxArtifactSizeT&& value) { SetMaxArtifactSize(std::forward<MaxArtifactSizeT>(value)); return *this;}
83 private:
84
86 bool m_containerLogsHasBeenSet = false;
87
88 MetricsConfigurationPolicy m_containerMetrics;
89 bool m_containerMetricsHasBeenSet = false;
90
91 TrainedModelArtifactMaxSize m_maxArtifactSize;
92 bool m_maxArtifactSizeHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace CleanRoomsML
97} // namespace Aws
AWS_CLEANROOMSML_API TrainedModelsConfigurationPolicy()=default
TrainedModelsConfigurationPolicy & AddContainerLogs(ContainerLogsT &&value)
AWS_CLEANROOMSML_API TrainedModelsConfigurationPolicy(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< LogsConfigurationPolicy > & GetContainerLogs() const
AWS_CLEANROOMSML_API TrainedModelsConfigurationPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
TrainedModelsConfigurationPolicy & WithContainerLogs(ContainerLogsT &&value)
TrainedModelsConfigurationPolicy & WithContainerMetrics(ContainerMetricsT &&value)
AWS_CLEANROOMSML_API Aws::Utils::Json::JsonValue Jsonize() const
TrainedModelsConfigurationPolicy & WithMaxArtifactSize(MaxArtifactSizeT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue