AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
FailedAccount.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/inspector2/model/ErrorCode.h>
10#include <aws/inspector2/model/ResourceStatus.h>
11#include <aws/inspector2/model/Status.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Inspector2
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_INSPECTOR2_API FailedAccount();
39 AWS_INSPECTOR2_API FailedAccount(Aws::Utils::Json::JsonView jsonValue);
40 AWS_INSPECTOR2_API FailedAccount& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetAccountId() const{ return m_accountId; }
49 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
50 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
51 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
52 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
53 inline FailedAccount& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
54 inline FailedAccount& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
55 inline FailedAccount& WithAccountId(const char* value) { SetAccountId(value); return *this;}
57
59
63 inline const ErrorCode& GetErrorCode() const{ return m_errorCode; }
64 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
65 inline void SetErrorCode(const ErrorCode& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
66 inline void SetErrorCode(ErrorCode&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
67 inline FailedAccount& WithErrorCode(const ErrorCode& value) { SetErrorCode(value); return *this;}
68 inline FailedAccount& WithErrorCode(ErrorCode&& value) { SetErrorCode(std::move(value)); return *this;}
70
72
76 inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
77 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
78 inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
79 inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
80 inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
81 inline FailedAccount& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
82 inline FailedAccount& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
83 inline FailedAccount& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
85
87
91 inline const ResourceStatus& GetResourceStatus() const{ return m_resourceStatus; }
92 inline bool ResourceStatusHasBeenSet() const { return m_resourceStatusHasBeenSet; }
93 inline void SetResourceStatus(const ResourceStatus& value) { m_resourceStatusHasBeenSet = true; m_resourceStatus = value; }
94 inline void SetResourceStatus(ResourceStatus&& value) { m_resourceStatusHasBeenSet = true; m_resourceStatus = std::move(value); }
95 inline FailedAccount& WithResourceStatus(const ResourceStatus& value) { SetResourceStatus(value); return *this;}
96 inline FailedAccount& WithResourceStatus(ResourceStatus&& value) { SetResourceStatus(std::move(value)); return *this;}
98
100
103 inline const Status& GetStatus() const{ return m_status; }
104 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
105 inline void SetStatus(const Status& value) { m_statusHasBeenSet = true; m_status = value; }
106 inline void SetStatus(Status&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
107 inline FailedAccount& WithStatus(const Status& value) { SetStatus(value); return *this;}
108 inline FailedAccount& WithStatus(Status&& value) { SetStatus(std::move(value)); return *this;}
110 private:
111
112 Aws::String m_accountId;
113 bool m_accountIdHasBeenSet = false;
114
115 ErrorCode m_errorCode;
116 bool m_errorCodeHasBeenSet = false;
117
118 Aws::String m_errorMessage;
119 bool m_errorMessageHasBeenSet = false;
120
121 ResourceStatus m_resourceStatus;
122 bool m_resourceStatusHasBeenSet = false;
123
124 Status m_status;
125 bool m_statusHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace Inspector2
130} // namespace Aws
void SetAccountId(const char *value)
FailedAccount & WithAccountId(Aws::String &&value)
const Aws::String & GetAccountId() const
const ResourceStatus & GetResourceStatus() const
const ErrorCode & GetErrorCode() const
FailedAccount & WithErrorCode(ErrorCode &&value)
void SetErrorCode(ErrorCode &&value)
void SetErrorMessage(Aws::String &&value)
FailedAccount & WithResourceStatus(const ResourceStatus &value)
FailedAccount & WithErrorMessage(const char *value)
FailedAccount & WithStatus(const Status &value)
void SetStatus(const Status &value)
FailedAccount & WithResourceStatus(ResourceStatus &&value)
void SetErrorMessage(const Aws::String &value)
AWS_INSPECTOR2_API FailedAccount & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetResourceStatus(ResourceStatus &&value)
const Aws::String & GetErrorMessage() const
FailedAccount & WithErrorMessage(Aws::String &&value)
void SetAccountId(Aws::String &&value)
FailedAccount & WithErrorCode(const ErrorCode &value)
void SetErrorMessage(const char *value)
FailedAccount & WithAccountId(const char *value)
void SetErrorCode(const ErrorCode &value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_INSPECTOR2_API FailedAccount(Aws::Utils::Json::JsonView jsonValue)
FailedAccount & WithStatus(Status &&value)
FailedAccount & WithAccountId(const Aws::String &value)
void SetAccountId(const Aws::String &value)
FailedAccount & WithErrorMessage(const Aws::String &value)
void SetResourceStatus(const ResourceStatus &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue