AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RuleGroupsNamespaceStatus.h
1
6#pragma once
7#include <aws/amp/PrometheusService_EXPORTS.h>
8#include <aws/amp/model/RuleGroupsNamespaceStatusCode.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
34 {
35 public:
36 AWS_PROMETHEUSSERVICE_API RuleGroupsNamespaceStatus();
37 AWS_PROMETHEUSSERVICE_API RuleGroupsNamespaceStatus(Aws::Utils::Json::JsonView jsonValue);
38 AWS_PROMETHEUSSERVICE_API RuleGroupsNamespaceStatus& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_PROMETHEUSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const RuleGroupsNamespaceStatusCode& GetStatusCode() const{ return m_statusCode; }
47 inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
48 inline void SetStatusCode(const RuleGroupsNamespaceStatusCode& value) { m_statusCodeHasBeenSet = true; m_statusCode = value; }
49 inline void SetStatusCode(RuleGroupsNamespaceStatusCode&& value) { m_statusCodeHasBeenSet = true; m_statusCode = std::move(value); }
51 inline RuleGroupsNamespaceStatus& WithStatusCode(RuleGroupsNamespaceStatusCode&& value) { SetStatusCode(std::move(value)); return *this;}
53
55
58 inline const Aws::String& GetStatusReason() const{ return m_statusReason; }
59 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
60 inline void SetStatusReason(const Aws::String& value) { m_statusReasonHasBeenSet = true; m_statusReason = value; }
61 inline void SetStatusReason(Aws::String&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::move(value); }
62 inline void SetStatusReason(const char* value) { m_statusReasonHasBeenSet = true; m_statusReason.assign(value); }
63 inline RuleGroupsNamespaceStatus& WithStatusReason(const Aws::String& value) { SetStatusReason(value); return *this;}
64 inline RuleGroupsNamespaceStatus& WithStatusReason(Aws::String&& value) { SetStatusReason(std::move(value)); return *this;}
65 inline RuleGroupsNamespaceStatus& WithStatusReason(const char* value) { SetStatusReason(value); return *this;}
67 private:
68
70 bool m_statusCodeHasBeenSet = false;
71
72 Aws::String m_statusReason;
73 bool m_statusReasonHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace PrometheusService
78} // namespace Aws
void SetStatusCode(RuleGroupsNamespaceStatusCode &&value)
RuleGroupsNamespaceStatus & WithStatusCode(RuleGroupsNamespaceStatusCode &&value)
RuleGroupsNamespaceStatus & WithStatusReason(const char *value)
void SetStatusCode(const RuleGroupsNamespaceStatusCode &value)
AWS_PROMETHEUSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
RuleGroupsNamespaceStatus & WithStatusReason(const Aws::String &value)
const RuleGroupsNamespaceStatusCode & GetStatusCode() const
RuleGroupsNamespaceStatus & WithStatusReason(Aws::String &&value)
AWS_PROMETHEUSSERVICE_API RuleGroupsNamespaceStatus(Aws::Utils::Json::JsonView jsonValue)
AWS_PROMETHEUSSERVICE_API RuleGroupsNamespaceStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
RuleGroupsNamespaceStatus & WithStatusCode(const RuleGroupsNamespaceStatusCode &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue