AWS SDK for C++

AWS SDK for C++ Version 1.11.925

Loading...
Searching...
No Matches
SaveWeightsConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/sagemakertrainingsessionruntime/SageMakerTrainingSessionRuntime_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SageMakerTrainingSessionRuntime {
20namespace Model {
21
29 public:
30 AWS_SAGEMAKERTRAININGSESSIONRUNTIME_API SaveWeightsConfig() = default;
31 AWS_SAGEMAKERTRAININGSESSIONRUNTIME_API SaveWeightsConfig(Aws::Utils::Json::JsonView jsonValue);
32 AWS_SAGEMAKERTRAININGSESSIONRUNTIME_API SaveWeightsConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_SAGEMAKERTRAININGSESSIONRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
41 inline bool GetMergeWeights() const { return m_mergeWeights; }
42 inline bool MergeWeightsHasBeenSet() const { return m_mergeWeightsHasBeenSet; }
43 inline void SetMergeWeights(bool value) {
44 m_mergeWeightsHasBeenSet = true;
45 m_mergeWeights = value;
46 }
47 inline SaveWeightsConfig& WithMergeWeights(bool value) {
48 SetMergeWeights(value);
49 return *this;
50 }
52
54
57 inline const Aws::String& GetDescription() const { return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 template <typename DescriptionT = Aws::String>
60 void SetDescription(DescriptionT&& value) {
61 m_descriptionHasBeenSet = true;
62 m_description = std::forward<DescriptionT>(value);
63 }
64 template <typename DescriptionT = Aws::String>
65 SaveWeightsConfig& WithDescription(DescriptionT&& value) {
66 SetDescription(std::forward<DescriptionT>(value));
67 return *this;
68 }
70 private:
71 bool m_mergeWeights{false};
72
73 Aws::String m_description;
74 bool m_mergeWeightsHasBeenSet = false;
75 bool m_descriptionHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace SageMakerTrainingSessionRuntime
80} // namespace Aws
AWS_SAGEMAKERTRAININGSESSIONRUNTIME_API SaveWeightsConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKERTRAININGSESSIONRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SAGEMAKERTRAININGSESSIONRUNTIME_API SaveWeightsConfig(Aws::Utils::Json::JsonView jsonValue)
SaveWeightsConfig & WithDescription(DescriptionT &&value)
AWS_SAGEMAKERTRAININGSESSIONRUNTIME_API SaveWeightsConfig()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue