AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetMembershipAccountDetailError.h
1
6#pragma once
7#include <aws/security-ir/SecurityIR_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SecurityIR
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_SECURITYIR_API GetMembershipAccountDetailError() = default;
37 AWS_SECURITYIR_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline const Aws::String& GetAccountId() const { return m_accountId; }
45 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
46 template<typename AccountIdT = Aws::String>
47 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
48 template<typename AccountIdT = Aws::String>
49 GetMembershipAccountDetailError& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
51
53
56 inline const Aws::String& GetError() const { return m_error; }
57 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
58 template<typename ErrorT = Aws::String>
59 void SetError(ErrorT&& value) { m_errorHasBeenSet = true; m_error = std::forward<ErrorT>(value); }
60 template<typename ErrorT = Aws::String>
61 GetMembershipAccountDetailError& WithError(ErrorT&& value) { SetError(std::forward<ErrorT>(value)); return *this;}
63
65
68 inline const Aws::String& GetMessage() const { return m_message; }
69 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
70 template<typename MessageT = Aws::String>
71 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
72 template<typename MessageT = Aws::String>
73 GetMembershipAccountDetailError& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
75 private:
76
77 Aws::String m_accountId;
78 bool m_accountIdHasBeenSet = false;
79
80 Aws::String m_error;
81 bool m_errorHasBeenSet = false;
82
83 Aws::String m_message;
84 bool m_messageHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace SecurityIR
89} // namespace Aws
AWS_SECURITYIR_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SECURITYIR_API GetMembershipAccountDetailError(Aws::Utils::Json::JsonView jsonValue)
GetMembershipAccountDetailError & WithMessage(MessageT &&value)
AWS_SECURITYIR_API GetMembershipAccountDetailError & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYIR_API GetMembershipAccountDetailError()=default
GetMembershipAccountDetailError & WithAccountId(AccountIdT &&value)
GetMembershipAccountDetailError & WithError(ErrorT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue