AWS SDK for C++  1.9.108
AWS SDK for C++
ClassificationStatus.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace SecurityHub
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
44  inline const Aws::String& GetCode() const{ return m_code; }
45 
49  inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
50 
54  inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
55 
59  inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
60 
64  inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
65 
69  inline ClassificationStatus& WithCode(const Aws::String& value) { SetCode(value); return *this;}
70 
74  inline ClassificationStatus& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
75 
79  inline ClassificationStatus& WithCode(const char* value) { SetCode(value); return *this;}
80 
81 
86  inline const Aws::String& GetReason() const{ return m_reason; }
87 
92  inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
93 
98  inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
99 
104  inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
105 
110  inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
111 
116  inline ClassificationStatus& WithReason(const Aws::String& value) { SetReason(value); return *this;}
117 
122  inline ClassificationStatus& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
123 
128  inline ClassificationStatus& WithReason(const char* value) { SetReason(value); return *this;}
129 
130  private:
131 
132  Aws::String m_code;
133  bool m_codeHasBeenSet;
134 
135  Aws::String m_reason;
136  bool m_reasonHasBeenSet;
137  };
138 
139 } // namespace Model
140 } // namespace SecurityHub
141 } // namespace Aws
Aws::SecurityHub::Model::ClassificationStatus::WithCode
ClassificationStatus & WithCode(Aws::String &&value)
Definition: ClassificationStatus.h:74
Aws::SecurityHub::Model::ClassificationStatus::SetCode
void SetCode(const Aws::String &value)
Definition: ClassificationStatus.h:54
Aws::SecurityHub::Model::ClassificationStatus::SetReason
void SetReason(const char *value)
Definition: ClassificationStatus.h:110
Aws::SecurityHub::Model::ClassificationStatus::WithCode
ClassificationStatus & WithCode(const char *value)
Definition: ClassificationStatus.h:79
Aws::SecurityHub::Model::ClassificationStatus::GetReason
const Aws::String & GetReason() const
Definition: ClassificationStatus.h:86
Aws::SecurityHub::Model::ClassificationStatus::ClassificationStatus
ClassificationStatus(Aws::Utils::Json::JsonView jsonValue)
Aws::SecurityHub::Model::ClassificationStatus::ReasonHasBeenSet
bool ReasonHasBeenSet() const
Definition: ClassificationStatus.h:92
Aws::SecurityHub::Model::ClassificationStatus::SetCode
void SetCode(Aws::String &&value)
Definition: ClassificationStatus.h:59
Aws::SecurityHub::Model::ClassificationStatus::GetCode
const Aws::String & GetCode() const
Definition: ClassificationStatus.h:44
Aws::SecurityHub::Model::ClassificationStatus::SetCode
void SetCode(const char *value)
Definition: ClassificationStatus.h:64
AWS_SECURITYHUB_API
#define AWS_SECURITYHUB_API
Definition: SecurityHub_EXPORTS.h:28
Aws::SecurityHub::Model::ClassificationStatus::WithReason
ClassificationStatus & WithReason(const char *value)
Definition: ClassificationStatus.h:128
Aws::SecurityHub::Model::ClassificationStatus::WithReason
ClassificationStatus & WithReason(const Aws::String &value)
Definition: ClassificationStatus.h:116
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::SecurityHub::Model::ClassificationStatus::operator=
ClassificationStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::SecurityHub::Model::ClassificationStatus::WithCode
ClassificationStatus & WithCode(const Aws::String &value)
Definition: ClassificationStatus.h:69
Aws::SecurityHub::Model::ClassificationStatus::SetReason
void SetReason(Aws::String &&value)
Definition: ClassificationStatus.h:104
Aws::SecurityHub::Model::ClassificationStatus::SetReason
void SetReason(const Aws::String &value)
Definition: ClassificationStatus.h:98
Aws::SecurityHub::Model::ClassificationStatus::CodeHasBeenSet
bool CodeHasBeenSet() const
Definition: ClassificationStatus.h:49
Aws
Definition: AccessManagementClient.h:15
Aws::SecurityHub::Model::ClassificationStatus::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SecurityHub::Model::ClassificationStatus::ClassificationStatus
ClassificationStatus()
SecurityHub_EXPORTS.h
Aws::SecurityHub::Model::ClassificationStatus::WithReason
ClassificationStatus & WithReason(Aws::String &&value)
Definition: ClassificationStatus.h:122
Aws::SecurityHub::Model::ClassificationStatus
Definition: ClassificationStatus.h:33