AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAgentParameters(const Aws::Map<AgentParameterField, Aws::String>& value) { m_agentParametersHasBeenSet = true; m_agentParameters = value; }
65 inline void SetAgentParameters(Aws::Map<AgentParameterField, Aws::String>&& value) { m_agentParametersHasBeenSet = true; m_agentParameters = std::move(value); }
68 inline AgentConfiguration& AddAgentParameters(const AgentParameterField& key, const Aws::String& value) { m_agentParametersHasBeenSet = true; m_agentParameters.emplace(key, value); return *this; }
69 inline AgentConfiguration& AddAgentParameters(AgentParameterField&& key, const Aws::String& value) { m_agentParametersHasBeenSet = true; m_agentParameters.emplace(std::move(key), value); return *this; }
70 inline AgentConfiguration& AddAgentParameters(const AgentParameterField& key, Aws::String&& value) { m_agentParametersHasBeenSet = true; m_agentParameters.emplace(key, std::move(value)); return *this; }
71 inline AgentConfiguration& AddAgentParameters(AgentParameterField&& key, Aws::String&& value) { m_agentParametersHasBeenSet = true; m_agentParameters.emplace(std::move(key), std::move(value)); return *this; }
72 inline AgentConfiguration& AddAgentParameters(AgentParameterField&& key, const char* value) { m_agentParametersHasBeenSet = true; m_agentParameters.emplace(std::move(key), value); return *this; }
73 inline AgentConfiguration& AddAgentParameters(const AgentParameterField& key, const char* value) { m_agentParametersHasBeenSet = true; m_agentParameters.emplace(key, value); return *this; }
75
77
86 inline int GetPeriodInSeconds() const{ return m_periodInSeconds; }
87 inline bool PeriodInSecondsHasBeenSet() const { return m_periodInSecondsHasBeenSet; }
88 inline void SetPeriodInSeconds(int value) { m_periodInSecondsHasBeenSet = true; m_periodInSeconds = value; }
89 inline AgentConfiguration& WithPeriodInSeconds(int value) { SetPeriodInSeconds(value); return *this;}
91
93
97 inline bool GetShouldProfile() const{ return m_shouldProfile; }
98 inline bool ShouldProfileHasBeenSet() const { return m_shouldProfileHasBeenSet; }
99 inline void SetShouldProfile(bool value) { m_shouldProfileHasBeenSet = true; m_shouldProfile = value; }
100 inline AgentConfiguration& WithShouldProfile(bool value) { SetShouldProfile(value); return *this;}
102 private:
103
105 bool m_agentParametersHasBeenSet = false;
106
107 int m_periodInSeconds;
108 bool m_periodInSecondsHasBeenSet = false;
109
110 bool m_shouldProfile;
111 bool m_shouldProfileHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace CodeGuruProfiler
116} // namespace Aws
AgentConfiguration & AddAgentParameters(const AgentParameterField &key, const char *value)
AgentConfiguration & WithAgentParameters(const Aws::Map< AgentParameterField, Aws::String > &value)
AgentConfiguration & WithAgentParameters(Aws::Map< AgentParameterField, Aws::String > &&value)
void SetAgentParameters(const Aws::Map< AgentParameterField, Aws::String > &value)
AgentConfiguration & AddAgentParameters(AgentParameterField &&key, const char *value)
AgentConfiguration & WithPeriodInSeconds(int value)
AgentConfiguration & WithShouldProfile(bool value)
AgentConfiguration & AddAgentParameters(const AgentParameterField &key, Aws::String &&value)
AgentConfiguration & AddAgentParameters(const AgentParameterField &key, const Aws::String &value)
AWS_CODEGURUPROFILER_API AgentConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEGURUPROFILER_API Aws::Utils::Json::JsonValue Jsonize() const
AgentConfiguration & AddAgentParameters(AgentParameterField &&key, Aws::String &&value)
void SetAgentParameters(Aws::Map< AgentParameterField, Aws::String > &&value)
AWS_CODEGURUPROFILER_API AgentConfiguration(Aws::Utils::Json::JsonView jsonValue)
AgentConfiguration & AddAgentParameters(AgentParameterField &&key, const 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