AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
AwsRdsDbStatusInfo.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/securityhub/SecurityHub_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SecurityHub {
20namespace Model {
21
28 public:
29 AWS_SECURITYHUB_API AwsRdsDbStatusInfo() = default;
30 AWS_SECURITYHUB_API AwsRdsDbStatusInfo(Aws::Utils::Json::JsonView jsonValue);
32 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
39 inline const Aws::String& GetStatusType() const { return m_statusType; }
40 inline bool StatusTypeHasBeenSet() const { return m_statusTypeHasBeenSet; }
41 template <typename StatusTypeT = Aws::String>
42 void SetStatusType(StatusTypeT&& value) {
43 m_statusTypeHasBeenSet = true;
44 m_statusType = std::forward<StatusTypeT>(value);
45 }
46 template <typename StatusTypeT = Aws::String>
47 AwsRdsDbStatusInfo& WithStatusType(StatusTypeT&& value) {
48 SetStatusType(std::forward<StatusTypeT>(value));
49 return *this;
50 }
52
54
57 inline bool GetNormal() const { return m_normal; }
58 inline bool NormalHasBeenSet() const { return m_normalHasBeenSet; }
59 inline void SetNormal(bool value) {
60 m_normalHasBeenSet = true;
61 m_normal = value;
62 }
63 inline AwsRdsDbStatusInfo& WithNormal(bool value) {
64 SetNormal(value);
65 return *this;
66 }
68
70
73 inline const Aws::String& GetStatus() const { return m_status; }
74 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
75 template <typename StatusT = Aws::String>
76 void SetStatus(StatusT&& value) {
77 m_statusHasBeenSet = true;
78 m_status = std::forward<StatusT>(value);
79 }
80 template <typename StatusT = Aws::String>
81 AwsRdsDbStatusInfo& WithStatus(StatusT&& value) {
82 SetStatus(std::forward<StatusT>(value));
83 return *this;
84 }
86
88
92 inline const Aws::String& GetMessage() const { return m_message; }
93 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
94 template <typename MessageT = Aws::String>
95 void SetMessage(MessageT&& value) {
96 m_messageHasBeenSet = true;
97 m_message = std::forward<MessageT>(value);
98 }
99 template <typename MessageT = Aws::String>
100 AwsRdsDbStatusInfo& WithMessage(MessageT&& value) {
101 SetMessage(std::forward<MessageT>(value));
102 return *this;
103 }
105 private:
106 Aws::String m_statusType;
107
108 bool m_normal{false};
109
110 Aws::String m_status;
111
112 Aws::String m_message;
113 bool m_statusTypeHasBeenSet = false;
114 bool m_normalHasBeenSet = false;
115 bool m_statusHasBeenSet = false;
116 bool m_messageHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace SecurityHub
121} // namespace Aws
AwsRdsDbStatusInfo & WithStatus(StatusT &&value)
AwsRdsDbStatusInfo & WithNormal(bool value)
AwsRdsDbStatusInfo & WithStatusType(StatusTypeT &&value)
AWS_SECURITYHUB_API AwsRdsDbStatusInfo(Aws::Utils::Json::JsonView jsonValue)
AwsRdsDbStatusInfo & WithMessage(MessageT &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SECURITYHUB_API AwsRdsDbStatusInfo()=default
AWS_SECURITYHUB_API AwsRdsDbStatusInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue