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/ec2/EC2_EXPORTS.h> 8 #include <aws/ec2/EC2Request.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 EC2 16 { 17 namespace Model 18 { 19 20 /** 21 */ 22 class AWS_EC2_API RejectTransitGatewayMulticastDomainAssociationsRequest : public EC2Request 23 { 24 public: 25 RejectTransitGatewayMulticastDomainAssociationsRequest(); 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 "RejectTransitGatewayMulticastDomainAssociations"; } 32 33 Aws::String SerializePayload() const override; 34 35 protected: 36 void DumpBodyToUrl(Aws::Http::URI& uri ) const override; 37 38 public: 39 40 /** 41 * <p>The ID of the transit gateway multicast domain.</p> 42 */ GetTransitGatewayMulticastDomainId()43 inline const Aws::String& GetTransitGatewayMulticastDomainId() const{ return m_transitGatewayMulticastDomainId; } 44 45 /** 46 * <p>The ID of the transit gateway multicast domain.</p> 47 */ TransitGatewayMulticastDomainIdHasBeenSet()48 inline bool TransitGatewayMulticastDomainIdHasBeenSet() const { return m_transitGatewayMulticastDomainIdHasBeenSet; } 49 50 /** 51 * <p>The ID of the transit gateway multicast domain.</p> 52 */ SetTransitGatewayMulticastDomainId(const Aws::String & value)53 inline void SetTransitGatewayMulticastDomainId(const Aws::String& value) { m_transitGatewayMulticastDomainIdHasBeenSet = true; m_transitGatewayMulticastDomainId = value; } 54 55 /** 56 * <p>The ID of the transit gateway multicast domain.</p> 57 */ SetTransitGatewayMulticastDomainId(Aws::String && value)58 inline void SetTransitGatewayMulticastDomainId(Aws::String&& value) { m_transitGatewayMulticastDomainIdHasBeenSet = true; m_transitGatewayMulticastDomainId = std::move(value); } 59 60 /** 61 * <p>The ID of the transit gateway multicast domain.</p> 62 */ SetTransitGatewayMulticastDomainId(const char * value)63 inline void SetTransitGatewayMulticastDomainId(const char* value) { m_transitGatewayMulticastDomainIdHasBeenSet = true; m_transitGatewayMulticastDomainId.assign(value); } 64 65 /** 66 * <p>The ID of the transit gateway multicast domain.</p> 67 */ WithTransitGatewayMulticastDomainId(const Aws::String & value)68 inline RejectTransitGatewayMulticastDomainAssociationsRequest& WithTransitGatewayMulticastDomainId(const Aws::String& value) { SetTransitGatewayMulticastDomainId(value); return *this;} 69 70 /** 71 * <p>The ID of the transit gateway multicast domain.</p> 72 */ WithTransitGatewayMulticastDomainId(Aws::String && value)73 inline RejectTransitGatewayMulticastDomainAssociationsRequest& WithTransitGatewayMulticastDomainId(Aws::String&& value) { SetTransitGatewayMulticastDomainId(std::move(value)); return *this;} 74 75 /** 76 * <p>The ID of the transit gateway multicast domain.</p> 77 */ WithTransitGatewayMulticastDomainId(const char * value)78 inline RejectTransitGatewayMulticastDomainAssociationsRequest& WithTransitGatewayMulticastDomainId(const char* value) { SetTransitGatewayMulticastDomainId(value); return *this;} 79 80 81 /** 82 * <p>The ID of the transit gateway attachment.</p> 83 */ GetTransitGatewayAttachmentId()84 inline const Aws::String& GetTransitGatewayAttachmentId() const{ return m_transitGatewayAttachmentId; } 85 86 /** 87 * <p>The ID of the transit gateway attachment.</p> 88 */ TransitGatewayAttachmentIdHasBeenSet()89 inline bool TransitGatewayAttachmentIdHasBeenSet() const { return m_transitGatewayAttachmentIdHasBeenSet; } 90 91 /** 92 * <p>The ID of the transit gateway attachment.</p> 93 */ SetTransitGatewayAttachmentId(const Aws::String & value)94 inline void SetTransitGatewayAttachmentId(const Aws::String& value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId = value; } 95 96 /** 97 * <p>The ID of the transit gateway attachment.</p> 98 */ SetTransitGatewayAttachmentId(Aws::String && value)99 inline void SetTransitGatewayAttachmentId(Aws::String&& value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId = std::move(value); } 100 101 /** 102 * <p>The ID of the transit gateway attachment.</p> 103 */ SetTransitGatewayAttachmentId(const char * value)104 inline void SetTransitGatewayAttachmentId(const char* value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId.assign(value); } 105 106 /** 107 * <p>The ID of the transit gateway attachment.</p> 108 */ WithTransitGatewayAttachmentId(const Aws::String & value)109 inline RejectTransitGatewayMulticastDomainAssociationsRequest& WithTransitGatewayAttachmentId(const Aws::String& value) { SetTransitGatewayAttachmentId(value); return *this;} 110 111 /** 112 * <p>The ID of the transit gateway attachment.</p> 113 */ WithTransitGatewayAttachmentId(Aws::String && value)114 inline RejectTransitGatewayMulticastDomainAssociationsRequest& WithTransitGatewayAttachmentId(Aws::String&& value) { SetTransitGatewayAttachmentId(std::move(value)); return *this;} 115 116 /** 117 * <p>The ID of the transit gateway attachment.</p> 118 */ WithTransitGatewayAttachmentId(const char * value)119 inline RejectTransitGatewayMulticastDomainAssociationsRequest& WithTransitGatewayAttachmentId(const char* value) { SetTransitGatewayAttachmentId(value); return *this;} 120 121 122 /** 123 * <p>The IDs of the subnets to associate with the transit gateway multicast 124 * domain.</p> 125 */ GetSubnetIds()126 inline const Aws::Vector<Aws::String>& GetSubnetIds() const{ return m_subnetIds; } 127 128 /** 129 * <p>The IDs of the subnets to associate with the transit gateway multicast 130 * domain.</p> 131 */ SubnetIdsHasBeenSet()132 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; } 133 134 /** 135 * <p>The IDs of the subnets to associate with the transit gateway multicast 136 * domain.</p> 137 */ SetSubnetIds(const Aws::Vector<Aws::String> & value)138 inline void SetSubnetIds(const Aws::Vector<Aws::String>& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; } 139 140 /** 141 * <p>The IDs of the subnets to associate with the transit gateway multicast 142 * domain.</p> 143 */ SetSubnetIds(Aws::Vector<Aws::String> && value)144 inline void SetSubnetIds(Aws::Vector<Aws::String>&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::move(value); } 145 146 /** 147 * <p>The IDs of the subnets to associate with the transit gateway multicast 148 * domain.</p> 149 */ WithSubnetIds(const Aws::Vector<Aws::String> & value)150 inline RejectTransitGatewayMulticastDomainAssociationsRequest& WithSubnetIds(const Aws::Vector<Aws::String>& value) { SetSubnetIds(value); return *this;} 151 152 /** 153 * <p>The IDs of the subnets to associate with the transit gateway multicast 154 * domain.</p> 155 */ WithSubnetIds(Aws::Vector<Aws::String> && value)156 inline RejectTransitGatewayMulticastDomainAssociationsRequest& WithSubnetIds(Aws::Vector<Aws::String>&& value) { SetSubnetIds(std::move(value)); return *this;} 157 158 /** 159 * <p>The IDs of the subnets to associate with the transit gateway multicast 160 * domain.</p> 161 */ AddSubnetIds(const Aws::String & value)162 inline RejectTransitGatewayMulticastDomainAssociationsRequest& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; } 163 164 /** 165 * <p>The IDs of the subnets to associate with the transit gateway multicast 166 * domain.</p> 167 */ AddSubnetIds(Aws::String && value)168 inline RejectTransitGatewayMulticastDomainAssociationsRequest& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; } 169 170 /** 171 * <p>The IDs of the subnets to associate with the transit gateway multicast 172 * domain.</p> 173 */ AddSubnetIds(const char * value)174 inline RejectTransitGatewayMulticastDomainAssociationsRequest& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; } 175 176 177 /** 178 * <p>Checks whether you have the required permissions for the action, without 179 * actually making the request, and provides an error response. If you have the 180 * required permissions, the error response is <code>DryRunOperation</code>. 181 * Otherwise, it is <code>UnauthorizedOperation</code>.</p> 182 */ GetDryRun()183 inline bool GetDryRun() const{ return m_dryRun; } 184 185 /** 186 * <p>Checks whether you have the required permissions for the action, without 187 * actually making the request, and provides an error response. If you have the 188 * required permissions, the error response is <code>DryRunOperation</code>. 189 * Otherwise, it is <code>UnauthorizedOperation</code>.</p> 190 */ DryRunHasBeenSet()191 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; } 192 193 /** 194 * <p>Checks whether you have the required permissions for the action, without 195 * actually making the request, and provides an error response. If you have the 196 * required permissions, the error response is <code>DryRunOperation</code>. 197 * Otherwise, it is <code>UnauthorizedOperation</code>.</p> 198 */ SetDryRun(bool value)199 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; } 200 201 /** 202 * <p>Checks whether you have the required permissions for the action, without 203 * actually making the request, and provides an error response. If you have the 204 * required permissions, the error response is <code>DryRunOperation</code>. 205 * Otherwise, it is <code>UnauthorizedOperation</code>.</p> 206 */ WithDryRun(bool value)207 inline RejectTransitGatewayMulticastDomainAssociationsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;} 208 209 private: 210 211 Aws::String m_transitGatewayMulticastDomainId; 212 bool m_transitGatewayMulticastDomainIdHasBeenSet; 213 214 Aws::String m_transitGatewayAttachmentId; 215 bool m_transitGatewayAttachmentIdHasBeenSet; 216 217 Aws::Vector<Aws::String> m_subnetIds; 218 bool m_subnetIdsHasBeenSet; 219 220 bool m_dryRun; 221 bool m_dryRunHasBeenSet; 222 }; 223 224 } // namespace Model 225 } // namespace EC2 226 } // namespace Aws 227