AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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 <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Synthetics
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_SYNTHETICS_API CanaryRunStatus();
38 AWS_SYNTHETICS_API CanaryRunStatus(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SYNTHETICS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const CanaryRunState& GetState() const{ return m_state; }
48 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
49 inline void SetState(const CanaryRunState& value) { m_stateHasBeenSet = true; m_state = value; }
50 inline void SetState(CanaryRunState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
51 inline CanaryRunStatus& WithState(const CanaryRunState& value) { SetState(value); return *this;}
52 inline CanaryRunStatus& WithState(CanaryRunState&& value) { SetState(std::move(value)); return *this;}
54
56
60 inline const Aws::String& GetStateReason() const{ return m_stateReason; }
61 inline bool StateReasonHasBeenSet() const { return m_stateReasonHasBeenSet; }
62 inline void SetStateReason(const Aws::String& value) { m_stateReasonHasBeenSet = true; m_stateReason = value; }
63 inline void SetStateReason(Aws::String&& value) { m_stateReasonHasBeenSet = true; m_stateReason = std::move(value); }
64 inline void SetStateReason(const char* value) { m_stateReasonHasBeenSet = true; m_stateReason.assign(value); }
65 inline CanaryRunStatus& WithStateReason(const Aws::String& value) { SetStateReason(value); return *this;}
66 inline CanaryRunStatus& WithStateReason(Aws::String&& value) { SetStateReason(std::move(value)); return *this;}
67 inline CanaryRunStatus& WithStateReason(const char* value) { SetStateReason(value); return *this;}
69
71
76 inline const CanaryRunStateReasonCode& GetStateReasonCode() const{ return m_stateReasonCode; }
77 inline bool StateReasonCodeHasBeenSet() const { return m_stateReasonCodeHasBeenSet; }
78 inline void SetStateReasonCode(const CanaryRunStateReasonCode& value) { m_stateReasonCodeHasBeenSet = true; m_stateReasonCode = value; }
79 inline void SetStateReasonCode(CanaryRunStateReasonCode&& value) { m_stateReasonCodeHasBeenSet = true; m_stateReasonCode = std::move(value); }
81 inline CanaryRunStatus& WithStateReasonCode(CanaryRunStateReasonCode&& value) { SetStateReasonCode(std::move(value)); return *this;}
83 private:
84
85 CanaryRunState m_state;
86 bool m_stateHasBeenSet = false;
87
88 Aws::String m_stateReason;
89 bool m_stateReasonHasBeenSet = false;
90
91 CanaryRunStateReasonCode m_stateReasonCode;
92 bool m_stateReasonCodeHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace Synthetics
97} // namespace Aws
void SetStateReason(Aws::String &&value)
const CanaryRunStateReasonCode & GetStateReasonCode() const
void SetState(CanaryRunState &&value)
AWS_SYNTHETICS_API CanaryRunStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetState(const CanaryRunState &value)
CanaryRunStatus & WithStateReason(const Aws::String &value)
const Aws::String & GetStateReason() const
AWS_SYNTHETICS_API CanaryRunStatus(Aws::Utils::Json::JsonView jsonValue)
const CanaryRunState & GetState() const
CanaryRunStatus & WithStateReason(const char *value)
AWS_SYNTHETICS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStateReason(const Aws::String &value)
CanaryRunStatus & WithState(CanaryRunState &&value)
void SetStateReasonCode(CanaryRunStateReasonCode &&value)
CanaryRunStatus & WithStateReason(Aws::String &&value)
void SetStateReasonCode(const CanaryRunStateReasonCode &value)
CanaryRunStatus & WithState(const CanaryRunState &value)
CanaryRunStatus & WithStateReasonCode(CanaryRunStateReasonCode &&value)
CanaryRunStatus & WithStateReasonCode(const CanaryRunStateReasonCode &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue