AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
FreeTrialInfoError.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/inspector2/model/FreeTrialInfoErrorCode.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 Inspector2
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_INSPECTOR2_API FreeTrialInfoError() = default;
37 AWS_INSPECTOR2_API FreeTrialInfoError(Aws::Utils::Json::JsonView jsonValue);
39 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetAccountId() const { return m_accountId; }
47 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
48 template<typename AccountIdT = Aws::String>
49 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
50 template<typename AccountIdT = Aws::String>
51 FreeTrialInfoError& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
53
55
58 inline FreeTrialInfoErrorCode GetCode() const { return m_code; }
59 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
60 inline void SetCode(FreeTrialInfoErrorCode value) { m_codeHasBeenSet = true; m_code = value; }
61 inline FreeTrialInfoError& WithCode(FreeTrialInfoErrorCode value) { SetCode(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 FreeTrialInfoError& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
75 private:
76
77 Aws::String m_accountId;
78 bool m_accountIdHasBeenSet = false;
79
81 bool m_codeHasBeenSet = false;
82
83 Aws::String m_message;
84 bool m_messageHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace Inspector2
89} // namespace Aws
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
FreeTrialInfoError & WithAccountId(AccountIdT &&value)
void SetCode(FreeTrialInfoErrorCode value)
AWS_INSPECTOR2_API FreeTrialInfoError & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_INSPECTOR2_API FreeTrialInfoError(Aws::Utils::Json::JsonView jsonValue)
FreeTrialInfoError & WithMessage(MessageT &&value)
FreeTrialInfoError & WithCode(FreeTrialInfoErrorCode value)
AWS_INSPECTOR2_API FreeTrialInfoError()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue