AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
GoalSchedule.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/devops-agent/DevOpsAgent_EXPORTS.h>
9#include <aws/devops-agent/model/SchedulerState.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace DevOpsAgent {
21namespace Model {
22
29 public:
30 AWS_DEVOPSAGENT_API GoalSchedule() = default;
31 AWS_DEVOPSAGENT_API GoalSchedule(Aws::Utils::Json::JsonView jsonValue);
32 AWS_DEVOPSAGENT_API GoalSchedule& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_DEVOPSAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline SchedulerState GetState() const { return m_state; }
40 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
41 inline void SetState(SchedulerState value) {
42 m_stateHasBeenSet = true;
43 m_state = value;
44 }
46 SetState(value);
47 return *this;
48 }
50
52
55 inline const Aws::String& GetExpression() const { return m_expression; }
56 inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; }
57 template <typename ExpressionT = Aws::String>
58 void SetExpression(ExpressionT&& value) {
59 m_expressionHasBeenSet = true;
60 m_expression = std::forward<ExpressionT>(value);
61 }
62 template <typename ExpressionT = Aws::String>
63 GoalSchedule& WithExpression(ExpressionT&& value) {
64 SetExpression(std::forward<ExpressionT>(value));
65 return *this;
66 }
68 private:
70
71 Aws::String m_expression;
72 bool m_stateHasBeenSet = false;
73 bool m_expressionHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace DevOpsAgent
78} // namespace Aws
GoalSchedule & WithState(SchedulerState value)
void SetState(SchedulerState value)
GoalSchedule & WithExpression(ExpressionT &&value)
void SetExpression(ExpressionT &&value)
const Aws::String & GetExpression() const
AWS_DEVOPSAGENT_API GoalSchedule(Aws::Utils::Json::JsonView jsonValue)
AWS_DEVOPSAGENT_API GoalSchedule & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DEVOPSAGENT_API GoalSchedule()=default
AWS_DEVOPSAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue