AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateConfigurationPolicyRequest.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 <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13
14namespace Aws
15{
16namespace SecurityHub
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_SECURITYHUB_API CreateConfigurationPolicyRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateConfigurationPolicy"; }
33
34 AWS_SECURITYHUB_API Aws::String SerializePayload() const override;
35
36
38
42 inline const Aws::String& GetName() const{ return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
45 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
46 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
47 inline CreateConfigurationPolicyRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
48 inline CreateConfigurationPolicyRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
49 inline CreateConfigurationPolicyRequest& WithName(const char* value) { SetName(value); return *this;}
51
53
56 inline const Aws::String& GetDescription() const{ return m_description; }
57 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
58 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
59 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
60 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
61 inline CreateConfigurationPolicyRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
62 inline CreateConfigurationPolicyRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
63 inline CreateConfigurationPolicyRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
65
67
77 inline const Policy& GetConfigurationPolicy() const{ return m_configurationPolicy; }
78 inline bool ConfigurationPolicyHasBeenSet() const { return m_configurationPolicyHasBeenSet; }
79 inline void SetConfigurationPolicy(const Policy& value) { m_configurationPolicyHasBeenSet = true; m_configurationPolicy = value; }
80 inline void SetConfigurationPolicy(Policy&& value) { m_configurationPolicyHasBeenSet = true; m_configurationPolicy = std::move(value); }
84
86
92 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
93 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
94 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
95 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
97 inline CreateConfigurationPolicyRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
98 inline CreateConfigurationPolicyRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
99 inline CreateConfigurationPolicyRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
100 inline CreateConfigurationPolicyRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
101 inline CreateConfigurationPolicyRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
102 inline CreateConfigurationPolicyRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
103 inline CreateConfigurationPolicyRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
104 inline CreateConfigurationPolicyRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
106 private:
107
108 Aws::String m_name;
109 bool m_nameHasBeenSet = false;
110
111 Aws::String m_description;
112 bool m_descriptionHasBeenSet = false;
113
114 Policy m_configurationPolicy;
115 bool m_configurationPolicyHasBeenSet = false;
116
118 bool m_tagsHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace SecurityHub
123} // namespace Aws
CreateConfigurationPolicyRequest & AddTags(Aws::String &&key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateConfigurationPolicyRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateConfigurationPolicyRequest & WithConfigurationPolicy(const Policy &value)
AWS_SECURITYHUB_API Aws::String SerializePayload() const override
CreateConfigurationPolicyRequest & AddTags(const char *key, const char *value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateConfigurationPolicyRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateConfigurationPolicyRequest & AddTags(Aws::String &&key, const char *value)
CreateConfigurationPolicyRequest & WithDescription(Aws::String &&value)
CreateConfigurationPolicyRequest & WithName(const Aws::String &value)
CreateConfigurationPolicyRequest & WithDescription(const Aws::String &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateConfigurationPolicyRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateConfigurationPolicyRequest & WithName(const char *value)
CreateConfigurationPolicyRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateConfigurationPolicyRequest & WithName(Aws::String &&value)
CreateConfigurationPolicyRequest & WithConfigurationPolicy(Policy &&value)
CreateConfigurationPolicyRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateConfigurationPolicyRequest & AddTags(const char *key, Aws::String &&value)
CreateConfigurationPolicyRequest & WithDescription(const char *value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String