AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ProfilerConfig.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SageMaker
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_SAGEMAKER_API ProfilerConfig() = default;
37 AWS_SAGEMAKER_API ProfilerConfig(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetS3OutputPath() const { return m_s3OutputPath; }
47 inline bool S3OutputPathHasBeenSet() const { return m_s3OutputPathHasBeenSet; }
48 template<typename S3OutputPathT = Aws::String>
49 void SetS3OutputPath(S3OutputPathT&& value) { m_s3OutputPathHasBeenSet = true; m_s3OutputPath = std::forward<S3OutputPathT>(value); }
50 template<typename S3OutputPathT = Aws::String>
51 ProfilerConfig& WithS3OutputPath(S3OutputPathT&& value) { SetS3OutputPath(std::forward<S3OutputPathT>(value)); return *this;}
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) { m_profilingIntervalInMillisecondsHasBeenSet = true; m_profilingIntervalInMilliseconds = value; }
65
67
78 inline const Aws::Map<Aws::String, Aws::String>& GetProfilingParameters() const { return m_profilingParameters; }
79 inline bool ProfilingParametersHasBeenSet() const { return m_profilingParametersHasBeenSet; }
80 template<typename ProfilingParametersT = Aws::Map<Aws::String, Aws::String>>
81 void SetProfilingParameters(ProfilingParametersT&& value) { m_profilingParametersHasBeenSet = true; m_profilingParameters = std::forward<ProfilingParametersT>(value); }
82 template<typename ProfilingParametersT = Aws::Map<Aws::String, Aws::String>>
83 ProfilerConfig& WithProfilingParameters(ProfilingParametersT&& value) { SetProfilingParameters(std::forward<ProfilingParametersT>(value)); return *this;}
84 template<typename ProfilingParametersKeyT = Aws::String, typename ProfilingParametersValueT = Aws::String>
85 ProfilerConfig& AddProfilingParameters(ProfilingParametersKeyT&& key, ProfilingParametersValueT&& value) {
86 m_profilingParametersHasBeenSet = true; m_profilingParameters.emplace(std::forward<ProfilingParametersKeyT>(key), std::forward<ProfilingParametersValueT>(value)); return *this;
87 }
89
91
95 inline bool GetDisableProfiler() const { return m_disableProfiler; }
96 inline bool DisableProfilerHasBeenSet() const { return m_disableProfilerHasBeenSet; }
97 inline void SetDisableProfiler(bool value) { m_disableProfilerHasBeenSet = true; m_disableProfiler = value; }
98 inline ProfilerConfig& WithDisableProfiler(bool value) { SetDisableProfiler(value); return *this;}
100 private:
101
102 Aws::String m_s3OutputPath;
103 bool m_s3OutputPathHasBeenSet = false;
104
105 long long m_profilingIntervalInMilliseconds{0};
106 bool m_profilingIntervalInMillisecondsHasBeenSet = false;
107
108 Aws::Map<Aws::String, Aws::String> m_profilingParameters;
109 bool m_profilingParametersHasBeenSet = false;
110
111 bool m_disableProfiler{false};
112 bool m_disableProfilerHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace SageMaker
117} // 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