AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
DebugHookConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/sagemaker/SageMaker_EXPORTS.h>
11#include <aws/sagemaker/model/CollectionConfiguration.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SageMaker {
23namespace Model {
24
36 public:
37 AWS_SAGEMAKER_API DebugHookConfig() = default;
38 AWS_SAGEMAKER_API DebugHookConfig(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
47 inline const Aws::String& GetLocalPath() const { return m_localPath; }
48 inline bool LocalPathHasBeenSet() const { return m_localPathHasBeenSet; }
49 template <typename LocalPathT = Aws::String>
50 void SetLocalPath(LocalPathT&& value) {
51 m_localPathHasBeenSet = true;
52 m_localPath = std::forward<LocalPathT>(value);
53 }
54 template <typename LocalPathT = Aws::String>
55 DebugHookConfig& WithLocalPath(LocalPathT&& value) {
56 SetLocalPath(std::forward<LocalPathT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetS3OutputPath() const { return m_s3OutputPath; }
66 inline bool S3OutputPathHasBeenSet() const { return m_s3OutputPathHasBeenSet; }
67 template <typename S3OutputPathT = Aws::String>
68 void SetS3OutputPath(S3OutputPathT&& value) {
69 m_s3OutputPathHasBeenSet = true;
70 m_s3OutputPath = std::forward<S3OutputPathT>(value);
71 }
72 template <typename S3OutputPathT = Aws::String>
73 DebugHookConfig& WithS3OutputPath(S3OutputPathT&& value) {
74 SetS3OutputPath(std::forward<S3OutputPathT>(value));
75 return *this;
76 }
78
80
84 inline const Aws::Map<Aws::String, Aws::String>& GetHookParameters() const { return m_hookParameters; }
85 inline bool HookParametersHasBeenSet() const { return m_hookParametersHasBeenSet; }
86 template <typename HookParametersT = Aws::Map<Aws::String, Aws::String>>
87 void SetHookParameters(HookParametersT&& value) {
88 m_hookParametersHasBeenSet = true;
89 m_hookParameters = std::forward<HookParametersT>(value);
90 }
91 template <typename HookParametersT = Aws::Map<Aws::String, Aws::String>>
92 DebugHookConfig& WithHookParameters(HookParametersT&& value) {
93 SetHookParameters(std::forward<HookParametersT>(value));
94 return *this;
95 }
96 template <typename HookParametersKeyT = Aws::String, typename HookParametersValueT = Aws::String>
97 DebugHookConfig& AddHookParameters(HookParametersKeyT&& key, HookParametersValueT&& value) {
98 m_hookParametersHasBeenSet = true;
99 m_hookParameters.emplace(std::forward<HookParametersKeyT>(key), std::forward<HookParametersValueT>(value));
100 return *this;
101 }
103
105
113 inline const Aws::Vector<CollectionConfiguration>& GetCollectionConfigurations() const { return m_collectionConfigurations; }
114 inline bool CollectionConfigurationsHasBeenSet() const { return m_collectionConfigurationsHasBeenSet; }
115 template <typename CollectionConfigurationsT = Aws::Vector<CollectionConfiguration>>
116 void SetCollectionConfigurations(CollectionConfigurationsT&& value) {
117 m_collectionConfigurationsHasBeenSet = true;
118 m_collectionConfigurations = std::forward<CollectionConfigurationsT>(value);
119 }
120 template <typename CollectionConfigurationsT = Aws::Vector<CollectionConfiguration>>
121 DebugHookConfig& WithCollectionConfigurations(CollectionConfigurationsT&& value) {
122 SetCollectionConfigurations(std::forward<CollectionConfigurationsT>(value));
123 return *this;
124 }
125 template <typename CollectionConfigurationsT = CollectionConfiguration>
126 DebugHookConfig& AddCollectionConfigurations(CollectionConfigurationsT&& value) {
127 m_collectionConfigurationsHasBeenSet = true;
128 m_collectionConfigurations.emplace_back(std::forward<CollectionConfigurationsT>(value));
129 return *this;
130 }
132 private:
133 Aws::String m_localPath;
134
135 Aws::String m_s3OutputPath;
136
137 Aws::Map<Aws::String, Aws::String> m_hookParameters;
138
139 Aws::Vector<CollectionConfiguration> m_collectionConfigurations;
140 bool m_localPathHasBeenSet = false;
141 bool m_s3OutputPathHasBeenSet = false;
142 bool m_hookParametersHasBeenSet = false;
143 bool m_collectionConfigurationsHasBeenSet = false;
144};
145
146} // namespace Model
147} // namespace SageMaker
148} // namespace Aws
AWS_SAGEMAKER_API DebugHookConfig(Aws::Utils::Json::JsonView jsonValue)
void SetCollectionConfigurations(CollectionConfigurationsT &&value)
const Aws::Vector< CollectionConfiguration > & GetCollectionConfigurations() const
void SetLocalPath(LocalPathT &&value)
const Aws::Map< Aws::String, Aws::String > & GetHookParameters() const
void SetHookParameters(HookParametersT &&value)
DebugHookConfig & WithHookParameters(HookParametersT &&value)
AWS_SAGEMAKER_API DebugHookConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetLocalPath() const
const Aws::String & GetS3OutputPath() const
AWS_SAGEMAKER_API DebugHookConfig()=default
DebugHookConfig & WithS3OutputPath(S3OutputPathT &&value)
DebugHookConfig & AddHookParameters(HookParametersKeyT &&key, HookParametersValueT &&value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
DebugHookConfig & AddCollectionConfigurations(CollectionConfigurationsT &&value)
void SetS3OutputPath(S3OutputPathT &&value)
DebugHookConfig & WithLocalPath(LocalPathT &&value)
DebugHookConfig & WithCollectionConfigurations(CollectionConfigurationsT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue