AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CanaryScheduleInput.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/synthetics/Synthetics_EXPORTS.h>
9#include <aws/synthetics/model/RetryConfigInput.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 CanaryScheduleInput() = default;
32 AWS_SYNTHETICS_API CanaryScheduleInput(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SYNTHETICS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
53 inline const Aws::String& GetExpression() const { return m_expression; }
54 inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; }
55 template <typename ExpressionT = Aws::String>
56 void SetExpression(ExpressionT&& value) {
57 m_expressionHasBeenSet = true;
58 m_expression = std::forward<ExpressionT>(value);
59 }
60 template <typename ExpressionT = Aws::String>
61 CanaryScheduleInput& WithExpression(ExpressionT&& value) {
62 SetExpression(std::forward<ExpressionT>(value));
63 return *this;
64 }
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) {
77 m_durationInSecondsHasBeenSet = true;
78 m_durationInSeconds = value;
79 }
80 inline CanaryScheduleInput& WithDurationInSeconds(long long value) {
82 return *this;
83 }
85
87
90 inline const RetryConfigInput& GetRetryConfig() const { return m_retryConfig; }
91 inline bool RetryConfigHasBeenSet() const { return m_retryConfigHasBeenSet; }
92 template <typename RetryConfigT = RetryConfigInput>
93 void SetRetryConfig(RetryConfigT&& value) {
94 m_retryConfigHasBeenSet = true;
95 m_retryConfig = std::forward<RetryConfigT>(value);
96 }
97 template <typename RetryConfigT = RetryConfigInput>
98 CanaryScheduleInput& WithRetryConfig(RetryConfigT&& value) {
99 SetRetryConfig(std::forward<RetryConfigT>(value));
100 return *this;
101 }
103 private:
104 Aws::String m_expression;
105
106 long long m_durationInSeconds{0};
107
108 RetryConfigInput m_retryConfig;
109 bool m_expressionHasBeenSet = false;
110 bool m_durationInSecondsHasBeenSet = false;
111 bool m_retryConfigHasBeenSet = false;
112};
113
114} // namespace Model
115} // namespace Synthetics
116} // 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