AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ProfilerConfigForUpdate.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/sagemaker/SageMaker_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SageMaker {
21namespace Model {
22
31 public:
32 AWS_SAGEMAKER_API ProfilerConfigForUpdate() = default;
35 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetS3OutputPath() const { return m_s3OutputPath; }
42 inline bool S3OutputPathHasBeenSet() const { return m_s3OutputPathHasBeenSet; }
43 template <typename S3OutputPathT = Aws::String>
44 void SetS3OutputPath(S3OutputPathT&& value) {
45 m_s3OutputPathHasBeenSet = true;
46 m_s3OutputPath = std::forward<S3OutputPathT>(value);
47 }
48 template <typename S3OutputPathT = Aws::String>
49 ProfilerConfigForUpdate& WithS3OutputPath(S3OutputPathT&& value) {
50 SetS3OutputPath(std::forward<S3OutputPathT>(value));
51 return *this;
52 }
54
56
61 inline long long GetProfilingIntervalInMilliseconds() const { return m_profilingIntervalInMilliseconds; }
62 inline bool ProfilingIntervalInMillisecondsHasBeenSet() const { return m_profilingIntervalInMillisecondsHasBeenSet; }
63 inline void SetProfilingIntervalInMilliseconds(long long value) {
64 m_profilingIntervalInMillisecondsHasBeenSet = true;
65 m_profilingIntervalInMilliseconds = value;
66 }
69 return *this;
70 }
72
74
85 inline const Aws::Map<Aws::String, Aws::String>& GetProfilingParameters() const { return m_profilingParameters; }
86 inline bool ProfilingParametersHasBeenSet() const { return m_profilingParametersHasBeenSet; }
87 template <typename ProfilingParametersT = Aws::Map<Aws::String, Aws::String>>
88 void SetProfilingParameters(ProfilingParametersT&& value) {
89 m_profilingParametersHasBeenSet = true;
90 m_profilingParameters = std::forward<ProfilingParametersT>(value);
91 }
92 template <typename ProfilingParametersT = Aws::Map<Aws::String, Aws::String>>
93 ProfilerConfigForUpdate& WithProfilingParameters(ProfilingParametersT&& value) {
94 SetProfilingParameters(std::forward<ProfilingParametersT>(value));
95 return *this;
96 }
97 template <typename ProfilingParametersKeyT = Aws::String, typename ProfilingParametersValueT = Aws::String>
98 ProfilerConfigForUpdate& AddProfilingParameters(ProfilingParametersKeyT&& key, ProfilingParametersValueT&& value) {
99 m_profilingParametersHasBeenSet = true;
100 m_profilingParameters.emplace(std::forward<ProfilingParametersKeyT>(key), std::forward<ProfilingParametersValueT>(value));
101 return *this;
102 }
104
106
110 inline bool GetDisableProfiler() const { return m_disableProfiler; }
111 inline bool DisableProfilerHasBeenSet() const { return m_disableProfilerHasBeenSet; }
112 inline void SetDisableProfiler(bool value) {
113 m_disableProfilerHasBeenSet = true;
114 m_disableProfiler = value;
115 }
117 SetDisableProfiler(value);
118 return *this;
119 }
121 private:
122 Aws::String m_s3OutputPath;
123
124 long long m_profilingIntervalInMilliseconds{0};
125
126 Aws::Map<Aws::String, Aws::String> m_profilingParameters;
127
128 bool m_disableProfiler{false};
129 bool m_s3OutputPathHasBeenSet = false;
130 bool m_profilingIntervalInMillisecondsHasBeenSet = false;
131 bool m_profilingParametersHasBeenSet = false;
132 bool m_disableProfilerHasBeenSet = false;
133};
134
135} // namespace Model
136} // namespace SageMaker
137} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetProfilingParameters() const
AWS_SAGEMAKER_API ProfilerConfigForUpdate(Aws::Utils::Json::JsonView jsonValue)
void SetProfilingParameters(ProfilingParametersT &&value)
ProfilerConfigForUpdate & WithS3OutputPath(S3OutputPathT &&value)
ProfilerConfigForUpdate & AddProfilingParameters(ProfilingParametersKeyT &&key, ProfilingParametersValueT &&value)
ProfilerConfigForUpdate & WithDisableProfiler(bool value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
ProfilerConfigForUpdate & WithProfilingIntervalInMilliseconds(long long value)
AWS_SAGEMAKER_API ProfilerConfigForUpdate()=default
ProfilerConfigForUpdate & WithProfilingParameters(ProfilingParametersT &&value)
AWS_SAGEMAKER_API ProfilerConfigForUpdate & operator=(Aws::Utils::Json::JsonView jsonValue)
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
Aws::Utils::Json::JsonValue JsonValue