AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
State.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/inspector2/model/ErrorCode.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/inspector2/model/Status.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Inspector2
24{
25namespace Model
26{
27
34 class State
35 {
36 public:
37 AWS_INSPECTOR2_API State();
38 AWS_INSPECTOR2_API State(Aws::Utils::Json::JsonView jsonValue);
39 AWS_INSPECTOR2_API State& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const ErrorCode& GetErrorCode() const{ return m_errorCode; }
49 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
50 inline void SetErrorCode(const ErrorCode& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
51 inline void SetErrorCode(ErrorCode&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
52 inline State& WithErrorCode(const ErrorCode& value) { SetErrorCode(value); return *this;}
53 inline State& WithErrorCode(ErrorCode&& value) { SetErrorCode(std::move(value)); return *this;}
55
57
61 inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
62 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
63 inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
64 inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
65 inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
66 inline State& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
67 inline State& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
68 inline State& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
70
72
75 inline const Status& GetStatus() const{ return m_status; }
76 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
77 inline void SetStatus(const Status& value) { m_statusHasBeenSet = true; m_status = value; }
78 inline void SetStatus(Status&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
79 inline State& WithStatus(const Status& value) { SetStatus(value); return *this;}
80 inline State& WithStatus(Status&& value) { SetStatus(std::move(value)); return *this;}
82 private:
83
84 ErrorCode m_errorCode;
85 bool m_errorCodeHasBeenSet = false;
86
87 Aws::String m_errorMessage;
88 bool m_errorMessageHasBeenSet = false;
89
90 Status m_status;
91 bool m_statusHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace Inspector2
96} // namespace Aws
State & WithErrorMessage(const Aws::String &value)
Definition State.h:66
AWS_INSPECTOR2_API State()
const ErrorCode & GetErrorCode() const
Definition State.h:48
const Status & GetStatus() const
Definition State.h:75
void SetStatus(const Status &value)
Definition State.h:77
bool StatusHasBeenSet() const
Definition State.h:76
AWS_INSPECTOR2_API State(Aws::Utils::Json::JsonView jsonValue)
State & WithStatus(const Status &value)
Definition State.h:79
State & WithStatus(Status &&value)
Definition State.h:80
void SetErrorCode(ErrorCode &&value)
Definition State.h:51
State & WithErrorMessage(const char *value)
Definition State.h:68
bool ErrorCodeHasBeenSet() const
Definition State.h:49
void SetErrorMessage(const char *value)
Definition State.h:65
void SetErrorCode(const ErrorCode &value)
Definition State.h:50
State & WithErrorMessage(Aws::String &&value)
Definition State.h:67
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetErrorMessage(Aws::String &&value)
Definition State.h:64
void SetErrorMessage(const Aws::String &value)
Definition State.h:63
State & WithErrorCode(const ErrorCode &value)
Definition State.h:52
State & WithErrorCode(ErrorCode &&value)
Definition State.h:53
const Aws::String & GetErrorMessage() const
Definition State.h:61
AWS_INSPECTOR2_API State & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStatus(Status &&value)
Definition State.h:78
bool ErrorMessageHasBeenSet() const
Definition State.h:62
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue