1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/dax/DAX_EXPORTS.h> 8 #include <aws/dax/DAXRequest.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <aws/core/utils/memory/stl/AWSVector.h> 11 #include <utility> 12 13 namespace Aws 14 { 15 namespace DAX 16 { 17 namespace Model 18 { 19 20 /** 21 */ 22 class AWS_DAX_API UpdateSubnetGroupRequest : public DAXRequest 23 { 24 public: 25 UpdateSubnetGroupRequest(); 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. GetServiceRequestName()31 inline virtual const char* GetServiceRequestName() const override { return "UpdateSubnetGroup"; } 32 33 Aws::String SerializePayload() const override; 34 35 Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; 36 37 38 /** 39 * <p>The name of the subnet group.</p> 40 */ GetSubnetGroupName()41 inline const Aws::String& GetSubnetGroupName() const{ return m_subnetGroupName; } 42 43 /** 44 * <p>The name of the subnet group.</p> 45 */ SubnetGroupNameHasBeenSet()46 inline bool SubnetGroupNameHasBeenSet() const { return m_subnetGroupNameHasBeenSet; } 47 48 /** 49 * <p>The name of the subnet group.</p> 50 */ SetSubnetGroupName(const Aws::String & value)51 inline void SetSubnetGroupName(const Aws::String& value) { m_subnetGroupNameHasBeenSet = true; m_subnetGroupName = value; } 52 53 /** 54 * <p>The name of the subnet group.</p> 55 */ SetSubnetGroupName(Aws::String && value)56 inline void SetSubnetGroupName(Aws::String&& value) { m_subnetGroupNameHasBeenSet = true; m_subnetGroupName = std::move(value); } 57 58 /** 59 * <p>The name of the subnet group.</p> 60 */ SetSubnetGroupName(const char * value)61 inline void SetSubnetGroupName(const char* value) { m_subnetGroupNameHasBeenSet = true; m_subnetGroupName.assign(value); } 62 63 /** 64 * <p>The name of the subnet group.</p> 65 */ WithSubnetGroupName(const Aws::String & value)66 inline UpdateSubnetGroupRequest& WithSubnetGroupName(const Aws::String& value) { SetSubnetGroupName(value); return *this;} 67 68 /** 69 * <p>The name of the subnet group.</p> 70 */ WithSubnetGroupName(Aws::String && value)71 inline UpdateSubnetGroupRequest& WithSubnetGroupName(Aws::String&& value) { SetSubnetGroupName(std::move(value)); return *this;} 72 73 /** 74 * <p>The name of the subnet group.</p> 75 */ WithSubnetGroupName(const char * value)76 inline UpdateSubnetGroupRequest& WithSubnetGroupName(const char* value) { SetSubnetGroupName(value); return *this;} 77 78 79 /** 80 * <p>A description of the subnet group.</p> 81 */ GetDescription()82 inline const Aws::String& GetDescription() const{ return m_description; } 83 84 /** 85 * <p>A description of the subnet group.</p> 86 */ DescriptionHasBeenSet()87 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } 88 89 /** 90 * <p>A description of the subnet group.</p> 91 */ SetDescription(const Aws::String & value)92 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } 93 94 /** 95 * <p>A description of the subnet group.</p> 96 */ SetDescription(Aws::String && value)97 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } 98 99 /** 100 * <p>A description of the subnet group.</p> 101 */ SetDescription(const char * value)102 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } 103 104 /** 105 * <p>A description of the subnet group.</p> 106 */ WithDescription(const Aws::String & value)107 inline UpdateSubnetGroupRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} 108 109 /** 110 * <p>A description of the subnet group.</p> 111 */ WithDescription(Aws::String && value)112 inline UpdateSubnetGroupRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} 113 114 /** 115 * <p>A description of the subnet group.</p> 116 */ WithDescription(const char * value)117 inline UpdateSubnetGroupRequest& WithDescription(const char* value) { SetDescription(value); return *this;} 118 119 120 /** 121 * <p>A list of subnet IDs in the subnet group.</p> 122 */ GetSubnetIds()123 inline const Aws::Vector<Aws::String>& GetSubnetIds() const{ return m_subnetIds; } 124 125 /** 126 * <p>A list of subnet IDs in the subnet group.</p> 127 */ SubnetIdsHasBeenSet()128 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; } 129 130 /** 131 * <p>A list of subnet IDs in the subnet group.</p> 132 */ SetSubnetIds(const Aws::Vector<Aws::String> & value)133 inline void SetSubnetIds(const Aws::Vector<Aws::String>& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; } 134 135 /** 136 * <p>A list of subnet IDs in the subnet group.</p> 137 */ SetSubnetIds(Aws::Vector<Aws::String> && value)138 inline void SetSubnetIds(Aws::Vector<Aws::String>&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::move(value); } 139 140 /** 141 * <p>A list of subnet IDs in the subnet group.</p> 142 */ WithSubnetIds(const Aws::Vector<Aws::String> & value)143 inline UpdateSubnetGroupRequest& WithSubnetIds(const Aws::Vector<Aws::String>& value) { SetSubnetIds(value); return *this;} 144 145 /** 146 * <p>A list of subnet IDs in the subnet group.</p> 147 */ WithSubnetIds(Aws::Vector<Aws::String> && value)148 inline UpdateSubnetGroupRequest& WithSubnetIds(Aws::Vector<Aws::String>&& value) { SetSubnetIds(std::move(value)); return *this;} 149 150 /** 151 * <p>A list of subnet IDs in the subnet group.</p> 152 */ AddSubnetIds(const Aws::String & value)153 inline UpdateSubnetGroupRequest& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; } 154 155 /** 156 * <p>A list of subnet IDs in the subnet group.</p> 157 */ AddSubnetIds(Aws::String && value)158 inline UpdateSubnetGroupRequest& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; } 159 160 /** 161 * <p>A list of subnet IDs in the subnet group.</p> 162 */ AddSubnetIds(const char * value)163 inline UpdateSubnetGroupRequest& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; } 164 165 private: 166 167 Aws::String m_subnetGroupName; 168 bool m_subnetGroupNameHasBeenSet; 169 170 Aws::String m_description; 171 bool m_descriptionHasBeenSet; 172 173 Aws::Vector<Aws::String> m_subnetIds; 174 bool m_subnetIdsHasBeenSet; 175 }; 176 177 } // namespace Model 178 } // namespace DAX 179 } // namespace Aws 180