AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateAuditSuppressionRequest.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/iot/IoTRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/iot/model/ResourceIdentifier.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace IoT
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_IOT_API CreateAuditSuppressionRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateAuditSuppression"; }
34
35 AWS_IOT_API Aws::String SerializePayload() const override;
36
37
39
40 inline const Aws::String& GetCheckName() const { return m_checkName; }
41 inline bool CheckNameHasBeenSet() const { return m_checkNameHasBeenSet; }
42 template<typename CheckNameT = Aws::String>
43 void SetCheckName(CheckNameT&& value) { m_checkNameHasBeenSet = true; m_checkName = std::forward<CheckNameT>(value); }
44 template<typename CheckNameT = Aws::String>
45 CreateAuditSuppressionRequest& WithCheckName(CheckNameT&& value) { SetCheckName(std::forward<CheckNameT>(value)); return *this;}
47
49
50 inline const ResourceIdentifier& GetResourceIdentifier() const { return m_resourceIdentifier; }
51 inline bool ResourceIdentifierHasBeenSet() const { return m_resourceIdentifierHasBeenSet; }
52 template<typename ResourceIdentifierT = ResourceIdentifier>
53 void SetResourceIdentifier(ResourceIdentifierT&& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier = std::forward<ResourceIdentifierT>(value); }
54 template<typename ResourceIdentifierT = ResourceIdentifier>
55 CreateAuditSuppressionRequest& WithResourceIdentifier(ResourceIdentifierT&& value) { SetResourceIdentifier(std::forward<ResourceIdentifierT>(value)); return *this;}
57
59
62 inline const Aws::Utils::DateTime& GetExpirationDate() const { return m_expirationDate; }
63 inline bool ExpirationDateHasBeenSet() const { return m_expirationDateHasBeenSet; }
64 template<typename ExpirationDateT = Aws::Utils::DateTime>
65 void SetExpirationDate(ExpirationDateT&& value) { m_expirationDateHasBeenSet = true; m_expirationDate = std::forward<ExpirationDateT>(value); }
66 template<typename ExpirationDateT = Aws::Utils::DateTime>
67 CreateAuditSuppressionRequest& WithExpirationDate(ExpirationDateT&& value) { SetExpirationDate(std::forward<ExpirationDateT>(value)); return *this;}
69
71
74 inline bool GetSuppressIndefinitely() const { return m_suppressIndefinitely; }
75 inline bool SuppressIndefinitelyHasBeenSet() const { return m_suppressIndefinitelyHasBeenSet; }
76 inline void SetSuppressIndefinitely(bool value) { m_suppressIndefinitelyHasBeenSet = true; m_suppressIndefinitely = value; }
79
81
84 inline const Aws::String& GetDescription() const { return m_description; }
85 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
86 template<typename DescriptionT = Aws::String>
87 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
88 template<typename DescriptionT = Aws::String>
89 CreateAuditSuppressionRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
91
93
99 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
100 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
101 template<typename ClientRequestTokenT = Aws::String>
102 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
103 template<typename ClientRequestTokenT = Aws::String>
104 CreateAuditSuppressionRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
106 private:
107
108 Aws::String m_checkName;
109 bool m_checkNameHasBeenSet = false;
110
111 ResourceIdentifier m_resourceIdentifier;
112 bool m_resourceIdentifierHasBeenSet = false;
113
114 Aws::Utils::DateTime m_expirationDate{};
115 bool m_expirationDateHasBeenSet = false;
116
117 bool m_suppressIndefinitely{false};
118 bool m_suppressIndefinitelyHasBeenSet = false;
119
120 Aws::String m_description;
121 bool m_descriptionHasBeenSet = false;
122
123 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
124 bool m_clientRequestTokenHasBeenSet = true;
125 };
126
127} // namespace Model
128} // namespace IoT
129} // 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