AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PeeringError.h
1
6#pragma once
7#include <aws/networkmanager/NetworkManager_EXPORTS.h>
8#include <aws/networkmanager/model/PeeringErrorCode.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/networkmanager/model/PermissionsErrorContext.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 NetworkManager
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_NETWORKMANAGER_API PeeringError();
38 AWS_NETWORKMANAGER_API PeeringError(Aws::Utils::Json::JsonView jsonValue);
39 AWS_NETWORKMANAGER_API PeeringError& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const PeeringErrorCode& GetCode() const{ return m_code; }
48 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
49 inline void SetCode(const PeeringErrorCode& value) { m_codeHasBeenSet = true; m_code = value; }
50 inline void SetCode(PeeringErrorCode&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
51 inline PeeringError& WithCode(const PeeringErrorCode& value) { SetCode(value); return *this;}
52 inline PeeringError& WithCode(PeeringErrorCode&& value) { SetCode(std::move(value)); return *this;}
54
56
59 inline const Aws::String& GetMessage() const{ return m_message; }
60 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
61 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
62 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
63 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
64 inline PeeringError& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
65 inline PeeringError& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
66 inline PeeringError& WithMessage(const char* value) { SetMessage(value); return *this;}
68
70
73 inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
74 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
75 inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
76 inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
77 inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
78 inline PeeringError& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
79 inline PeeringError& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
80 inline PeeringError& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
82
84
87 inline const Aws::String& GetRequestId() const{ return m_requestId; }
88 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
89 inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; }
90 inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); }
91 inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); }
92 inline PeeringError& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
93 inline PeeringError& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
94 inline PeeringError& WithRequestId(const char* value) { SetRequestId(value); return *this;}
96
98
102 inline const PermissionsErrorContext& GetMissingPermissionsContext() const{ return m_missingPermissionsContext; }
103 inline bool MissingPermissionsContextHasBeenSet() const { return m_missingPermissionsContextHasBeenSet; }
104 inline void SetMissingPermissionsContext(const PermissionsErrorContext& value) { m_missingPermissionsContextHasBeenSet = true; m_missingPermissionsContext = value; }
105 inline void SetMissingPermissionsContext(PermissionsErrorContext&& value) { m_missingPermissionsContextHasBeenSet = true; m_missingPermissionsContext = std::move(value); }
109 private:
110
111 PeeringErrorCode m_code;
112 bool m_codeHasBeenSet = false;
113
114 Aws::String m_message;
115 bool m_messageHasBeenSet = false;
116
117 Aws::String m_resourceArn;
118 bool m_resourceArnHasBeenSet = false;
119
120 Aws::String m_requestId;
121 bool m_requestIdHasBeenSet = false;
122
123 PermissionsErrorContext m_missingPermissionsContext;
124 bool m_missingPermissionsContextHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace NetworkManager
129} // namespace Aws
AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_NETWORKMANAGER_API PeeringError()
void SetResourceArn(Aws::String &&value)
PeeringError & WithMissingPermissionsContext(const PermissionsErrorContext &value)
PeeringError & WithResourceArn(const char *value)
void SetMessage(Aws::String &&value)
PeeringError & WithResourceArn(const Aws::String &value)
const Aws::String & GetMessage() const
PeeringError & WithResourceArn(Aws::String &&value)
PeeringError & WithRequestId(Aws::String &&value)
PeeringError & WithMessage(const char *value)
void SetResourceArn(const Aws::String &value)
void SetResourceArn(const char *value)
PeeringError & WithRequestId(const char *value)
void SetMissingPermissionsContext(PermissionsErrorContext &&value)
PeeringError & WithMessage(const Aws::String &value)
PeeringError & WithCode(PeeringErrorCode &&value)
AWS_NETWORKMANAGER_API PeeringError & operator=(Aws::Utils::Json::JsonView jsonValue)
const PermissionsErrorContext & GetMissingPermissionsContext() const
void SetMessage(const Aws::String &value)
PeeringError & WithMessage(Aws::String &&value)
void SetRequestId(Aws::String &&value)
void SetCode(const PeeringErrorCode &value)
PeeringError & WithRequestId(const Aws::String &value)
const Aws::String & GetResourceArn() const
void SetRequestId(const Aws::String &value)
PeeringError & WithMissingPermissionsContext(PermissionsErrorContext &&value)
const Aws::String & GetRequestId() const
PeeringError & WithCode(const PeeringErrorCode &value)
AWS_NETWORKMANAGER_API PeeringError(Aws::Utils::Json::JsonView jsonValue)
void SetMissingPermissionsContext(const PermissionsErrorContext &value)
void SetCode(PeeringErrorCode &&value)
const PeeringErrorCode & GetCode() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue