AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AgentConfiguration.h
1
6#pragma once
7#include <aws/codeguruprofiler/CodeGuruProfiler_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/codeguruprofiler/model/AgentParameterField.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CodeGuruProfiler
24{
25namespace Model
26{
27
37 {
38 public:
39 AWS_CODEGURUPROFILER_API AgentConfiguration() = default;
40 AWS_CODEGURUPROFILER_API AgentConfiguration(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CODEGURUPROFILER_API AgentConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CODEGURUPROFILER_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
62 inline const Aws::Map<AgentParameterField, Aws::String>& GetAgentParameters() const { return m_agentParameters; }
63 inline bool AgentParametersHasBeenSet() const { return m_agentParametersHasBeenSet; }
64 template<typename AgentParametersT = Aws::Map<AgentParameterField, Aws::String>>
65 void SetAgentParameters(AgentParametersT&& value) { m_agentParametersHasBeenSet = true; m_agentParameters = std::forward<AgentParametersT>(value); }
66 template<typename AgentParametersT = Aws::Map<AgentParameterField, Aws::String>>
67 AgentConfiguration& WithAgentParameters(AgentParametersT&& value) { SetAgentParameters(std::forward<AgentParametersT>(value)); return *this;}
69 m_agentParametersHasBeenSet = true; m_agentParameters.emplace(key, value); return *this;
70 }
72
74
83 inline int GetPeriodInSeconds() const { return m_periodInSeconds; }
84 inline bool PeriodInSecondsHasBeenSet() const { return m_periodInSecondsHasBeenSet; }
85 inline void SetPeriodInSeconds(int value) { m_periodInSecondsHasBeenSet = true; m_periodInSeconds = value; }
86 inline AgentConfiguration& WithPeriodInSeconds(int value) { SetPeriodInSeconds(value); return *this;}
88
90
94 inline bool GetShouldProfile() const { return m_shouldProfile; }
95 inline bool ShouldProfileHasBeenSet() const { return m_shouldProfileHasBeenSet; }
96 inline void SetShouldProfile(bool value) { m_shouldProfileHasBeenSet = true; m_shouldProfile = value; }
97 inline AgentConfiguration& WithShouldProfile(bool value) { SetShouldProfile(value); return *this;}
99 private:
100
102 bool m_agentParametersHasBeenSet = false;
103
104 int m_periodInSeconds{0};
105 bool m_periodInSecondsHasBeenSet = false;
106
107 bool m_shouldProfile{false};
108 bool m_shouldProfileHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace CodeGuruProfiler
113} // 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