AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
CreateAuditSuppressionRequest.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/UUID.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/iot/IoTRequest.h>
11#include <aws/iot/IoT_EXPORTS.h>
12#include <aws/iot/model/ResourceIdentifier.h>
13
14#include <utility>
15
16namespace Aws {
17namespace IoT {
18namespace Model {
19
23 public:
24 AWS_IOT_API CreateAuditSuppressionRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateAuditSuppression"; }
31
32 AWS_IOT_API Aws::String SerializePayload() const override;
33
35
36 inline const Aws::String& GetCheckName() const { return m_checkName; }
37 inline bool CheckNameHasBeenSet() const { return m_checkNameHasBeenSet; }
38 template <typename CheckNameT = Aws::String>
39 void SetCheckName(CheckNameT&& value) {
40 m_checkNameHasBeenSet = true;
41 m_checkName = std::forward<CheckNameT>(value);
42 }
43 template <typename CheckNameT = Aws::String>
45 SetCheckName(std::forward<CheckNameT>(value));
46 return *this;
47 }
49
51
52 inline const ResourceIdentifier& GetResourceIdentifier() const { return m_resourceIdentifier; }
53 inline bool ResourceIdentifierHasBeenSet() const { return m_resourceIdentifierHasBeenSet; }
54 template <typename ResourceIdentifierT = ResourceIdentifier>
55 void SetResourceIdentifier(ResourceIdentifierT&& value) {
56 m_resourceIdentifierHasBeenSet = true;
57 m_resourceIdentifier = std::forward<ResourceIdentifierT>(value);
58 }
59 template <typename ResourceIdentifierT = ResourceIdentifier>
61 SetResourceIdentifier(std::forward<ResourceIdentifierT>(value));
62 return *this;
63 }
65
67
70 inline const Aws::Utils::DateTime& GetExpirationDate() const { return m_expirationDate; }
71 inline bool ExpirationDateHasBeenSet() const { return m_expirationDateHasBeenSet; }
72 template <typename ExpirationDateT = Aws::Utils::DateTime>
73 void SetExpirationDate(ExpirationDateT&& value) {
74 m_expirationDateHasBeenSet = true;
75 m_expirationDate = std::forward<ExpirationDateT>(value);
76 }
77 template <typename ExpirationDateT = Aws::Utils::DateTime>
79 SetExpirationDate(std::forward<ExpirationDateT>(value));
80 return *this;
81 }
83
85
88 inline bool GetSuppressIndefinitely() const { return m_suppressIndefinitely; }
89 inline bool SuppressIndefinitelyHasBeenSet() const { return m_suppressIndefinitelyHasBeenSet; }
90 inline void SetSuppressIndefinitely(bool value) {
91 m_suppressIndefinitelyHasBeenSet = true;
92 m_suppressIndefinitely = value;
93 }
96 return *this;
97 }
99
101
104 inline const Aws::String& GetDescription() const { return m_description; }
105 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
106 template <typename DescriptionT = Aws::String>
107 void SetDescription(DescriptionT&& value) {
108 m_descriptionHasBeenSet = true;
109 m_description = std::forward<DescriptionT>(value);
110 }
111 template <typename DescriptionT = Aws::String>
113 SetDescription(std::forward<DescriptionT>(value));
114 return *this;
115 }
117
119
125 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
126 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
127 template <typename ClientRequestTokenT = Aws::String>
128 void SetClientRequestToken(ClientRequestTokenT&& value) {
129 m_clientRequestTokenHasBeenSet = true;
130 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
131 }
132 template <typename ClientRequestTokenT = Aws::String>
134 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
135 return *this;
136 }
138 private:
139 Aws::String m_checkName;
140 bool m_checkNameHasBeenSet = false;
141
142 ResourceIdentifier m_resourceIdentifier;
143 bool m_resourceIdentifierHasBeenSet = false;
144
145 Aws::Utils::DateTime m_expirationDate{};
146 bool m_expirationDateHasBeenSet = false;
147
148 bool m_suppressIndefinitely{false};
149 bool m_suppressIndefinitelyHasBeenSet = false;
150
151 Aws::String m_description;
152 bool m_descriptionHasBeenSet = false;
153
154 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
155 bool m_clientRequestTokenHasBeenSet = true;
156};
157
158} // namespace Model
159} // namespace IoT
160} // namespace Aws
CreateAuditSuppressionRequest & WithClientRequestToken(ClientRequestTokenT &&value)
CreateAuditSuppressionRequest & WithSuppressIndefinitely(bool value)
CreateAuditSuppressionRequest & WithExpirationDate(ExpirationDateT &&value)
virtual const char * GetServiceRequestName() const override
CreateAuditSuppressionRequest & WithDescription(DescriptionT &&value)
CreateAuditSuppressionRequest & WithResourceIdentifier(ResourceIdentifierT &&value)
CreateAuditSuppressionRequest & WithCheckName(CheckNameT &&value)
AWS_IOT_API Aws::String SerializePayload() const override
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String