AWS SDK for C++  1.9.108
AWS SDK for C++
StatusReason.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 
47  inline const Aws::String& GetReasonCode() const{ return m_reasonCode; }
48 
55  inline bool ReasonCodeHasBeenSet() const { return m_reasonCodeHasBeenSet; }
56 
63  inline void SetReasonCode(const Aws::String& value) { m_reasonCodeHasBeenSet = true; m_reasonCode = value; }
64 
71  inline void SetReasonCode(Aws::String&& value) { m_reasonCodeHasBeenSet = true; m_reasonCode = std::move(value); }
72 
79  inline void SetReasonCode(const char* value) { m_reasonCodeHasBeenSet = true; m_reasonCode.assign(value); }
80 
87  inline StatusReason& WithReasonCode(const Aws::String& value) { SetReasonCode(value); return *this;}
88 
95  inline StatusReason& WithReasonCode(Aws::String&& value) { SetReasonCode(std::move(value)); return *this;}
96 
103  inline StatusReason& WithReasonCode(const char* value) { SetReasonCode(value); return *this;}
104 
105 
109  inline const Aws::String& GetDescription() const{ return m_description; }
110 
114  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
115 
119  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
120 
124  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
125 
129  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
130 
134  inline StatusReason& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
135 
139  inline StatusReason& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
140 
144  inline StatusReason& WithDescription(const char* value) { SetDescription(value); return *this;}
145 
146  private:
147 
148  Aws::String m_reasonCode;
149  bool m_reasonCodeHasBeenSet;
150 
151  Aws::String m_description;
152  bool m_descriptionHasBeenSet;
153  };
154 
155 } // namespace Model
156 } // namespace SecurityHub
157 } // namespace Aws
Aws::SecurityHub::Model::StatusReason::GetReasonCode
const Aws::String & GetReasonCode() const
Definition: StatusReason.h:47
Aws::SecurityHub::Model::StatusReason
Definition: StatusReason.h:33
Aws::SecurityHub::Model::StatusReason::WithDescription
StatusReason & WithDescription(const Aws::String &value)
Definition: StatusReason.h:134
Aws::SecurityHub::Model::StatusReason::SetReasonCode
void SetReasonCode(const Aws::String &value)
Definition: StatusReason.h:63
Aws::SecurityHub::Model::StatusReason::WithReasonCode
StatusReason & WithReasonCode(const char *value)
Definition: StatusReason.h:103
Aws::SecurityHub::Model::StatusReason::StatusReason
StatusReason()
Aws::SecurityHub::Model::StatusReason::StatusReason
StatusReason(Aws::Utils::Json::JsonView jsonValue)
Aws::SecurityHub::Model::StatusReason::GetDescription
const Aws::String & GetDescription() const
Definition: StatusReason.h:109
Aws::SecurityHub::Model::StatusReason::SetReasonCode
void SetReasonCode(const char *value)
Definition: StatusReason.h:79
AWS_SECURITYHUB_API
#define AWS_SECURITYHUB_API
Definition: SecurityHub_EXPORTS.h:28
Aws::SecurityHub::Model::StatusReason::WithReasonCode
StatusReason & WithReasonCode(Aws::String &&value)
Definition: StatusReason.h:95
Aws::SecurityHub::Model::StatusReason::WithDescription
StatusReason & WithDescription(Aws::String &&value)
Definition: StatusReason.h:139
Aws::SecurityHub::Model::StatusReason::ReasonCodeHasBeenSet
bool ReasonCodeHasBeenSet() const
Definition: StatusReason.h:55
Aws::SecurityHub::Model::StatusReason::SetDescription
void SetDescription(Aws::String &&value)
Definition: StatusReason.h:124
Aws::SecurityHub::Model::StatusReason::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::SecurityHub::Model::StatusReason::SetDescription
void SetDescription(const char *value)
Definition: StatusReason.h:129
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SecurityHub::Model::StatusReason::WithDescription
StatusReason & WithDescription(const char *value)
Definition: StatusReason.h:144
Aws::SecurityHub::Model::StatusReason::SetDescription
void SetDescription(const Aws::String &value)
Definition: StatusReason.h:119
SecurityHub_EXPORTS.h
Aws::SecurityHub::Model::StatusReason::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: StatusReason.h:114
Aws::SecurityHub::Model::StatusReason::SetReasonCode
void SetReasonCode(Aws::String &&value)
Definition: StatusReason.h:71
Aws::SecurityHub::Model::StatusReason::operator=
StatusReason & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::SecurityHub::Model::StatusReason::WithReasonCode
StatusReason & WithReasonCode(const Aws::String &value)
Definition: StatusReason.h:87