AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ShareError.h
1
6#pragma once
7#include <aws/servicecatalog/ServiceCatalog_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.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 ServiceCatalog
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_SERVICECATALOG_API ShareError();
37 AWS_SERVICECATALOG_API ShareError(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SERVICECATALOG_API ShareError& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SERVICECATALOG_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::Vector<Aws::String>& GetAccounts() const{ return m_accounts; }
47 inline bool AccountsHasBeenSet() const { return m_accountsHasBeenSet; }
48 inline void SetAccounts(const Aws::Vector<Aws::String>& value) { m_accountsHasBeenSet = true; m_accounts = value; }
49 inline void SetAccounts(Aws::Vector<Aws::String>&& value) { m_accountsHasBeenSet = true; m_accounts = std::move(value); }
50 inline ShareError& WithAccounts(const Aws::Vector<Aws::String>& value) { SetAccounts(value); return *this;}
51 inline ShareError& WithAccounts(Aws::Vector<Aws::String>&& value) { SetAccounts(std::move(value)); return *this;}
52 inline ShareError& AddAccounts(const Aws::String& value) { m_accountsHasBeenSet = true; m_accounts.push_back(value); return *this; }
53 inline ShareError& AddAccounts(Aws::String&& value) { m_accountsHasBeenSet = true; m_accounts.push_back(std::move(value)); return *this; }
54 inline ShareError& AddAccounts(const char* value) { m_accountsHasBeenSet = true; m_accounts.push_back(value); return *this; }
56
58
61 inline const Aws::String& GetMessage() const{ return m_message; }
62 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
63 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
64 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
65 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
66 inline ShareError& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
67 inline ShareError& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
68 inline ShareError& WithMessage(const char* value) { SetMessage(value); return *this;}
70
72
75 inline const Aws::String& GetError() const{ return m_error; }
76 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
77 inline void SetError(const Aws::String& value) { m_errorHasBeenSet = true; m_error = value; }
78 inline void SetError(Aws::String&& value) { m_errorHasBeenSet = true; m_error = std::move(value); }
79 inline void SetError(const char* value) { m_errorHasBeenSet = true; m_error.assign(value); }
80 inline ShareError& WithError(const Aws::String& value) { SetError(value); return *this;}
81 inline ShareError& WithError(Aws::String&& value) { SetError(std::move(value)); return *this;}
82 inline ShareError& WithError(const char* value) { SetError(value); return *this;}
84 private:
85
86 Aws::Vector<Aws::String> m_accounts;
87 bool m_accountsHasBeenSet = false;
88
89 Aws::String m_message;
90 bool m_messageHasBeenSet = false;
91
92 Aws::String m_error;
93 bool m_errorHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace ServiceCatalog
98} // namespace Aws
ShareError & WithMessage(const Aws::String &value)
Definition ShareError.h:66
ShareError & WithError(const Aws::String &value)
Definition ShareError.h:80
AWS_SERVICECATALOG_API ShareError(Aws::Utils::Json::JsonView jsonValue)
AWS_SERVICECATALOG_API ShareError & operator=(Aws::Utils::Json::JsonView jsonValue)
ShareError & AddAccounts(const char *value)
Definition ShareError.h:54
void SetError(Aws::String &&value)
Definition ShareError.h:78
ShareError & WithMessage(const char *value)
Definition ShareError.h:68
void SetMessage(const Aws::String &value)
Definition ShareError.h:63
void SetError(const char *value)
Definition ShareError.h:79
void SetAccounts(const Aws::Vector< Aws::String > &value)
Definition ShareError.h:48
ShareError & WithError(const char *value)
Definition ShareError.h:82
void SetError(const Aws::String &value)
Definition ShareError.h:77
void SetAccounts(Aws::Vector< Aws::String > &&value)
Definition ShareError.h:49
const Aws::Vector< Aws::String > & GetAccounts() const
Definition ShareError.h:46
const Aws::String & GetMessage() const
Definition ShareError.h:61
const Aws::String & GetError() const
Definition ShareError.h:75
void SetMessage(Aws::String &&value)
Definition ShareError.h:64
AWS_SERVICECATALOG_API ShareError()
AWS_SERVICECATALOG_API Aws::Utils::Json::JsonValue Jsonize() const
ShareError & WithError(Aws::String &&value)
Definition ShareError.h:81
ShareError & WithMessage(Aws::String &&value)
Definition ShareError.h:67
ShareError & WithAccounts(Aws::Vector< Aws::String > &&value)
Definition ShareError.h:51
void SetMessage(const char *value)
Definition ShareError.h:65
ShareError & WithAccounts(const Aws::Vector< Aws::String > &value)
Definition ShareError.h:50
ShareError & AddAccounts(Aws::String &&value)
Definition ShareError.h:53
ShareError & AddAccounts(const Aws::String &value)
Definition ShareError.h:52
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue