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 <utility> 11 12 namespace Aws 13 { 14 namespace EC2 15 { 16 namespace Model 17 { 18 19 /** 20 */ 21 class AWS_EC2_API EnableVpcClassicLinkRequest : public EC2Request 22 { 23 public: 24 EnableVpcClassicLinkRequest(); 25 26 // Service request name is the Operation name which will send this request out, 27 // each operation should has unique request name, so that we can get operation's name from this request. 28 // Note: this is not true for response, multiple operations may have the same response name, 29 // so we can not get operation's name from response. GetServiceRequestName()30 inline virtual const char* GetServiceRequestName() const override { return "EnableVpcClassicLink"; } 31 32 Aws::String SerializePayload() const override; 33 34 protected: 35 void DumpBodyToUrl(Aws::Http::URI& uri ) const override; 36 37 public: 38 39 /** 40 * <p>Checks whether you have the required permissions for the action, without 41 * actually making the request, and provides an error response. If you have the 42 * required permissions, the error response is <code>DryRunOperation</code>. 43 * Otherwise, it is <code>UnauthorizedOperation</code>.</p> 44 */ GetDryRun()45 inline bool GetDryRun() const{ return m_dryRun; } 46 47 /** 48 * <p>Checks whether you have the required permissions for the action, without 49 * actually making the request, and provides an error response. If you have the 50 * required permissions, the error response is <code>DryRunOperation</code>. 51 * Otherwise, it is <code>UnauthorizedOperation</code>.</p> 52 */ DryRunHasBeenSet()53 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; } 54 55 /** 56 * <p>Checks whether you have the required permissions for the action, without 57 * actually making the request, and provides an error response. If you have the 58 * required permissions, the error response is <code>DryRunOperation</code>. 59 * Otherwise, it is <code>UnauthorizedOperation</code>.</p> 60 */ SetDryRun(bool value)61 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; } 62 63 /** 64 * <p>Checks whether you have the required permissions for the action, without 65 * actually making the request, and provides an error response. If you have the 66 * required permissions, the error response is <code>DryRunOperation</code>. 67 * Otherwise, it is <code>UnauthorizedOperation</code>.</p> 68 */ WithDryRun(bool value)69 inline EnableVpcClassicLinkRequest& WithDryRun(bool value) { SetDryRun(value); return *this;} 70 71 72 /** 73 * <p>The ID of the VPC.</p> 74 */ GetVpcId()75 inline const Aws::String& GetVpcId() const{ return m_vpcId; } 76 77 /** 78 * <p>The ID of the VPC.</p> 79 */ VpcIdHasBeenSet()80 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; } 81 82 /** 83 * <p>The ID of the VPC.</p> 84 */ SetVpcId(const Aws::String & value)85 inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; } 86 87 /** 88 * <p>The ID of the VPC.</p> 89 */ SetVpcId(Aws::String && value)90 inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); } 91 92 /** 93 * <p>The ID of the VPC.</p> 94 */ SetVpcId(const char * value)95 inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); } 96 97 /** 98 * <p>The ID of the VPC.</p> 99 */ WithVpcId(const Aws::String & value)100 inline EnableVpcClassicLinkRequest& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;} 101 102 /** 103 * <p>The ID of the VPC.</p> 104 */ WithVpcId(Aws::String && value)105 inline EnableVpcClassicLinkRequest& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;} 106 107 /** 108 * <p>The ID of the VPC.</p> 109 */ WithVpcId(const char * value)110 inline EnableVpcClassicLinkRequest& WithVpcId(const char* value) { SetVpcId(value); return *this;} 111 112 private: 113 114 bool m_dryRun; 115 bool m_dryRunHasBeenSet; 116 117 Aws::String m_vpcId; 118 bool m_vpcIdHasBeenSet; 119 }; 120 121 } // namespace Model 122 } // namespace EC2 123 } // namespace Aws 124