AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
UpdateConfigurationPolicyRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/securityhub/SecurityHubRequest.h>
9#include <aws/securityhub/SecurityHub_EXPORTS.h>
10#include <aws/securityhub/model/Policy.h>
11
12#include <utility>
13
14namespace Aws {
15namespace SecurityHub {
16namespace Model {
17
21 public:
22 AWS_SECURITYHUB_API UpdateConfigurationPolicyRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "UpdateConfigurationPolicy"; }
29
30 AWS_SECURITYHUB_API Aws::String SerializePayload() const override;
31
33
37 inline const Aws::String& GetIdentifier() const { return m_identifier; }
38 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
39 template <typename IdentifierT = Aws::String>
40 void SetIdentifier(IdentifierT&& value) {
41 m_identifierHasBeenSet = true;
42 m_identifier = std::forward<IdentifierT>(value);
43 }
44 template <typename IdentifierT = Aws::String>
46 SetIdentifier(std::forward<IdentifierT>(value));
47 return *this;
48 }
50
52
56 inline const Aws::String& GetName() const { return m_name; }
57 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
58 template <typename NameT = Aws::String>
59 void SetName(NameT&& value) {
60 m_nameHasBeenSet = true;
61 m_name = std::forward<NameT>(value);
62 }
63 template <typename NameT = Aws::String>
65 SetName(std::forward<NameT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetDescription() const { return m_description; }
75 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
76 template <typename DescriptionT = Aws::String>
77 void SetDescription(DescriptionT&& value) {
78 m_descriptionHasBeenSet = true;
79 m_description = std::forward<DescriptionT>(value);
80 }
81 template <typename DescriptionT = Aws::String>
83 SetDescription(std::forward<DescriptionT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetUpdatedReason() const { return m_updatedReason; }
93 inline bool UpdatedReasonHasBeenSet() const { return m_updatedReasonHasBeenSet; }
94 template <typename UpdatedReasonT = Aws::String>
95 void SetUpdatedReason(UpdatedReasonT&& value) {
96 m_updatedReasonHasBeenSet = true;
97 m_updatedReason = std::forward<UpdatedReasonT>(value);
98 }
99 template <typename UpdatedReasonT = Aws::String>
101 SetUpdatedReason(std::forward<UpdatedReasonT>(value));
102 return *this;
103 }
105
107
120 inline const Policy& GetConfigurationPolicy() const { return m_configurationPolicy; }
121 inline bool ConfigurationPolicyHasBeenSet() const { return m_configurationPolicyHasBeenSet; }
122 template <typename ConfigurationPolicyT = Policy>
123 void SetConfigurationPolicy(ConfigurationPolicyT&& value) {
124 m_configurationPolicyHasBeenSet = true;
125 m_configurationPolicy = std::forward<ConfigurationPolicyT>(value);
126 }
127 template <typename ConfigurationPolicyT = Policy>
129 SetConfigurationPolicy(std::forward<ConfigurationPolicyT>(value));
130 return *this;
131 }
133 private:
134 Aws::String m_identifier;
135
136 Aws::String m_name;
137
138 Aws::String m_description;
139
140 Aws::String m_updatedReason;
141
142 Policy m_configurationPolicy;
143 bool m_identifierHasBeenSet = false;
144 bool m_nameHasBeenSet = false;
145 bool m_descriptionHasBeenSet = false;
146 bool m_updatedReasonHasBeenSet = false;
147 bool m_configurationPolicyHasBeenSet = false;
148};
149
150} // namespace Model
151} // namespace SecurityHub
152} // namespace Aws
UpdateConfigurationPolicyRequest & WithIdentifier(IdentifierT &&value)
UpdateConfigurationPolicyRequest & WithUpdatedReason(UpdatedReasonT &&value)
UpdateConfigurationPolicyRequest & WithConfigurationPolicy(ConfigurationPolicyT &&value)
AWS_SECURITYHUB_API UpdateConfigurationPolicyRequest()=default
AWS_SECURITYHUB_API Aws::String SerializePayload() const override
UpdateConfigurationPolicyRequest & WithDescription(DescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String