AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
CanaryScheduleOutput.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/RetryConfigOutput.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
31 public:
32 AWS_SYNTHETICS_API CanaryScheduleOutput() = default;
33 AWS_SYNTHETICS_API CanaryScheduleOutput(Aws::Utils::Json::JsonView jsonValue);
35 AWS_SYNTHETICS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
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 CanaryScheduleOutput& WithExpression(ExpressionT&& value) {
62 SetExpression(std::forward<ExpressionT>(value));
63 return *this;
64 }
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) {
76 m_durationInSecondsHasBeenSet = true;
77 m_durationInSeconds = value;
78 }
81 return *this;
82 }
84
86
89 inline const RetryConfigOutput& GetRetryConfig() const { return m_retryConfig; }
90 inline bool RetryConfigHasBeenSet() const { return m_retryConfigHasBeenSet; }
91 template <typename RetryConfigT = RetryConfigOutput>
92 void SetRetryConfig(RetryConfigT&& value) {
93 m_retryConfigHasBeenSet = true;
94 m_retryConfig = std::forward<RetryConfigT>(value);
95 }
96 template <typename RetryConfigT = RetryConfigOutput>
97 CanaryScheduleOutput& WithRetryConfig(RetryConfigT&& value) {
98 SetRetryConfig(std::forward<RetryConfigT>(value));
99 return *this;
100 }
102 private:
103 Aws::String m_expression;
104
105 long long m_durationInSeconds{0};
106
107 RetryConfigOutput m_retryConfig;
108 bool m_expressionHasBeenSet = false;
109 bool m_durationInSecondsHasBeenSet = false;
110 bool m_retryConfigHasBeenSet = false;
111};
112
113} // namespace Model
114} // namespace Synthetics
115} // 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