AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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 <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Synthetics
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_SYNTHETICS_API CanaryScheduleInput();
36 AWS_SYNTHETICS_API CanaryScheduleInput(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SYNTHETICS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
58 inline const Aws::String& GetExpression() const{ return m_expression; }
59 inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; }
60 inline void SetExpression(const Aws::String& value) { m_expressionHasBeenSet = true; m_expression = value; }
61 inline void SetExpression(Aws::String&& value) { m_expressionHasBeenSet = true; m_expression = std::move(value); }
62 inline void SetExpression(const char* value) { m_expressionHasBeenSet = true; m_expression.assign(value); }
63 inline CanaryScheduleInput& WithExpression(const Aws::String& value) { SetExpression(value); return *this;}
64 inline CanaryScheduleInput& WithExpression(Aws::String&& value) { SetExpression(std::move(value)); return *this;}
65 inline CanaryScheduleInput& WithExpression(const char* value) { SetExpression(value); return *this;}
67
69
75 inline long long GetDurationInSeconds() const{ return m_durationInSeconds; }
76 inline bool DurationInSecondsHasBeenSet() const { return m_durationInSecondsHasBeenSet; }
77 inline void SetDurationInSeconds(long long value) { m_durationInSecondsHasBeenSet = true; m_durationInSeconds = value; }
78 inline CanaryScheduleInput& WithDurationInSeconds(long long value) { SetDurationInSeconds(value); return *this;}
80 private:
81
82 Aws::String m_expression;
83 bool m_expressionHasBeenSet = false;
84
85 long long m_durationInSeconds;
86 bool m_durationInSecondsHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace Synthetics
91} // namespace Aws
CanaryScheduleInput & WithExpression(const Aws::String &value)
AWS_SYNTHETICS_API CanaryScheduleInput & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetExpression(const Aws::String &value)
CanaryScheduleInput & WithExpression(const char *value)
AWS_SYNTHETICS_API CanaryScheduleInput(Aws::Utils::Json::JsonView jsonValue)
CanaryScheduleInput & WithDurationInSeconds(long long value)
AWS_SYNTHETICS_API Aws::Utils::Json::JsonValue Jsonize() const
CanaryScheduleInput & WithExpression(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue