AWS SDK for C++  1.7.243
AWS SDK for C++
DeleteTrafficMirrorTargetRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 
16 #pragma once
17 #include <aws/ec2/EC2_EXPORTS.h>
18 #include <aws/ec2/EC2Request.h>
20 #include <utility>
21 
22 namespace Aws
23 {
24 namespace EC2
25 {
26 namespace Model
27 {
28 
32  {
33  public:
35 
36  // Service request name is the Operation name which will send this request out,
37  // each operation should has unique request name, so that we can get operation's name from this request.
38  // Note: this is not true for response, multiple operations may have the same response name,
39  // so we can not get operation's name from response.
40  inline virtual const char* GetServiceRequestName() const override { return "DeleteTrafficMirrorTarget"; }
41 
42  Aws::String SerializePayload() const override;
43 
44  protected:
45  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
46 
47  public:
48 
52  inline const Aws::String& GetTrafficMirrorTargetId() const{ return m_trafficMirrorTargetId; }
53 
57  inline bool TrafficMirrorTargetIdHasBeenSet() const { return m_trafficMirrorTargetIdHasBeenSet; }
58 
62  inline void SetTrafficMirrorTargetId(const Aws::String& value) { m_trafficMirrorTargetIdHasBeenSet = true; m_trafficMirrorTargetId = value; }
63 
67  inline void SetTrafficMirrorTargetId(Aws::String&& value) { m_trafficMirrorTargetIdHasBeenSet = true; m_trafficMirrorTargetId = std::move(value); }
68 
72  inline void SetTrafficMirrorTargetId(const char* value) { m_trafficMirrorTargetIdHasBeenSet = true; m_trafficMirrorTargetId.assign(value); }
73 
77  inline DeleteTrafficMirrorTargetRequest& WithTrafficMirrorTargetId(const Aws::String& value) { SetTrafficMirrorTargetId(value); return *this;}
78 
82  inline DeleteTrafficMirrorTargetRequest& WithTrafficMirrorTargetId(Aws::String&& value) { SetTrafficMirrorTargetId(std::move(value)); return *this;}
83 
87  inline DeleteTrafficMirrorTargetRequest& WithTrafficMirrorTargetId(const char* value) { SetTrafficMirrorTargetId(value); return *this;}
88 
89 
96  inline bool GetDryRun() const{ return m_dryRun; }
97 
104  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
105 
112  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
113 
120  inline DeleteTrafficMirrorTargetRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
121 
122  private:
123 
124  Aws::String m_trafficMirrorTargetId;
125  bool m_trafficMirrorTargetIdHasBeenSet;
126 
127  bool m_dryRun;
128  bool m_dryRunHasBeenSet;
129  };
130 
131 } // namespace Model
132 } // namespace EC2
133 } // namespace Aws
DeleteTrafficMirrorTargetRequest & WithDryRun(bool value)
DeleteTrafficMirrorTargetRequest & WithTrafficMirrorTargetId(const Aws::String &value)
DeleteTrafficMirrorTargetRequest & WithTrafficMirrorTargetId(const char *value)
DeleteTrafficMirrorTargetRequest & WithTrafficMirrorTargetId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:107
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:38