AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
40 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
76 inline AllowListStatusCode GetCode() const { return m_code; }
77 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
78 inline void SetCode(AllowListStatusCode value) { m_codeHasBeenSet = true; m_code = value; }
79 inline AllowListStatus& WithCode(AllowListStatusCode value) { SetCode(value); return *this;}
81
83
88 inline const Aws::String& GetDescription() const { return m_description; }
89 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
90 template<typename DescriptionT = Aws::String>
91 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
92 template<typename DescriptionT = Aws::String>
93 AllowListStatus& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
95 private:
96
98 bool m_codeHasBeenSet = false;
99
100 Aws::String m_description;
101 bool m_descriptionHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace Macie2
106} // namespace Aws
AWS_MACIE2_API AllowListStatus(Aws::Utils::Json::JsonView jsonValue)
AllowListStatusCode GetCode() const
AWS_MACIE2_API AllowListStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MACIE2_API AllowListStatus()=default
const Aws::String & GetDescription() const
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
AllowListStatus & WithCode(AllowListStatusCode value)
void SetCode(AllowListStatusCode value)
AllowListStatus & WithDescription(DescriptionT &&value)
void SetDescription(DescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue