AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
ProfilerConfig.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
30 public:
31 AWS_SAGEMAKER_API ProfilerConfig() = default;
32 AWS_SAGEMAKER_API ProfilerConfig(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetS3OutputPath() const { return m_s3OutputPath; }
41 inline bool S3OutputPathHasBeenSet() const { return m_s3OutputPathHasBeenSet; }
42 template <typename S3OutputPathT = Aws::String>
43 void SetS3OutputPath(S3OutputPathT&& value) {
44 m_s3OutputPathHasBeenSet = true;
45 m_s3OutputPath = std::forward<S3OutputPathT>(value);
46 }
47 template <typename S3OutputPathT = Aws::String>
48 ProfilerConfig& WithS3OutputPath(S3OutputPathT&& value) {
49 SetS3OutputPath(std::forward<S3OutputPathT>(value));
50 return *this;
51 }
53
55
60 inline long long GetProfilingIntervalInMilliseconds() const { return m_profilingIntervalInMilliseconds; }
61 inline bool ProfilingIntervalInMillisecondsHasBeenSet() const { return m_profilingIntervalInMillisecondsHasBeenSet; }
62 inline void SetProfilingIntervalInMilliseconds(long long value) {
63 m_profilingIntervalInMillisecondsHasBeenSet = true;
64 m_profilingIntervalInMilliseconds = value;
65 }
68 return *this;
69 }
71
73
84 inline const Aws::Map<Aws::String, Aws::String>& GetProfilingParameters() const { return m_profilingParameters; }
85 inline bool ProfilingParametersHasBeenSet() const { return m_profilingParametersHasBeenSet; }
86 template <typename ProfilingParametersT = Aws::Map<Aws::String, Aws::String>>
87 void SetProfilingParameters(ProfilingParametersT&& value) {
88 m_profilingParametersHasBeenSet = true;
89 m_profilingParameters = std::forward<ProfilingParametersT>(value);
90 }
91 template <typename ProfilingParametersT = Aws::Map<Aws::String, Aws::String>>
92 ProfilerConfig& WithProfilingParameters(ProfilingParametersT&& value) {
93 SetProfilingParameters(std::forward<ProfilingParametersT>(value));
94 return *this;
95 }
96 template <typename ProfilingParametersKeyT = Aws::String, typename ProfilingParametersValueT = Aws::String>
97 ProfilerConfig& AddProfilingParameters(ProfilingParametersKeyT&& key, ProfilingParametersValueT&& value) {
98 m_profilingParametersHasBeenSet = true;
99 m_profilingParameters.emplace(std::forward<ProfilingParametersKeyT>(key), std::forward<ProfilingParametersValueT>(value));
100 return *this;
101 }
103
105
109 inline bool GetDisableProfiler() const { return m_disableProfiler; }
110 inline bool DisableProfilerHasBeenSet() const { return m_disableProfilerHasBeenSet; }
111 inline void SetDisableProfiler(bool value) {
112 m_disableProfilerHasBeenSet = true;
113 m_disableProfiler = value;
114 }
116 SetDisableProfiler(value);
117 return *this;
118 }
120 private:
121 Aws::String m_s3OutputPath;
122
123 long long m_profilingIntervalInMilliseconds{0};
124
125 Aws::Map<Aws::String, Aws::String> m_profilingParameters;
126
127 bool m_disableProfiler{false};
128 bool m_s3OutputPathHasBeenSet = false;
129 bool m_profilingIntervalInMillisecondsHasBeenSet = false;
130 bool m_profilingParametersHasBeenSet = false;
131 bool m_disableProfilerHasBeenSet = false;
132};
133
134} // namespace Model
135} // namespace SageMaker
136} // namespace Aws
void SetS3OutputPath(S3OutputPathT &&value)
void SetProfilingParameters(ProfilingParametersT &&value)
const Aws::String & GetS3OutputPath() const
AWS_SAGEMAKER_API ProfilerConfig()=default
ProfilerConfig & WithProfilingParameters(ProfilingParametersT &&value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Map< Aws::String, Aws::String > & GetProfilingParameters() const
ProfilerConfig & WithDisableProfiler(bool value)
ProfilerConfig & WithProfilingIntervalInMilliseconds(long long value)
ProfilerConfig & WithS3OutputPath(S3OutputPathT &&value)
AWS_SAGEMAKER_API ProfilerConfig(Aws::Utils::Json::JsonView jsonValue)
ProfilerConfig & AddProfilingParameters(ProfilingParametersKeyT &&key, ProfilingParametersValueT &&value)
long long GetProfilingIntervalInMilliseconds() const
void SetProfilingIntervalInMilliseconds(long long value)
AWS_SAGEMAKER_API ProfilerConfig & 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