AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AlertManagerDefinitionStatus.h
1
6#pragma once
7#include <aws/amp/PrometheusService_EXPORTS.h>
8#include <aws/amp/model/AlertManagerDefinitionStatusCode.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace PrometheusService
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_PROMETHEUSSERVICE_API AlertManagerDefinitionStatus();
36 AWS_PROMETHEUSSERVICE_API AlertManagerDefinitionStatus(Aws::Utils::Json::JsonView jsonValue);
38 AWS_PROMETHEUSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const AlertManagerDefinitionStatusCode& GetStatusCode() const{ return m_statusCode; }
46 inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
47 inline void SetStatusCode(const AlertManagerDefinitionStatusCode& value) { m_statusCodeHasBeenSet = true; m_statusCode = value; }
48 inline void SetStatusCode(AlertManagerDefinitionStatusCode&& value) { m_statusCodeHasBeenSet = true; m_statusCode = std::move(value); }
52
54
57 inline const Aws::String& GetStatusReason() const{ return m_statusReason; }
58 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
59 inline void SetStatusReason(const Aws::String& value) { m_statusReasonHasBeenSet = true; m_statusReason = value; }
60 inline void SetStatusReason(Aws::String&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::move(value); }
61 inline void SetStatusReason(const char* value) { m_statusReasonHasBeenSet = true; m_statusReason.assign(value); }
62 inline AlertManagerDefinitionStatus& WithStatusReason(const Aws::String& value) { SetStatusReason(value); return *this;}
63 inline AlertManagerDefinitionStatus& WithStatusReason(Aws::String&& value) { SetStatusReason(std::move(value)); return *this;}
64 inline AlertManagerDefinitionStatus& WithStatusReason(const char* value) { SetStatusReason(value); return *this;}
66 private:
67
69 bool m_statusCodeHasBeenSet = false;
70
71 Aws::String m_statusReason;
72 bool m_statusReasonHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace PrometheusService
77} // namespace Aws
AWS_PROMETHEUSSERVICE_API AlertManagerDefinitionStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
AlertManagerDefinitionStatus & WithStatusReason(const char *value)
AWS_PROMETHEUSSERVICE_API AlertManagerDefinitionStatus(Aws::Utils::Json::JsonView jsonValue)
AlertManagerDefinitionStatus & WithStatusCode(const AlertManagerDefinitionStatusCode &value)
AWS_PROMETHEUSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStatusCode(const AlertManagerDefinitionStatusCode &value)
AlertManagerDefinitionStatus & WithStatusReason(const Aws::String &value)
const AlertManagerDefinitionStatusCode & GetStatusCode() const
AlertManagerDefinitionStatus & WithStatusCode(AlertManagerDefinitionStatusCode &&value)
AlertManagerDefinitionStatus & WithStatusReason(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue