AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
AgentConfiguration.h
1
6#pragma once
7#include <aws/codeguruprofiler/CodeGuruProfiler_EXPORTS.h>
8#include <aws/codeguruprofiler/model/AgentParameterField.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CodeGuruProfiler {
22namespace Model {
23
33 public:
34 AWS_CODEGURUPROFILER_API AgentConfiguration() = default;
35 AWS_CODEGURUPROFILER_API AgentConfiguration(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CODEGURUPROFILER_API AgentConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CODEGURUPROFILER_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
56 inline const Aws::Map<AgentParameterField, Aws::String>& GetAgentParameters() const { return m_agentParameters; }
57 inline bool AgentParametersHasBeenSet() const { return m_agentParametersHasBeenSet; }
58 template <typename AgentParametersT = Aws::Map<AgentParameterField, Aws::String>>
59 void SetAgentParameters(AgentParametersT&& value) {
60 m_agentParametersHasBeenSet = true;
61 m_agentParameters = std::forward<AgentParametersT>(value);
62 }
63 template <typename AgentParametersT = Aws::Map<AgentParameterField, Aws::String>>
64 AgentConfiguration& WithAgentParameters(AgentParametersT&& value) {
65 SetAgentParameters(std::forward<AgentParametersT>(value));
66 return *this;
67 }
69 m_agentParametersHasBeenSet = true;
70 m_agentParameters.emplace(key, value);
71 return *this;
72 }
74
76
85 inline int GetPeriodInSeconds() const { return m_periodInSeconds; }
86 inline bool PeriodInSecondsHasBeenSet() const { return m_periodInSecondsHasBeenSet; }
87 inline void SetPeriodInSeconds(int value) {
88 m_periodInSecondsHasBeenSet = true;
89 m_periodInSeconds = value;
90 }
92 SetPeriodInSeconds(value);
93 return *this;
94 }
96
98
102 inline bool GetShouldProfile() const { return m_shouldProfile; }
103 inline bool ShouldProfileHasBeenSet() const { return m_shouldProfileHasBeenSet; }
104 inline void SetShouldProfile(bool value) {
105 m_shouldProfileHasBeenSet = true;
106 m_shouldProfile = value;
107 }
109 SetShouldProfile(value);
110 return *this;
111 }
113 private:
115
116 int m_periodInSeconds{0};
117
118 bool m_shouldProfile{false};
119 bool m_agentParametersHasBeenSet = false;
120 bool m_periodInSecondsHasBeenSet = false;
121 bool m_shouldProfileHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace CodeGuruProfiler
126} // namespace Aws
AWS_CODEGURUPROFILER_API AgentConfiguration()=default
AgentConfiguration & WithAgentParameters(AgentParametersT &&value)
AgentConfiguration & WithPeriodInSeconds(int value)
AgentConfiguration & WithShouldProfile(bool value)
AWS_CODEGURUPROFILER_API AgentConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEGURUPROFILER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CODEGURUPROFILER_API AgentConfiguration(Aws::Utils::Json::JsonView jsonValue)
AgentConfiguration & AddAgentParameters(AgentParameterField key, Aws::String value)
const Aws::Map< AgentParameterField, Aws::String > & GetAgentParameters() const
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