AWS SDK for C++

AWS SDK for C++ Version 1.11.682

Loading...
Searching...
No Matches
CanaryRunConfigInput.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/synthetics/Synthetics_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Synthetics {
21namespace Model {
22
30 public:
31 AWS_SYNTHETICS_API CanaryRunConfigInput() = default;
32 AWS_SYNTHETICS_API CanaryRunConfigInput(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SYNTHETICS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
43 inline int GetTimeoutInSeconds() const { return m_timeoutInSeconds; }
44 inline bool TimeoutInSecondsHasBeenSet() const { return m_timeoutInSecondsHasBeenSet; }
45 inline void SetTimeoutInSeconds(int value) {
46 m_timeoutInSecondsHasBeenSet = true;
47 m_timeoutInSeconds = value;
48 }
51 return *this;
52 }
54
56
60 inline int GetMemoryInMB() const { return m_memoryInMB; }
61 inline bool MemoryInMBHasBeenSet() const { return m_memoryInMBHasBeenSet; }
62 inline void SetMemoryInMB(int value) {
63 m_memoryInMBHasBeenSet = true;
64 m_memoryInMB = value;
65 }
67 SetMemoryInMB(value);
68 return *this;
69 }
71
73
84 inline bool GetActiveTracing() const { return m_activeTracing; }
85 inline bool ActiveTracingHasBeenSet() const { return m_activeTracingHasBeenSet; }
86 inline void SetActiveTracing(bool value) {
87 m_activeTracingHasBeenSet = true;
88 m_activeTracing = value;
89 }
91 SetActiveTracing(value);
92 return *this;
93 }
95
97
110 inline const Aws::Map<Aws::String, Aws::String>& GetEnvironmentVariables() const { return m_environmentVariables; }
111 inline bool EnvironmentVariablesHasBeenSet() const { return m_environmentVariablesHasBeenSet; }
112 template <typename EnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
113 void SetEnvironmentVariables(EnvironmentVariablesT&& value) {
114 m_environmentVariablesHasBeenSet = true;
115 m_environmentVariables = std::forward<EnvironmentVariablesT>(value);
116 }
117 template <typename EnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
118 CanaryRunConfigInput& WithEnvironmentVariables(EnvironmentVariablesT&& value) {
119 SetEnvironmentVariables(std::forward<EnvironmentVariablesT>(value));
120 return *this;
121 }
122 template <typename EnvironmentVariablesKeyT = Aws::String, typename EnvironmentVariablesValueT = Aws::String>
123 CanaryRunConfigInput& AddEnvironmentVariables(EnvironmentVariablesKeyT&& key, EnvironmentVariablesValueT&& value) {
124 m_environmentVariablesHasBeenSet = true;
125 m_environmentVariables.emplace(std::forward<EnvironmentVariablesKeyT>(key), std::forward<EnvironmentVariablesValueT>(value));
126 return *this;
127 }
129
131
138 inline int GetEphemeralStorage() const { return m_ephemeralStorage; }
139 inline bool EphemeralStorageHasBeenSet() const { return m_ephemeralStorageHasBeenSet; }
140 inline void SetEphemeralStorage(int value) {
141 m_ephemeralStorageHasBeenSet = true;
142 m_ephemeralStorage = value;
143 }
145 SetEphemeralStorage(value);
146 return *this;
147 }
149 private:
150 int m_timeoutInSeconds{0};
151 bool m_timeoutInSecondsHasBeenSet = false;
152
153 int m_memoryInMB{0};
154 bool m_memoryInMBHasBeenSet = false;
155
156 bool m_activeTracing{false};
157 bool m_activeTracingHasBeenSet = false;
158
159 Aws::Map<Aws::String, Aws::String> m_environmentVariables;
160 bool m_environmentVariablesHasBeenSet = false;
161
162 int m_ephemeralStorage{0};
163 bool m_ephemeralStorageHasBeenSet = false;
164};
165
166} // namespace Model
167} // namespace Synthetics
168} // 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