7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/networkmanager/NetworkManager_EXPORTS.h>
9#include <aws/networkmanager/model/PeeringErrorCode.h>
10#include <aws/networkmanager/model/PermissionsErrorContext.h>
21namespace NetworkManager {
44 m_codeHasBeenSet =
true;
59 template <
typename MessageT = Aws::String>
61 m_messageHasBeenSet =
true;
62 m_message = std::forward<MessageT>(value);
64 template <
typename MessageT = Aws::String>
77 template <
typename ResourceArnT = Aws::String>
79 m_resourceArnHasBeenSet =
true;
80 m_resourceArn = std::forward<ResourceArnT>(value);
82 template <
typename ResourceArnT = Aws::String>
95 template <
typename RequestIdT = Aws::String>
97 m_requestIdHasBeenSet =
true;
98 m_requestId = std::forward<RequestIdT>(value);
100 template <
typename RequestIdT = Aws::String>
114 template <
typename MissingPermissionsContextT = PermissionsErrorContext>
116 m_missingPermissionsContextHasBeenSet =
true;
117 m_missingPermissionsContext = std::forward<MissingPermissionsContextT>(value);
119 template <
typename MissingPermissionsContextT = PermissionsErrorContext>
134 PermissionsErrorContext m_missingPermissionsContext;
135 bool m_codeHasBeenSet =
false;
136 bool m_messageHasBeenSet =
false;
137 bool m_resourceArnHasBeenSet =
false;
138 bool m_requestIdHasBeenSet =
false;
139 bool m_missingPermissionsContextHasBeenSet =
false;
AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
bool MessageHasBeenSet() const
PeeringError & WithMissingPermissionsContext(MissingPermissionsContextT &&value)
AWS_NETWORKMANAGER_API PeeringError()=default
bool RequestIdHasBeenSet() const
void SetCode(PeeringErrorCode value)
const Aws::String & GetMessage() const
bool CodeHasBeenSet() const
PeeringError & WithMessage(MessageT &&value)
void SetResourceArn(ResourceArnT &&value)
bool MissingPermissionsContextHasBeenSet() const
PeeringErrorCode GetCode() const
AWS_NETWORKMANAGER_API PeeringError & operator=(Aws::Utils::Json::JsonView jsonValue)
const PermissionsErrorContext & GetMissingPermissionsContext() const
void SetMessage(MessageT &&value)
const Aws::String & GetResourceArn() const
PeeringError & WithRequestId(RequestIdT &&value)
PeeringError & WithCode(PeeringErrorCode value)
void SetRequestId(RequestIdT &&value)
const Aws::String & GetRequestId() const
bool ResourceArnHasBeenSet() const
AWS_NETWORKMANAGER_API PeeringError(Aws::Utils::Json::JsonView jsonValue)
void SetMissingPermissionsContext(MissingPermissionsContextT &&value)
PeeringError & WithResourceArn(ResourceArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue