AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AllowListStatus.h
1
6#pragma once
7#include <aws/macie2/Macie2_EXPORTS.h>
8#include <aws/macie2/model/AllowListStatusCode.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 Macie2
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_MACIE2_API AllowListStatus();
40 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
76 inline const AllowListStatusCode& GetCode() const{ return m_code; }
77 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
78 inline void SetCode(const AllowListStatusCode& value) { m_codeHasBeenSet = true; m_code = value; }
79 inline void SetCode(AllowListStatusCode&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
80 inline AllowListStatus& WithCode(const AllowListStatusCode& value) { SetCode(value); return *this;}
81 inline AllowListStatus& WithCode(AllowListStatusCode&& value) { SetCode(std::move(value)); return *this;}
83
85
90 inline const Aws::String& GetDescription() const{ return m_description; }
91 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
92 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
93 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
94 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
95 inline AllowListStatus& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
96 inline AllowListStatus& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
97 inline AllowListStatus& WithDescription(const char* value) { SetDescription(value); return *this;}
99 private:
100
101 AllowListStatusCode m_code;
102 bool m_codeHasBeenSet = false;
103
104 Aws::String m_description;
105 bool m_descriptionHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace Macie2
110} // namespace Aws
AWS_MACIE2_API AllowListStatus(Aws::Utils::Json::JsonView jsonValue)
void SetDescription(Aws::String &&value)
AWS_MACIE2_API AllowListStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
AllowListStatus & WithDescription(const Aws::String &value)
AllowListStatus & WithDescription(const char *value)
const Aws::String & GetDescription() const
AllowListStatus & WithDescription(Aws::String &&value)
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCode(AllowListStatusCode &&value)
void SetCode(const AllowListStatusCode &value)
AllowListStatus & WithCode(AllowListStatusCode &&value)
const AllowListStatusCode & GetCode() const
void SetDescription(const Aws::String &value)
void SetDescription(const char *value)
AllowListStatus & WithCode(const AllowListStatusCode &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue