AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateConfigurationPolicyRequest.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/securityhub/SecurityHubRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/securityhub/model/Policy.h>
11#include <utility>
12
13namespace Aws
14{
15namespace SecurityHub
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_SECURITYHUB_API UpdateConfigurationPolicyRequest();
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateConfigurationPolicy"; }
32
33 AWS_SECURITYHUB_API Aws::String SerializePayload() const override;
34
35
37
41 inline const Aws::String& GetIdentifier() const{ return m_identifier; }
42 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
43 inline void SetIdentifier(const Aws::String& value) { m_identifierHasBeenSet = true; m_identifier = value; }
44 inline void SetIdentifier(Aws::String&& value) { m_identifierHasBeenSet = true; m_identifier = std::move(value); }
45 inline void SetIdentifier(const char* value) { m_identifierHasBeenSet = true; m_identifier.assign(value); }
46 inline UpdateConfigurationPolicyRequest& WithIdentifier(const Aws::String& value) { SetIdentifier(value); return *this;}
47 inline UpdateConfigurationPolicyRequest& WithIdentifier(Aws::String&& value) { SetIdentifier(std::move(value)); return *this;}
48 inline UpdateConfigurationPolicyRequest& WithIdentifier(const char* value) { SetIdentifier(value); return *this;}
50
52
56 inline const Aws::String& GetName() const{ return m_name; }
57 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
58 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
59 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
60 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
61 inline UpdateConfigurationPolicyRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
62 inline UpdateConfigurationPolicyRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
63 inline UpdateConfigurationPolicyRequest& WithName(const char* value) { SetName(value); return *this;}
65
67
70 inline const Aws::String& GetDescription() const{ return m_description; }
71 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
72 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
73 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
74 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
75 inline UpdateConfigurationPolicyRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
76 inline UpdateConfigurationPolicyRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
77 inline UpdateConfigurationPolicyRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
79
81
84 inline const Aws::String& GetUpdatedReason() const{ return m_updatedReason; }
85 inline bool UpdatedReasonHasBeenSet() const { return m_updatedReasonHasBeenSet; }
86 inline void SetUpdatedReason(const Aws::String& value) { m_updatedReasonHasBeenSet = true; m_updatedReason = value; }
87 inline void SetUpdatedReason(Aws::String&& value) { m_updatedReasonHasBeenSet = true; m_updatedReason = std::move(value); }
88 inline void SetUpdatedReason(const char* value) { m_updatedReasonHasBeenSet = true; m_updatedReason.assign(value); }
90 inline UpdateConfigurationPolicyRequest& WithUpdatedReason(Aws::String&& value) { SetUpdatedReason(std::move(value)); return *this;}
91 inline UpdateConfigurationPolicyRequest& WithUpdatedReason(const char* value) { SetUpdatedReason(value); return *this;}
93
95
108 inline const Policy& GetConfigurationPolicy() const{ return m_configurationPolicy; }
109 inline bool ConfigurationPolicyHasBeenSet() const { return m_configurationPolicyHasBeenSet; }
110 inline void SetConfigurationPolicy(const Policy& value) { m_configurationPolicyHasBeenSet = true; m_configurationPolicy = value; }
111 inline void SetConfigurationPolicy(Policy&& value) { m_configurationPolicyHasBeenSet = true; m_configurationPolicy = std::move(value); }
115 private:
116
117 Aws::String m_identifier;
118 bool m_identifierHasBeenSet = false;
119
120 Aws::String m_name;
121 bool m_nameHasBeenSet = false;
122
123 Aws::String m_description;
124 bool m_descriptionHasBeenSet = false;
125
126 Aws::String m_updatedReason;
127 bool m_updatedReasonHasBeenSet = false;
128
129 Policy m_configurationPolicy;
130 bool m_configurationPolicyHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace SecurityHub
135} // namespace Aws
UpdateConfigurationPolicyRequest & WithName(const Aws::String &value)
UpdateConfigurationPolicyRequest & WithName(const char *value)
UpdateConfigurationPolicyRequest & WithDescription(Aws::String &&value)
UpdateConfigurationPolicyRequest & WithConfigurationPolicy(const Policy &value)
UpdateConfigurationPolicyRequest & WithDescription(const char *value)
UpdateConfigurationPolicyRequest & WithUpdatedReason(const char *value)
UpdateConfigurationPolicyRequest & WithDescription(const Aws::String &value)
UpdateConfigurationPolicyRequest & WithUpdatedReason(Aws::String &&value)
UpdateConfigurationPolicyRequest & WithIdentifier(const Aws::String &value)
UpdateConfigurationPolicyRequest & WithUpdatedReason(const Aws::String &value)
UpdateConfigurationPolicyRequest & WithName(Aws::String &&value)
UpdateConfigurationPolicyRequest & WithConfigurationPolicy(Policy &&value)
UpdateConfigurationPolicyRequest & WithIdentifier(Aws::String &&value)
AWS_SECURITYHUB_API Aws::String SerializePayload() const override
UpdateConfigurationPolicyRequest & WithIdentifier(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String