AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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
98 inline const Aws::Map<Aws::String, Aws::String>& GetEnvironmentVariables() const { return m_environmentVariables; }
99 inline bool EnvironmentVariablesHasBeenSet() const { return m_environmentVariablesHasBeenSet; }
100 template<typename EnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
101 void SetEnvironmentVariables(EnvironmentVariablesT&& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables = std::forward<EnvironmentVariablesT>(value); }
102 template<typename EnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
103 CanaryRunConfigInput& WithEnvironmentVariables(EnvironmentVariablesT&& value) { SetEnvironmentVariables(std::forward<EnvironmentVariablesT>(value)); return *this;}
104 template<typename EnvironmentVariablesKeyT = Aws::String, typename EnvironmentVariablesValueT = Aws::String>
105 CanaryRunConfigInput& AddEnvironmentVariables(EnvironmentVariablesKeyT&& key, EnvironmentVariablesValueT&& value) {
106 m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(std::forward<EnvironmentVariablesKeyT>(key), std::forward<EnvironmentVariablesValueT>(value)); return *this;
107 }
109
111
118 inline int GetEphemeralStorage() const { return m_ephemeralStorage; }
119 inline bool EphemeralStorageHasBeenSet() const { return m_ephemeralStorageHasBeenSet; }
120 inline void SetEphemeralStorage(int value) { m_ephemeralStorageHasBeenSet = true; m_ephemeralStorage = value; }
121 inline CanaryRunConfigInput& WithEphemeralStorage(int value) { SetEphemeralStorage(value); return *this;}
123 private:
124
125 int m_timeoutInSeconds{0};
126 bool m_timeoutInSecondsHasBeenSet = false;
127
128 int m_memoryInMB{0};
129 bool m_memoryInMBHasBeenSet = false;
130
131 bool m_activeTracing{false};
132 bool m_activeTracingHasBeenSet = false;
133
134 Aws::Map<Aws::String, Aws::String> m_environmentVariables;
135 bool m_environmentVariablesHasBeenSet = false;
136
137 int m_ephemeralStorage{0};
138 bool m_ephemeralStorageHasBeenSet = false;
139 };
140
141} // namespace Model
142} // namespace Synthetics
143} // namespace Aws
AWS_SYNTHETICS_API Aws::Utils::Json::JsonValue Jsonize() const
CanaryRunConfigInput & WithEnvironmentVariables(EnvironmentVariablesT &&value)
CanaryRunConfigInput & AddEnvironmentVariables(EnvironmentVariablesKeyT &&key, EnvironmentVariablesValueT &&value)
CanaryRunConfigInput & WithActiveTracing(bool value)
CanaryRunConfigInput & WithMemoryInMB(int value)
CanaryRunConfigInput & WithTimeoutInSeconds(int value)
CanaryRunConfigInput & WithEphemeralStorage(int value)
void SetEnvironmentVariables(EnvironmentVariablesT &&value)
AWS_SYNTHETICS_API CanaryRunConfigInput & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetEnvironmentVariables() const
AWS_SYNTHETICS_API CanaryRunConfigInput()=default
AWS_SYNTHETICS_API CanaryRunConfigInput(Aws::Utils::Json::JsonView jsonValue)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue