AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ConnectPeerError.h
1
6#pragma once
7#include <aws/networkmanager/NetworkManager_EXPORTS.h>
8#include <aws/networkmanager/model/ConnectPeerErrorCode.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace NetworkManager
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_NETWORKMANAGER_API ConnectPeerError();
37 AWS_NETWORKMANAGER_API ConnectPeerError(Aws::Utils::Json::JsonView jsonValue);
38 AWS_NETWORKMANAGER_API ConnectPeerError& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const ConnectPeerErrorCode& GetCode() const{ return m_code; }
47 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
48 inline void SetCode(const ConnectPeerErrorCode& value) { m_codeHasBeenSet = true; m_code = value; }
49 inline void SetCode(ConnectPeerErrorCode&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
50 inline ConnectPeerError& WithCode(const ConnectPeerErrorCode& value) { SetCode(value); return *this;}
51 inline ConnectPeerError& WithCode(ConnectPeerErrorCode&& value) { SetCode(std::move(value)); return *this;}
53
55
58 inline const Aws::String& GetMessage() const{ return m_message; }
59 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
60 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
61 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
62 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
63 inline ConnectPeerError& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
64 inline ConnectPeerError& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
65 inline ConnectPeerError& WithMessage(const char* value) { SetMessage(value); return *this;}
67
69
72 inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
73 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
74 inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
75 inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
76 inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
77 inline ConnectPeerError& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
78 inline ConnectPeerError& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
79 inline ConnectPeerError& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
81
83
86 inline const Aws::String& GetRequestId() const{ return m_requestId; }
87 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
88 inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; }
89 inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); }
90 inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); }
91 inline ConnectPeerError& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
92 inline ConnectPeerError& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
93 inline ConnectPeerError& WithRequestId(const char* value) { SetRequestId(value); return *this;}
95 private:
96
98 bool m_codeHasBeenSet = false;
99
100 Aws::String m_message;
101 bool m_messageHasBeenSet = false;
102
103 Aws::String m_resourceArn;
104 bool m_resourceArnHasBeenSet = false;
105
106 Aws::String m_requestId;
107 bool m_requestIdHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace NetworkManager
112} // namespace Aws
ConnectPeerError & WithRequestId(Aws::String &&value)
ConnectPeerError & WithCode(const ConnectPeerErrorCode &value)
AWS_NETWORKMANAGER_API ConnectPeerError(Aws::Utils::Json::JsonView jsonValue)
ConnectPeerError & WithCode(ConnectPeerErrorCode &&value)
ConnectPeerError & WithResourceArn(Aws::String &&value)
AWS_NETWORKMANAGER_API ConnectPeerError & operator=(Aws::Utils::Json::JsonView jsonValue)
const ConnectPeerErrorCode & GetCode() const
AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
ConnectPeerError & WithResourceArn(const Aws::String &value)
ConnectPeerError & WithRequestId(const Aws::String &value)
ConnectPeerError & WithMessage(const char *value)
void SetResourceArn(const Aws::String &value)
ConnectPeerError & WithMessage(Aws::String &&value)
ConnectPeerError & WithMessage(const Aws::String &value)
void SetMessage(const Aws::String &value)
ConnectPeerError & WithResourceArn(const char *value)
void SetCode(const ConnectPeerErrorCode &value)
ConnectPeerError & WithRequestId(const char *value)
void SetRequestId(const Aws::String &value)
void SetCode(ConnectPeerErrorCode &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue