AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 AttachmentErrorCode GetCode() const { return m_code; }
47 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
48 inline void SetCode(AttachmentErrorCode value) { m_codeHasBeenSet = true; m_code = value; }
49 inline AttachmentError& WithCode(AttachmentErrorCode value) { SetCode(value); return *this;}
51
53
56 inline const Aws::String& GetMessage() const { return m_message; }
57 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
58 template<typename MessageT = Aws::String>
59 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
60 template<typename MessageT = Aws::String>
61 AttachmentError& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
63
65
68 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
69 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
70 template<typename ResourceArnT = Aws::String>
71 void SetResourceArn(ResourceArnT&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::forward<ResourceArnT>(value); }
72 template<typename ResourceArnT = Aws::String>
73 AttachmentError& WithResourceArn(ResourceArnT&& value) { SetResourceArn(std::forward<ResourceArnT>(value)); return *this;}
75
77
80 inline const Aws::String& GetRequestId() const { return m_requestId; }
81 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
82 template<typename RequestIdT = Aws::String>
83 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
84 template<typename RequestIdT = Aws::String>
85 AttachmentError& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
87 private:
88
90 bool m_codeHasBeenSet = false;
91
92 Aws::String m_message;
93 bool m_messageHasBeenSet = false;
94
95 Aws::String m_resourceArn;
96 bool m_resourceArnHasBeenSet = false;
97
98 Aws::String m_requestId;
99 bool m_requestIdHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace NetworkManager
104} // namespace Aws
AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_NETWORKMANAGER_API AttachmentError(Aws::Utils::Json::JsonView jsonValue)
AttachmentError & WithRequestId(RequestIdT &&value)
void SetCode(AttachmentErrorCode value)
AWS_NETWORKMANAGER_API AttachmentError()=default
AttachmentError & WithCode(AttachmentErrorCode value)
AttachmentError & WithResourceArn(ResourceArnT &&value)
AWS_NETWORKMANAGER_API AttachmentError & operator=(Aws::Utils::Json::JsonView jsonValue)
AttachmentError & WithMessage(MessageT &&value)
const Aws::String & GetResourceArn() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue