AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ModifyClusterSubnetGroupRequest.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
12#include <utility>
13
14namespace Aws {
15namespace Redshift {
16namespace Model {
17
24 public:
25 AWS_REDSHIFT_API ModifyClusterSubnetGroupRequest() = default;
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 "ModifyClusterSubnetGroup"; }
32
33 AWS_REDSHIFT_API Aws::String SerializePayload() const override;
34
35 protected:
36 AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
37
38 public:
40
43 inline const Aws::String& GetClusterSubnetGroupName() const { return m_clusterSubnetGroupName; }
44 inline bool ClusterSubnetGroupNameHasBeenSet() const { return m_clusterSubnetGroupNameHasBeenSet; }
45 template <typename ClusterSubnetGroupNameT = Aws::String>
46 void SetClusterSubnetGroupName(ClusterSubnetGroupNameT&& value) {
47 m_clusterSubnetGroupNameHasBeenSet = true;
48 m_clusterSubnetGroupName = std::forward<ClusterSubnetGroupNameT>(value);
49 }
50 template <typename ClusterSubnetGroupNameT = Aws::String>
52 SetClusterSubnetGroupName(std::forward<ClusterSubnetGroupNameT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetDescription() const { return m_description; }
62 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
63 template <typename DescriptionT = Aws::String>
64 void SetDescription(DescriptionT&& value) {
65 m_descriptionHasBeenSet = true;
66 m_description = std::forward<DescriptionT>(value);
67 }
68 template <typename DescriptionT = Aws::String>
70 SetDescription(std::forward<DescriptionT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
81 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
82 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
83 void SetSubnetIds(SubnetIdsT&& value) {
84 m_subnetIdsHasBeenSet = true;
85 m_subnetIds = std::forward<SubnetIdsT>(value);
86 }
87 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
89 SetSubnetIds(std::forward<SubnetIdsT>(value));
90 return *this;
91 }
92 template <typename SubnetIdsT = Aws::String>
94 m_subnetIdsHasBeenSet = true;
95 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
96 return *this;
97 }
99 private:
100 Aws::String m_clusterSubnetGroupName;
101
102 Aws::String m_description;
103
104 Aws::Vector<Aws::String> m_subnetIds;
105 bool m_clusterSubnetGroupNameHasBeenSet = false;
106 bool m_descriptionHasBeenSet = false;
107 bool m_subnetIdsHasBeenSet = false;
108};
109
110} // namespace Model
111} // namespace Redshift
112} // namespace Aws
ModifyClusterSubnetGroupRequest & WithDescription(DescriptionT &&value)
ModifyClusterSubnetGroupRequest & WithClusterSubnetGroupName(ClusterSubnetGroupNameT &&value)
AWS_REDSHIFT_API ModifyClusterSubnetGroupRequest()=default
AWS_REDSHIFT_API Aws::String SerializePayload() const override
AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ModifyClusterSubnetGroupRequest & AddSubnetIds(SubnetIdsT &&value)
ModifyClusterSubnetGroupRequest & WithSubnetIds(SubnetIdsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector