AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
AllowListStatus.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/macie2/Macie2_EXPORTS.h>
9#include <aws/macie2/model/AllowListStatusCode.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Macie2 {
21namespace Model {
22
31 public:
32 AWS_MACIE2_API AllowListStatus() = default;
35 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
70 inline AllowListStatusCode GetCode() const { return m_code; }
71 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
72 inline void SetCode(AllowListStatusCode value) {
73 m_codeHasBeenSet = true;
74 m_code = value;
75 }
77 SetCode(value);
78 return *this;
79 }
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) {
92 m_descriptionHasBeenSet = true;
93 m_description = std::forward<DescriptionT>(value);
94 }
95 template <typename DescriptionT = Aws::String>
96 AllowListStatus& WithDescription(DescriptionT&& value) {
97 SetDescription(std::forward<DescriptionT>(value));
98 return *this;
99 }
101 private:
103
104 Aws::String m_description;
105 bool m_codeHasBeenSet = false;
106 bool m_descriptionHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace Macie2
111} // 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