AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CanaryRunConfigInput.h
1
6#pragma once
7#include <aws/synthetics/Synthetics_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.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 Synthetics
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_SYNTHETICS_API CanaryRunConfigInput();
37 AWS_SYNTHETICS_API CanaryRunConfigInput(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SYNTHETICS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
49 inline int GetTimeoutInSeconds() const{ return m_timeoutInSeconds; }
50 inline bool TimeoutInSecondsHasBeenSet() const { return m_timeoutInSecondsHasBeenSet; }
51 inline void SetTimeoutInSeconds(int value) { m_timeoutInSecondsHasBeenSet = true; m_timeoutInSeconds = value; }
52 inline CanaryRunConfigInput& WithTimeoutInSeconds(int value) { SetTimeoutInSeconds(value); return *this;}
54
56
60 inline int GetMemoryInMB() const{ return m_memoryInMB; }
61 inline bool MemoryInMBHasBeenSet() const { return m_memoryInMBHasBeenSet; }
62 inline void SetMemoryInMB(int value) { m_memoryInMBHasBeenSet = true; m_memoryInMB = value; }
63 inline CanaryRunConfigInput& WithMemoryInMB(int value) { SetMemoryInMB(value); return *this;}
65
67
78 inline bool GetActiveTracing() const{ return m_activeTracing; }
79 inline bool ActiveTracingHasBeenSet() const { return m_activeTracingHasBeenSet; }
80 inline void SetActiveTracing(bool value) { m_activeTracingHasBeenSet = true; m_activeTracing = value; }
81 inline CanaryRunConfigInput& WithActiveTracing(bool value) { SetActiveTracing(value); return *this;}
83
85
97 inline const Aws::Map<Aws::String, Aws::String>& GetEnvironmentVariables() const{ return m_environmentVariables; }
98 inline bool EnvironmentVariablesHasBeenSet() const { return m_environmentVariablesHasBeenSet; }
99 inline void SetEnvironmentVariables(const Aws::Map<Aws::String, Aws::String>& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables = value; }
100 inline void SetEnvironmentVariables(Aws::Map<Aws::String, Aws::String>&& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables = std::move(value); }
103 inline CanaryRunConfigInput& AddEnvironmentVariables(const Aws::String& key, const Aws::String& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(key, value); return *this; }
104 inline CanaryRunConfigInput& AddEnvironmentVariables(Aws::String&& key, const Aws::String& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(std::move(key), value); return *this; }
105 inline CanaryRunConfigInput& AddEnvironmentVariables(const Aws::String& key, Aws::String&& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(key, std::move(value)); return *this; }
106 inline CanaryRunConfigInput& AddEnvironmentVariables(Aws::String&& key, Aws::String&& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(std::move(key), std::move(value)); return *this; }
107 inline CanaryRunConfigInput& AddEnvironmentVariables(const char* key, Aws::String&& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(key, std::move(value)); return *this; }
108 inline CanaryRunConfigInput& AddEnvironmentVariables(Aws::String&& key, const char* value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(std::move(key), value); return *this; }
109 inline CanaryRunConfigInput& AddEnvironmentVariables(const char* key, const char* value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(key, value); return *this; }
111 private:
112
113 int m_timeoutInSeconds;
114 bool m_timeoutInSecondsHasBeenSet = false;
115
116 int m_memoryInMB;
117 bool m_memoryInMBHasBeenSet = false;
118
119 bool m_activeTracing;
120 bool m_activeTracingHasBeenSet = false;
121
122 Aws::Map<Aws::String, Aws::String> m_environmentVariables;
123 bool m_environmentVariablesHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace Synthetics
128} // namespace Aws
AWS_SYNTHETICS_API Aws::Utils::Json::JsonValue Jsonize() const
CanaryRunConfigInput & AddEnvironmentVariables(Aws::String &&key, const Aws::String &value)
CanaryRunConfigInput & AddEnvironmentVariables(Aws::String &&key, const char *value)
CanaryRunConfigInput & WithEnvironmentVariables(Aws::Map< Aws::String, Aws::String > &&value)
CanaryRunConfigInput & AddEnvironmentVariables(const char *key, const char *value)
CanaryRunConfigInput & WithEnvironmentVariables(const Aws::Map< Aws::String, Aws::String > &value)
CanaryRunConfigInput & AddEnvironmentVariables(const Aws::String &key, const Aws::String &value)
CanaryRunConfigInput & WithActiveTracing(bool value)
CanaryRunConfigInput & WithMemoryInMB(int value)
CanaryRunConfigInput & WithTimeoutInSeconds(int value)
void SetEnvironmentVariables(const Aws::Map< Aws::String, Aws::String > &value)
CanaryRunConfigInput & AddEnvironmentVariables(const char *key, Aws::String &&value)
AWS_SYNTHETICS_API CanaryRunConfigInput & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetEnvironmentVariables(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::Map< Aws::String, Aws::String > & GetEnvironmentVariables() const
CanaryRunConfigInput & AddEnvironmentVariables(const Aws::String &key, Aws::String &&value)
CanaryRunConfigInput & AddEnvironmentVariables(Aws::String &&key, Aws::String &&value)
AWS_SYNTHETICS_API CanaryRunConfigInput(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