7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/crt/cbor/Cbor.h>
10#include <aws/servicecatalog/ServiceCatalog_EXPORTS.h>
20namespace ServiceCatalog {
32 AWS_SERVICECATALOG_API
ShareError(
const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_SERVICECATALOG_API
ShareError&
operator=(
const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_SERVICECATALOG_API
void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder)
const;
42 template <
typename AccountsT = Aws::Vector<Aws::String>>
44 m_accountsHasBeenSet =
true;
45 m_accounts = std::forward<AccountsT>(value);
47 template <
typename AccountsT = Aws::Vector<Aws::String>>
52 template <
typename AccountsT = Aws::String>
54 m_accountsHasBeenSet =
true;
55 m_accounts.emplace_back(std::forward<AccountsT>(value));
66 template <
typename MessageT = Aws::String>
68 m_messageHasBeenSet =
true;
69 m_message = std::forward<MessageT>(value);
71 template <
typename MessageT = Aws::String>
84 template <
typename ErrorT = Aws::String>
86 m_errorHasBeenSet =
true;
87 m_error = std::forward<ErrorT>(value);
89 template <
typename ErrorT = Aws::String>
91 SetError(std::forward<ErrorT>(value));
101 bool m_accountsHasBeenSet =
false;
102 bool m_messageHasBeenSet =
false;
103 bool m_errorHasBeenSet =
false;
AWS_SERVICECATALOG_API ShareError()=default
void SetMessage(MessageT &&value)
void SetError(ErrorT &&value)
ShareError & WithError(ErrorT &&value)
AWS_SERVICECATALOG_API ShareError & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::Vector< Aws::String > & GetAccounts() const
bool ErrorHasBeenSet() const
AWS_SERVICECATALOG_API ShareError(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::String & GetMessage() const
const Aws::String & GetError() const
ShareError & WithAccounts(AccountsT &&value)
void SetAccounts(AccountsT &&value)
ShareError & AddAccounts(AccountsT &&value)
bool MessageHasBeenSet() const
AWS_SERVICECATALOG_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
ShareError & WithMessage(MessageT &&value)
bool AccountsHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector