AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateClusterSecurityGroupRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/redshift/RedshiftRequest.h>
10#include <aws/redshift/Redshift_EXPORTS.h>
11#include <aws/redshift/model/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Redshift {
17namespace Model {
18
25 public:
26 AWS_REDSHIFT_API CreateClusterSecurityGroupRequest() = default;
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 "CreateClusterSecurityGroup"; }
33
34 AWS_REDSHIFT_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
38
39 public:
41
49 inline const Aws::String& GetClusterSecurityGroupName() const { return m_clusterSecurityGroupName; }
50 inline bool ClusterSecurityGroupNameHasBeenSet() const { return m_clusterSecurityGroupNameHasBeenSet; }
51 template <typename ClusterSecurityGroupNameT = Aws::String>
52 void SetClusterSecurityGroupName(ClusterSecurityGroupNameT&& value) {
53 m_clusterSecurityGroupNameHasBeenSet = true;
54 m_clusterSecurityGroupName = std::forward<ClusterSecurityGroupNameT>(value);
55 }
56 template <typename ClusterSecurityGroupNameT = Aws::String>
58 SetClusterSecurityGroupName(std::forward<ClusterSecurityGroupNameT>(value));
59 return *this;
60 }
62
64
67 inline const Aws::String& GetDescription() const { return m_description; }
68 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
69 template <typename DescriptionT = Aws::String>
70 void SetDescription(DescriptionT&& value) {
71 m_descriptionHasBeenSet = true;
72 m_description = std::forward<DescriptionT>(value);
73 }
74 template <typename DescriptionT = Aws::String>
76 SetDescription(std::forward<DescriptionT>(value));
77 return *this;
78 }
80
82
85 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
86 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
87 template <typename TagsT = Aws::Vector<Tag>>
88 void SetTags(TagsT&& value) {
89 m_tagsHasBeenSet = true;
90 m_tags = std::forward<TagsT>(value);
91 }
92 template <typename TagsT = Aws::Vector<Tag>>
94 SetTags(std::forward<TagsT>(value));
95 return *this;
96 }
97 template <typename TagsT = Tag>
99 m_tagsHasBeenSet = true;
100 m_tags.emplace_back(std::forward<TagsT>(value));
101 return *this;
102 }
104 private:
105 Aws::String m_clusterSecurityGroupName;
106
107 Aws::String m_description;
108
109 Aws::Vector<Tag> m_tags;
110 bool m_clusterSecurityGroupNameHasBeenSet = false;
111 bool m_descriptionHasBeenSet = false;
112 bool m_tagsHasBeenSet = false;
113};
114
115} // namespace Model
116} // namespace Redshift
117} // namespace Aws
CreateClusterSecurityGroupRequest & WithClusterSecurityGroupName(ClusterSecurityGroupNameT &&value)
CreateClusterSecurityGroupRequest & WithDescription(DescriptionT &&value)
AWS_REDSHIFT_API Aws::String SerializePayload() const override
CreateClusterSecurityGroupRequest & AddTags(TagsT &&value)
CreateClusterSecurityGroupRequest & WithTags(TagsT &&value)
AWS_REDSHIFT_API CreateClusterSecurityGroupRequest()=default
AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector