AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CanaryRunStatus.h
1
6#pragma once
7#include <aws/synthetics/Synthetics_EXPORTS.h>
8#include <aws/synthetics/model/CanaryRunState.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/synthetics/model/CanaryRunStateReasonCode.h>
11#include <aws/synthetics/model/CanaryRunTestResult.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Synthetics
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_SYNTHETICS_API CanaryRunStatus() = default;
39 AWS_SYNTHETICS_API CanaryRunStatus(Aws::Utils::Json::JsonView jsonValue);
41 AWS_SYNTHETICS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline CanaryRunState GetState() const { return m_state; }
49 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
50 inline void SetState(CanaryRunState value) { m_stateHasBeenSet = true; m_state = value; }
51 inline CanaryRunStatus& WithState(CanaryRunState value) { SetState(value); return *this;}
53
55
59 inline const Aws::String& GetStateReason() const { return m_stateReason; }
60 inline bool StateReasonHasBeenSet() const { return m_stateReasonHasBeenSet; }
61 template<typename StateReasonT = Aws::String>
62 void SetStateReason(StateReasonT&& value) { m_stateReasonHasBeenSet = true; m_stateReason = std::forward<StateReasonT>(value); }
63 template<typename StateReasonT = Aws::String>
64 CanaryRunStatus& WithStateReason(StateReasonT&& value) { SetStateReason(std::forward<StateReasonT>(value)); return *this;}
66
68
80 inline CanaryRunStateReasonCode GetStateReasonCode() const { return m_stateReasonCode; }
81 inline bool StateReasonCodeHasBeenSet() const { return m_stateReasonCodeHasBeenSet; }
82 inline void SetStateReasonCode(CanaryRunStateReasonCode value) { m_stateReasonCodeHasBeenSet = true; m_stateReasonCode = value; }
85
87
93 inline CanaryRunTestResult GetTestResult() const { return m_testResult; }
94 inline bool TestResultHasBeenSet() const { return m_testResultHasBeenSet; }
95 inline void SetTestResult(CanaryRunTestResult value) { m_testResultHasBeenSet = true; m_testResult = value; }
96 inline CanaryRunStatus& WithTestResult(CanaryRunTestResult value) { SetTestResult(value); return *this;}
98 private:
99
101 bool m_stateHasBeenSet = false;
102
103 Aws::String m_stateReason;
104 bool m_stateReasonHasBeenSet = false;
105
107 bool m_stateReasonCodeHasBeenSet = false;
108
110 bool m_testResultHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace Synthetics
115} // namespace Aws
CanaryRunStatus & WithState(CanaryRunState value)
CanaryRunStatus & WithTestResult(CanaryRunTestResult value)
AWS_SYNTHETICS_API CanaryRunStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
CanaryRunTestResult GetTestResult() const
void SetStateReason(StateReasonT &&value)
AWS_SYNTHETICS_API CanaryRunStatus()=default
const Aws::String & GetStateReason() const
AWS_SYNTHETICS_API CanaryRunStatus(Aws::Utils::Json::JsonView jsonValue)
CanaryRunStateReasonCode GetStateReasonCode() const
AWS_SYNTHETICS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetState(CanaryRunState value)
CanaryRunStatus & WithStateReason(StateReasonT &&value)
CanaryRunStatus & WithStateReasonCode(CanaryRunStateReasonCode value)
void SetStateReasonCode(CanaryRunStateReasonCode value)
void SetTestResult(CanaryRunTestResult value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue