AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateClusterSubnetGroupRequest.h
1
6#pragma once
7#include <aws/redshift/Redshift_EXPORTS.h>
8#include <aws/redshift/RedshiftRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/redshift/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Redshift
17{
18namespace Model
19{
20
27 {
28 public:
29 AWS_REDSHIFT_API CreateClusterSubnetGroupRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateClusterSubnetGroup"; }
36
37 AWS_REDSHIFT_API Aws::String SerializePayload() const override;
38
39 protected:
40 AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41
42 public:
43
45
53 inline const Aws::String& GetClusterSubnetGroupName() const { return m_clusterSubnetGroupName; }
54 inline bool ClusterSubnetGroupNameHasBeenSet() const { return m_clusterSubnetGroupNameHasBeenSet; }
55 template<typename ClusterSubnetGroupNameT = Aws::String>
56 void SetClusterSubnetGroupName(ClusterSubnetGroupNameT&& value) { m_clusterSubnetGroupNameHasBeenSet = true; m_clusterSubnetGroupName = std::forward<ClusterSubnetGroupNameT>(value); }
57 template<typename ClusterSubnetGroupNameT = Aws::String>
58 CreateClusterSubnetGroupRequest& WithClusterSubnetGroupName(ClusterSubnetGroupNameT&& value) { SetClusterSubnetGroupName(std::forward<ClusterSubnetGroupNameT>(value)); return *this;}
60
62
65 inline const Aws::String& GetDescription() const { return m_description; }
66 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
67 template<typename DescriptionT = Aws::String>
68 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
69 template<typename DescriptionT = Aws::String>
70 CreateClusterSubnetGroupRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
72
74
78 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
79 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
80 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
81 void SetSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::forward<SubnetIdsT>(value); }
82 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
83 CreateClusterSubnetGroupRequest& WithSubnetIds(SubnetIdsT&& value) { SetSubnetIds(std::forward<SubnetIdsT>(value)); return *this;}
84 template<typename SubnetIdsT = Aws::String>
85 CreateClusterSubnetGroupRequest& AddSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value)); return *this; }
87
89
92 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
93 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
94 template<typename TagsT = Aws::Vector<Tag>>
95 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
96 template<typename TagsT = Aws::Vector<Tag>>
97 CreateClusterSubnetGroupRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
98 template<typename TagsT = Tag>
99 CreateClusterSubnetGroupRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
101 private:
102
103 Aws::String m_clusterSubnetGroupName;
104 bool m_clusterSubnetGroupNameHasBeenSet = false;
105
106 Aws::String m_description;
107 bool m_descriptionHasBeenSet = false;
108
109 Aws::Vector<Aws::String> m_subnetIds;
110 bool m_subnetIdsHasBeenSet = false;
111
112 Aws::Vector<Tag> m_tags;
113 bool m_tagsHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace Redshift
118} // namespace Aws
CreateClusterSubnetGroupRequest & AddSubnetIds(SubnetIdsT &&value)
CreateClusterSubnetGroupRequest & WithClusterSubnetGroupName(ClusterSubnetGroupNameT &&value)
AWS_REDSHIFT_API CreateClusterSubnetGroupRequest()=default
CreateClusterSubnetGroupRequest & WithSubnetIds(SubnetIdsT &&value)
CreateClusterSubnetGroupRequest & WithTags(TagsT &&value)
AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_REDSHIFT_API Aws::String SerializePayload() const override
CreateClusterSubnetGroupRequest & AddTags(TagsT &&value)
CreateClusterSubnetGroupRequest & WithDescription(DescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector