AWS SDK for C++  1.8.71
AWS SDK for C++
ModifyClusterSubnetGroupRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Redshift
16 {
17 namespace Model
18 {
19 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "ModifyClusterSubnetGroup"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  protected:
39  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40 
41  public:
42 
46  inline const Aws::String& GetClusterSubnetGroupName() const{ return m_clusterSubnetGroupName; }
47 
51  inline bool ClusterSubnetGroupNameHasBeenSet() const { return m_clusterSubnetGroupNameHasBeenSet; }
52 
56  inline void SetClusterSubnetGroupName(const Aws::String& value) { m_clusterSubnetGroupNameHasBeenSet = true; m_clusterSubnetGroupName = value; }
57 
61  inline void SetClusterSubnetGroupName(Aws::String&& value) { m_clusterSubnetGroupNameHasBeenSet = true; m_clusterSubnetGroupName = std::move(value); }
62 
66  inline void SetClusterSubnetGroupName(const char* value) { m_clusterSubnetGroupNameHasBeenSet = true; m_clusterSubnetGroupName.assign(value); }
67 
71  inline ModifyClusterSubnetGroupRequest& WithClusterSubnetGroupName(const Aws::String& value) { SetClusterSubnetGroupName(value); return *this;}
72 
76  inline ModifyClusterSubnetGroupRequest& WithClusterSubnetGroupName(Aws::String&& value) { SetClusterSubnetGroupName(std::move(value)); return *this;}
77 
81  inline ModifyClusterSubnetGroupRequest& WithClusterSubnetGroupName(const char* value) { SetClusterSubnetGroupName(value); return *this;}
82 
83 
87  inline const Aws::String& GetDescription() const{ return m_description; }
88 
92  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
93 
97  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
98 
102  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
103 
107  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
108 
112  inline ModifyClusterSubnetGroupRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
113 
117  inline ModifyClusterSubnetGroupRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
118 
122  inline ModifyClusterSubnetGroupRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
123 
124 
129  inline const Aws::Vector<Aws::String>& GetSubnetIds() const{ return m_subnetIds; }
130 
135  inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
136 
141  inline void SetSubnetIds(const Aws::Vector<Aws::String>& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; }
142 
147  inline void SetSubnetIds(Aws::Vector<Aws::String>&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::move(value); }
148 
153  inline ModifyClusterSubnetGroupRequest& WithSubnetIds(const Aws::Vector<Aws::String>& value) { SetSubnetIds(value); return *this;}
154 
159  inline ModifyClusterSubnetGroupRequest& WithSubnetIds(Aws::Vector<Aws::String>&& value) { SetSubnetIds(std::move(value)); return *this;}
160 
165  inline ModifyClusterSubnetGroupRequest& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
166 
171  inline ModifyClusterSubnetGroupRequest& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; }
172 
177  inline ModifyClusterSubnetGroupRequest& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; }
178 
179  private:
180 
181  Aws::String m_clusterSubnetGroupName;
182  bool m_clusterSubnetGroupNameHasBeenSet;
183 
184  Aws::String m_description;
185  bool m_descriptionHasBeenSet;
186 
187  Aws::Vector<Aws::String> m_subnetIds;
188  bool m_subnetIdsHasBeenSet;
189  };
190 
191 } // namespace Model
192 } // namespace Redshift
193 } // namespace Aws
ModifyClusterSubnetGroupRequest & WithSubnetIds(const Aws::Vector< Aws::String > &value)
ModifyClusterSubnetGroupRequest & WithClusterSubnetGroupName(Aws::String &&value)
ModifyClusterSubnetGroupRequest & WithDescription(const char *value)
void SetSubnetIds(const Aws::Vector< Aws::String > &value)
ModifyClusterSubnetGroupRequest & WithDescription(Aws::String &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
ModifyClusterSubnetGroupRequest & AddSubnetIds(Aws::String &&value)
ModifyClusterSubnetGroupRequest & WithClusterSubnetGroupName(const Aws::String &value)
ModifyClusterSubnetGroupRequest & WithDescription(const Aws::String &value)
ModifyClusterSubnetGroupRequest & WithClusterSubnetGroupName(const char *value)
#define AWS_REDSHIFT_API
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ModifyClusterSubnetGroupRequest & WithSubnetIds(Aws::Vector< Aws::String > &&value)
ModifyClusterSubnetGroupRequest & AddSubnetIds(const Aws::String &value)
ModifyClusterSubnetGroupRequest & AddSubnetIds(const char *value)