AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateTrafficMirrorTargetRequest.h
1
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 <aws/ec2/model/TagSpecification.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace EC2
18{
19namespace Model
20{
21
25 {
26 public:
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateTrafficMirrorTarget"; }
34
35 AWS_EC2_API Aws::String SerializePayload() const override;
36
37 protected:
38 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39
40 public:
41
43
46 inline const Aws::String& GetNetworkInterfaceId() const{ return m_networkInterfaceId; }
47 inline bool NetworkInterfaceIdHasBeenSet() const { return m_networkInterfaceIdHasBeenSet; }
48 inline void SetNetworkInterfaceId(const Aws::String& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = value; }
49 inline void SetNetworkInterfaceId(Aws::String&& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = std::move(value); }
50 inline void SetNetworkInterfaceId(const char* value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId.assign(value); }
53 inline CreateTrafficMirrorTargetRequest& WithNetworkInterfaceId(const char* value) { SetNetworkInterfaceId(value); return *this;}
55
57
61 inline const Aws::String& GetNetworkLoadBalancerArn() const{ return m_networkLoadBalancerArn; }
62 inline bool NetworkLoadBalancerArnHasBeenSet() const { return m_networkLoadBalancerArnHasBeenSet; }
63 inline void SetNetworkLoadBalancerArn(const Aws::String& value) { m_networkLoadBalancerArnHasBeenSet = true; m_networkLoadBalancerArn = value; }
64 inline void SetNetworkLoadBalancerArn(Aws::String&& value) { m_networkLoadBalancerArnHasBeenSet = true; m_networkLoadBalancerArn = std::move(value); }
65 inline void SetNetworkLoadBalancerArn(const char* value) { m_networkLoadBalancerArnHasBeenSet = true; m_networkLoadBalancerArn.assign(value); }
70
72
75 inline const Aws::String& GetDescription() const{ return m_description; }
76 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
77 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
78 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
79 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
80 inline CreateTrafficMirrorTargetRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
81 inline CreateTrafficMirrorTargetRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
82 inline CreateTrafficMirrorTargetRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
84
86
89 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
90 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
91 inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
92 inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
95 inline CreateTrafficMirrorTargetRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
96 inline CreateTrafficMirrorTargetRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
98
100
106 inline bool GetDryRun() const{ return m_dryRun; }
107 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
108 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
109 inline CreateTrafficMirrorTargetRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
111
113
119 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
120 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
121 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
122 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
123 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
124 inline CreateTrafficMirrorTargetRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
125 inline CreateTrafficMirrorTargetRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
126 inline CreateTrafficMirrorTargetRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
128
130
133 inline const Aws::String& GetGatewayLoadBalancerEndpointId() const{ return m_gatewayLoadBalancerEndpointId; }
134 inline bool GatewayLoadBalancerEndpointIdHasBeenSet() const { return m_gatewayLoadBalancerEndpointIdHasBeenSet; }
135 inline void SetGatewayLoadBalancerEndpointId(const Aws::String& value) { m_gatewayLoadBalancerEndpointIdHasBeenSet = true; m_gatewayLoadBalancerEndpointId = value; }
136 inline void SetGatewayLoadBalancerEndpointId(Aws::String&& value) { m_gatewayLoadBalancerEndpointIdHasBeenSet = true; m_gatewayLoadBalancerEndpointId = std::move(value); }
137 inline void SetGatewayLoadBalancerEndpointId(const char* value) { m_gatewayLoadBalancerEndpointIdHasBeenSet = true; m_gatewayLoadBalancerEndpointId.assign(value); }
142 private:
143
144 Aws::String m_networkInterfaceId;
145 bool m_networkInterfaceIdHasBeenSet = false;
146
147 Aws::String m_networkLoadBalancerArn;
148 bool m_networkLoadBalancerArnHasBeenSet = false;
149
150 Aws::String m_description;
151 bool m_descriptionHasBeenSet = false;
152
153 Aws::Vector<TagSpecification> m_tagSpecifications;
154 bool m_tagSpecificationsHasBeenSet = false;
155
156 bool m_dryRun;
157 bool m_dryRunHasBeenSet = false;
158
159 Aws::String m_clientToken;
160 bool m_clientTokenHasBeenSet = false;
161
162 Aws::String m_gatewayLoadBalancerEndpointId;
163 bool m_gatewayLoadBalancerEndpointIdHasBeenSet = false;
164 };
165
166} // namespace Model
167} // namespace EC2
168} // namespace Aws
CreateTrafficMirrorTargetRequest & WithNetworkInterfaceId(const Aws::String &value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateTrafficMirrorTargetRequest & WithNetworkLoadBalancerArn(const Aws::String &value)
AWS_EC2_API Aws::String SerializePayload() const override
CreateTrafficMirrorTargetRequest & WithGatewayLoadBalancerEndpointId(Aws::String &&value)
CreateTrafficMirrorTargetRequest & WithDescription(const char *value)
CreateTrafficMirrorTargetRequest & WithNetworkLoadBalancerArn(Aws::String &&value)
CreateTrafficMirrorTargetRequest & WithNetworkLoadBalancerArn(const char *value)
CreateTrafficMirrorTargetRequest & WithNetworkInterfaceId(Aws::String &&value)
CreateTrafficMirrorTargetRequest & WithClientToken(const char *value)
CreateTrafficMirrorTargetRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
CreateTrafficMirrorTargetRequest & AddTagSpecifications(TagSpecification &&value)
CreateTrafficMirrorTargetRequest & WithNetworkInterfaceId(const char *value)
CreateTrafficMirrorTargetRequest & WithClientToken(const Aws::String &value)
CreateTrafficMirrorTargetRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
CreateTrafficMirrorTargetRequest & WithClientToken(Aws::String &&value)
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
CreateTrafficMirrorTargetRequest & WithDryRun(bool value)
CreateTrafficMirrorTargetRequest & WithDescription(const Aws::String &value)
CreateTrafficMirrorTargetRequest & WithDescription(Aws::String &&value)
CreateTrafficMirrorTargetRequest & WithGatewayLoadBalancerEndpointId(const char *value)
CreateTrafficMirrorTargetRequest & WithGatewayLoadBalancerEndpointId(const Aws::String &value)
CreateTrafficMirrorTargetRequest & AddTagSpecifications(const TagSpecification &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector