AWS SDK for C++

AWS SDK for C++ Version 1.11.764

Loading...
Searching...
No Matches
AuditSuppression.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iot/IoT_EXPORTS.h>
10#include <aws/iot/model/ResourceIdentifier.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace IoT {
22namespace Model {
23
31 public:
32 AWS_IOT_API AuditSuppression() = default;
36
38
39 inline const Aws::String& GetCheckName() const { return m_checkName; }
40 inline bool CheckNameHasBeenSet() const { return m_checkNameHasBeenSet; }
41 template <typename CheckNameT = Aws::String>
42 void SetCheckName(CheckNameT&& value) {
43 m_checkNameHasBeenSet = true;
44 m_checkName = std::forward<CheckNameT>(value);
45 }
46 template <typename CheckNameT = Aws::String>
47 AuditSuppression& WithCheckName(CheckNameT&& value) {
48 SetCheckName(std::forward<CheckNameT>(value));
49 return *this;
50 }
52
54
55 inline const ResourceIdentifier& GetResourceIdentifier() const { return m_resourceIdentifier; }
56 inline bool ResourceIdentifierHasBeenSet() const { return m_resourceIdentifierHasBeenSet; }
57 template <typename ResourceIdentifierT = ResourceIdentifier>
58 void SetResourceIdentifier(ResourceIdentifierT&& value) {
59 m_resourceIdentifierHasBeenSet = true;
60 m_resourceIdentifier = std::forward<ResourceIdentifierT>(value);
61 }
62 template <typename ResourceIdentifierT = ResourceIdentifier>
63 AuditSuppression& WithResourceIdentifier(ResourceIdentifierT&& value) {
64 SetResourceIdentifier(std::forward<ResourceIdentifierT>(value));
65 return *this;
66 }
68
70
74 inline const Aws::Utils::DateTime& GetExpirationDate() const { return m_expirationDate; }
75 inline bool ExpirationDateHasBeenSet() const { return m_expirationDateHasBeenSet; }
76 template <typename ExpirationDateT = Aws::Utils::DateTime>
77 void SetExpirationDate(ExpirationDateT&& value) {
78 m_expirationDateHasBeenSet = true;
79 m_expirationDate = std::forward<ExpirationDateT>(value);
80 }
81 template <typename ExpirationDateT = Aws::Utils::DateTime>
82 AuditSuppression& WithExpirationDate(ExpirationDateT&& value) {
83 SetExpirationDate(std::forward<ExpirationDateT>(value));
84 return *this;
85 }
87
89
92 inline bool GetSuppressIndefinitely() const { return m_suppressIndefinitely; }
93 inline bool SuppressIndefinitelyHasBeenSet() const { return m_suppressIndefinitelyHasBeenSet; }
94 inline void SetSuppressIndefinitely(bool value) {
95 m_suppressIndefinitelyHasBeenSet = true;
96 m_suppressIndefinitely = value;
97 }
100 return *this;
101 }
103
105
108 inline const Aws::String& GetDescription() const { return m_description; }
109 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
110 template <typename DescriptionT = Aws::String>
111 void SetDescription(DescriptionT&& value) {
112 m_descriptionHasBeenSet = true;
113 m_description = std::forward<DescriptionT>(value);
114 }
115 template <typename DescriptionT = Aws::String>
116 AuditSuppression& WithDescription(DescriptionT&& value) {
117 SetDescription(std::forward<DescriptionT>(value));
118 return *this;
119 }
121 private:
122 Aws::String m_checkName;
123
124 ResourceIdentifier m_resourceIdentifier;
125
126 Aws::Utils::DateTime m_expirationDate{};
127
128 bool m_suppressIndefinitely{false};
129
130 Aws::String m_description;
131 bool m_checkNameHasBeenSet = false;
132 bool m_resourceIdentifierHasBeenSet = false;
133 bool m_expirationDateHasBeenSet = false;
134 bool m_suppressIndefinitelyHasBeenSet = false;
135 bool m_descriptionHasBeenSet = false;
136};
137
138} // namespace Model
139} // namespace IoT
140} // namespace Aws
AuditSuppression & WithSuppressIndefinitely(bool value)
void SetCheckName(CheckNameT &&value)
const Aws::String & GetDescription() const
AWS_IOT_API AuditSuppression()=default
void SetResourceIdentifier(ResourceIdentifierT &&value)
AuditSuppression & WithDescription(DescriptionT &&value)
const Aws::String & GetCheckName() const
void SetExpirationDate(ExpirationDateT &&value)
AWS_IOT_API AuditSuppression(Aws::Utils::Json::JsonView jsonValue)
AWS_IOT_API AuditSuppression & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDescription(DescriptionT &&value)
const Aws::Utils::DateTime & GetExpirationDate() const
AuditSuppression & WithResourceIdentifier(ResourceIdentifierT &&value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
AuditSuppression & WithCheckName(CheckNameT &&value)
AuditSuppression & WithExpirationDate(ExpirationDateT &&value)
const ResourceIdentifier & GetResourceIdentifier() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue