AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CanaryScheduleInput.h
1
6#pragma once
7#include <aws/synthetics/Synthetics_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/synthetics/model/RetryConfigInput.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 CanaryScheduleInput() = default;
37 AWS_SYNTHETICS_API CanaryScheduleInput(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SYNTHETICS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
59 inline const Aws::String& GetExpression() const { return m_expression; }
60 inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; }
61 template<typename ExpressionT = Aws::String>
62 void SetExpression(ExpressionT&& value) { m_expressionHasBeenSet = true; m_expression = std::forward<ExpressionT>(value); }
63 template<typename ExpressionT = Aws::String>
64 CanaryScheduleInput& WithExpression(ExpressionT&& value) { SetExpression(std::forward<ExpressionT>(value)); return *this;}
66
68
74 inline long long GetDurationInSeconds() const { return m_durationInSeconds; }
75 inline bool DurationInSecondsHasBeenSet() const { return m_durationInSecondsHasBeenSet; }
76 inline void SetDurationInSeconds(long long value) { m_durationInSecondsHasBeenSet = true; m_durationInSeconds = value; }
77 inline CanaryScheduleInput& WithDurationInSeconds(long long value) { SetDurationInSeconds(value); return *this;}
79
81
84 inline const RetryConfigInput& GetRetryConfig() const { return m_retryConfig; }
85 inline bool RetryConfigHasBeenSet() const { return m_retryConfigHasBeenSet; }
86 template<typename RetryConfigT = RetryConfigInput>
87 void SetRetryConfig(RetryConfigT&& value) { m_retryConfigHasBeenSet = true; m_retryConfig = std::forward<RetryConfigT>(value); }
88 template<typename RetryConfigT = RetryConfigInput>
89 CanaryScheduleInput& WithRetryConfig(RetryConfigT&& value) { SetRetryConfig(std::forward<RetryConfigT>(value)); return *this;}
91 private:
92
93 Aws::String m_expression;
94 bool m_expressionHasBeenSet = false;
95
96 long long m_durationInSeconds{0};
97 bool m_durationInSecondsHasBeenSet = false;
98
99 RetryConfigInput m_retryConfig;
100 bool m_retryConfigHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace Synthetics
105} // namespace Aws
AWS_SYNTHETICS_API CanaryScheduleInput & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SYNTHETICS_API CanaryScheduleInput(Aws::Utils::Json::JsonView jsonValue)
CanaryScheduleInput & WithRetryConfig(RetryConfigT &&value)
CanaryScheduleInput & WithDurationInSeconds(long long value)
AWS_SYNTHETICS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SYNTHETICS_API CanaryScheduleInput()=default
CanaryScheduleInput & WithExpression(ExpressionT &&value)
const RetryConfigInput & GetRetryConfig() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue