AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
49 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
50 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
51 inline FreeTrialInfoError& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
52 inline FreeTrialInfoError& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
53 inline FreeTrialInfoError& WithAccountId(const char* value) { SetAccountId(value); return *this;}
55
57
60 inline const FreeTrialInfoErrorCode& GetCode() const{ return m_code; }
61 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
62 inline void SetCode(const FreeTrialInfoErrorCode& value) { m_codeHasBeenSet = true; m_code = value; }
63 inline void SetCode(FreeTrialInfoErrorCode&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
64 inline FreeTrialInfoError& WithCode(const FreeTrialInfoErrorCode& value) { SetCode(value); return *this;}
65 inline FreeTrialInfoError& WithCode(FreeTrialInfoErrorCode&& value) { SetCode(std::move(value)); return *this;}
67
69
72 inline const Aws::String& GetMessage() const{ return m_message; }
73 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
74 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
75 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
76 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
77 inline FreeTrialInfoError& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
78 inline FreeTrialInfoError& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
79 inline FreeTrialInfoError& WithMessage(const char* value) { SetMessage(value); return *this;}
81 private:
82
83 Aws::String m_accountId;
84 bool m_accountIdHasBeenSet = false;
85
87 bool m_codeHasBeenSet = false;
88
89 Aws::String m_message;
90 bool m_messageHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace Inspector2
95} // namespace Aws
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCode(FreeTrialInfoErrorCode &&value)
FreeTrialInfoError & WithAccountId(const char *value)
void SetAccountId(const Aws::String &value)
FreeTrialInfoError & WithMessage(const char *value)
FreeTrialInfoError & WithMessage(const Aws::String &value)
FreeTrialInfoError & WithCode(const FreeTrialInfoErrorCode &value)
void SetMessage(const Aws::String &value)
FreeTrialInfoError & WithCode(FreeTrialInfoErrorCode &&value)
AWS_INSPECTOR2_API FreeTrialInfoError & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_INSPECTOR2_API FreeTrialInfoError(Aws::Utils::Json::JsonView jsonValue)
FreeTrialInfoError & WithAccountId(const Aws::String &value)
FreeTrialInfoError & WithAccountId(Aws::String &&value)
FreeTrialInfoError & WithMessage(Aws::String &&value)
const FreeTrialInfoErrorCode & GetCode() const
void SetCode(const FreeTrialInfoErrorCode &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue