AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CanaryScheduleOutput.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/RetryConfigOutput.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
35 {
36 public:
37 AWS_SYNTHETICS_API CanaryScheduleOutput() = default;
38 AWS_SYNTHETICS_API CanaryScheduleOutput(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SYNTHETICS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
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 CanaryScheduleOutput& WithExpression(ExpressionT&& value) { SetExpression(std::forward<ExpressionT>(value)); return *this;}
66
68
73 inline long long GetDurationInSeconds() const { return m_durationInSeconds; }
74 inline bool DurationInSecondsHasBeenSet() const { return m_durationInSecondsHasBeenSet; }
75 inline void SetDurationInSeconds(long long value) { m_durationInSecondsHasBeenSet = true; m_durationInSeconds = value; }
76 inline CanaryScheduleOutput& WithDurationInSeconds(long long value) { SetDurationInSeconds(value); return *this;}
78
80
83 inline const RetryConfigOutput& GetRetryConfig() const { return m_retryConfig; }
84 inline bool RetryConfigHasBeenSet() const { return m_retryConfigHasBeenSet; }
85 template<typename RetryConfigT = RetryConfigOutput>
86 void SetRetryConfig(RetryConfigT&& value) { m_retryConfigHasBeenSet = true; m_retryConfig = std::forward<RetryConfigT>(value); }
87 template<typename RetryConfigT = RetryConfigOutput>
88 CanaryScheduleOutput& WithRetryConfig(RetryConfigT&& value) { SetRetryConfig(std::forward<RetryConfigT>(value)); return *this;}
90 private:
91
92 Aws::String m_expression;
93 bool m_expressionHasBeenSet = false;
94
95 long long m_durationInSeconds{0};
96 bool m_durationInSecondsHasBeenSet = false;
97
98 RetryConfigOutput m_retryConfig;
99 bool m_retryConfigHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace Synthetics
104} // namespace Aws
AWS_SYNTHETICS_API CanaryScheduleOutput & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SYNTHETICS_API CanaryScheduleOutput()=default
AWS_SYNTHETICS_API Aws::Utils::Json::JsonValue Jsonize() const
CanaryScheduleOutput & WithExpression(ExpressionT &&value)
CanaryScheduleOutput & WithDurationInSeconds(long long value)
const RetryConfigOutput & GetRetryConfig() const
AWS_SYNTHETICS_API CanaryScheduleOutput(Aws::Utils::Json::JsonView jsonValue)
CanaryScheduleOutput & WithRetryConfig(RetryConfigT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue