AWS SDK for C++

AWS SDK for C++ Version 1.11.837

Loading...
Searching...
No Matches
ResourceShareError.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/mq/MQ_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace MQ {
20namespace Model {
21
29 public:
30 AWS_MQ_API ResourceShareError() = default;
34
36
39 inline const Aws::String& GetErrorCode() const { return m_errorCode; }
40 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
41 template <typename ErrorCodeT = Aws::String>
42 void SetErrorCode(ErrorCodeT&& value) {
43 m_errorCodeHasBeenSet = true;
44 m_errorCode = std::forward<ErrorCodeT>(value);
45 }
46 template <typename ErrorCodeT = Aws::String>
47 ResourceShareError& WithErrorCode(ErrorCodeT&& value) {
48 SetErrorCode(std::forward<ErrorCodeT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetResourceShareArn() const { return m_resourceShareArn; }
58 inline bool ResourceShareArnHasBeenSet() const { return m_resourceShareArnHasBeenSet; }
59 template <typename ResourceShareArnT = Aws::String>
60 void SetResourceShareArn(ResourceShareArnT&& value) {
61 m_resourceShareArnHasBeenSet = true;
62 m_resourceShareArn = std::forward<ResourceShareArnT>(value);
63 }
64 template <typename ResourceShareArnT = Aws::String>
65 ResourceShareError& WithResourceShareArn(ResourceShareArnT&& value) {
66 SetResourceShareArn(std::forward<ResourceShareArnT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetStatus() const { return m_status; }
76 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
77 template <typename StatusT = Aws::String>
78 void SetStatus(StatusT&& value) {
79 m_statusHasBeenSet = true;
80 m_status = std::forward<StatusT>(value);
81 }
82 template <typename StatusT = Aws::String>
83 ResourceShareError& WithStatus(StatusT&& value) {
84 SetStatus(std::forward<StatusT>(value));
85 return *this;
86 }
88 private:
89 Aws::String m_errorCode;
90
91 Aws::String m_resourceShareArn;
92
93 Aws::String m_status;
94 bool m_errorCodeHasBeenSet = false;
95 bool m_resourceShareArnHasBeenSet = false;
96 bool m_statusHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace MQ
101} // namespace Aws
AWS_MQ_API ResourceShareError()=default
const Aws::String & GetStatus() const
ResourceShareError & WithErrorCode(ErrorCodeT &&value)
AWS_MQ_API ResourceShareError & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetErrorCode() const
void SetErrorCode(ErrorCodeT &&value)
AWS_MQ_API Aws::Utils::Json::JsonValue Jsonize() const
ResourceShareError & WithStatus(StatusT &&value)
ResourceShareError & WithResourceShareArn(ResourceShareArnT &&value)
void SetResourceShareArn(ResourceShareArnT &&value)
const Aws::String & GetResourceShareArn() const
AWS_MQ_API ResourceShareError(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue