AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CanaryStatus.h
1
6#pragma once
7#include <aws/synthetics/Synthetics_EXPORTS.h>
8#include <aws/synthetics/model/CanaryState.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/synthetics/model/CanaryStateReasonCode.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 CanaryStatus();
38 AWS_SYNTHETICS_API CanaryStatus(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SYNTHETICS_API CanaryStatus& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SYNTHETICS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const CanaryState& GetState() const{ return m_state; }
48 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
49 inline void SetState(const CanaryState& value) { m_stateHasBeenSet = true; m_state = value; }
50 inline void SetState(CanaryState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
51 inline CanaryStatus& WithState(const CanaryState& value) { SetState(value); return *this;}
52 inline CanaryStatus& WithState(CanaryState&& 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 CanaryStatus& WithStateReason(const Aws::String& value) { SetStateReason(value); return *this;}
66 inline CanaryStatus& WithStateReason(Aws::String&& value) { SetStateReason(std::move(value)); return *this;}
67 inline CanaryStatus& WithStateReason(const char* value) { SetStateReason(value); return *this;}
69
71
74 inline const CanaryStateReasonCode& GetStateReasonCode() const{ return m_stateReasonCode; }
75 inline bool StateReasonCodeHasBeenSet() const { return m_stateReasonCodeHasBeenSet; }
76 inline void SetStateReasonCode(const CanaryStateReasonCode& value) { m_stateReasonCodeHasBeenSet = true; m_stateReasonCode = value; }
77 inline void SetStateReasonCode(CanaryStateReasonCode&& value) { m_stateReasonCodeHasBeenSet = true; m_stateReasonCode = std::move(value); }
78 inline CanaryStatus& WithStateReasonCode(const CanaryStateReasonCode& value) { SetStateReasonCode(value); return *this;}
79 inline CanaryStatus& WithStateReasonCode(CanaryStateReasonCode&& value) { SetStateReasonCode(std::move(value)); return *this;}
81 private:
82
83 CanaryState m_state;
84 bool m_stateHasBeenSet = false;
85
86 Aws::String m_stateReason;
87 bool m_stateReasonHasBeenSet = false;
88
89 CanaryStateReasonCode m_stateReasonCode;
90 bool m_stateReasonCodeHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace Synthetics
95} // namespace Aws
CanaryStatus & WithStateReasonCode(const CanaryStateReasonCode &value)
const CanaryStateReasonCode & GetStateReasonCode() const
CanaryStatus & WithStateReason(const Aws::String &value)
const CanaryState & GetState() const
CanaryStatus & WithStateReasonCode(CanaryStateReasonCode &&value)
void SetStateReason(Aws::String &&value)
AWS_SYNTHETICS_API CanaryStatus(Aws::Utils::Json::JsonView jsonValue)
void SetState(CanaryState &&value)
CanaryStatus & WithStateReason(const char *value)
void SetStateReason(const char *value)
const Aws::String & GetStateReason() const
CanaryStatus & WithStateReason(Aws::String &&value)
CanaryStatus & WithState(CanaryState &&value)
void SetStateReason(const Aws::String &value)
AWS_SYNTHETICS_API CanaryStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStateReasonCode(const CanaryStateReasonCode &value)
void SetStateReasonCode(CanaryStateReasonCode &&value)
void SetState(const CanaryState &value)
CanaryStatus & WithState(const CanaryState &value)
AWS_SYNTHETICS_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue