AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AttachmentError.h
1
6#pragma once
7#include <aws/networkmanager/NetworkManager_EXPORTS.h>
8#include <aws/networkmanager/model/AttachmentErrorCode.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 AttachmentError();
37 AWS_NETWORKMANAGER_API AttachmentError(Aws::Utils::Json::JsonView jsonValue);
38 AWS_NETWORKMANAGER_API AttachmentError& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const AttachmentErrorCode& GetCode() const{ return m_code; }
47 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
48 inline void SetCode(const AttachmentErrorCode& value) { m_codeHasBeenSet = true; m_code = value; }
49 inline void SetCode(AttachmentErrorCode&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
50 inline AttachmentError& WithCode(const AttachmentErrorCode& value) { SetCode(value); return *this;}
51 inline AttachmentError& WithCode(AttachmentErrorCode&& 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 AttachmentError& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
64 inline AttachmentError& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
65 inline AttachmentError& 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 AttachmentError& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
78 inline AttachmentError& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
79 inline AttachmentError& 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 AttachmentError& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
92 inline AttachmentError& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
93 inline AttachmentError& 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
AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
AttachmentError & WithMessage(Aws::String &&value)
AttachmentError & WithResourceArn(const Aws::String &value)
AWS_NETWORKMANAGER_API AttachmentError(Aws::Utils::Json::JsonView jsonValue)
AttachmentError & WithMessage(const char *value)
AttachmentError & WithRequestId(const Aws::String &value)
AttachmentError & WithMessage(const Aws::String &value)
void SetCode(AttachmentErrorCode &&value)
void SetCode(const AttachmentErrorCode &value)
AttachmentError & WithRequestId(Aws::String &&value)
AttachmentError & WithResourceArn(const char *value)
AttachmentError & WithCode(AttachmentErrorCode &&value)
void SetRequestId(const Aws::String &value)
AttachmentError & WithResourceArn(Aws::String &&value)
AWS_NETWORKMANAGER_API AttachmentError()
AWS_NETWORKMANAGER_API AttachmentError & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetMessage(const Aws::String &value)
void SetResourceArn(const Aws::String &value)
AttachmentError & WithCode(const AttachmentErrorCode &value)
const AttachmentErrorCode & GetCode() const
const Aws::String & GetResourceArn() const
AttachmentError & WithRequestId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue