AWS SDK for C++  1.9.73
AWS SDK for C++
CreateTrafficMirrorFilterRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
12 #include <utility>
13 #include <aws/core/utils/UUID.h>
14 
15 namespace Aws
16 {
17 namespace EC2
18 {
19 namespace 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 "CreateTrafficMirrorFilter"; }
34 
35  Aws::String SerializePayload() const override;
36 
37  protected:
38  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39 
40  public:
41 
45  inline const Aws::String& GetDescription() const{ return m_description; }
46 
50  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
51 
55  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
56 
60  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
61 
65  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
66 
70  inline CreateTrafficMirrorFilterRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
71 
75  inline CreateTrafficMirrorFilterRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
76 
80  inline CreateTrafficMirrorFilterRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
81 
82 
86  inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
87 
91  inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
92 
96  inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
97 
101  inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
102 
106  inline CreateTrafficMirrorFilterRequest& WithTagSpecifications(const Aws::Vector<TagSpecification>& value) { SetTagSpecifications(value); return *this;}
107 
111  inline CreateTrafficMirrorFilterRequest& WithTagSpecifications(Aws::Vector<TagSpecification>&& value) { SetTagSpecifications(std::move(value)); return *this;}
112 
116  inline CreateTrafficMirrorFilterRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
117 
121  inline CreateTrafficMirrorFilterRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
122 
123 
130  inline bool GetDryRun() const{ return m_dryRun; }
131 
138  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
139 
146  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
147 
154  inline CreateTrafficMirrorFilterRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
155 
156 
163  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
164 
171  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
172 
179  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
180 
187  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
188 
195  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
196 
203  inline CreateTrafficMirrorFilterRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
204 
211  inline CreateTrafficMirrorFilterRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
212 
219  inline CreateTrafficMirrorFilterRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
220 
221  private:
222 
223  Aws::String m_description;
224  bool m_descriptionHasBeenSet;
225 
226  Aws::Vector<TagSpecification> m_tagSpecifications;
227  bool m_tagSpecificationsHasBeenSet;
228 
229  bool m_dryRun;
230  bool m_dryRunHasBeenSet;
231 
232  Aws::String m_clientToken;
233  bool m_clientTokenHasBeenSet;
234  };
235 
236 } // namespace Model
237 } // namespace EC2
238 } // namespace Aws
Aws::EC2::Model::CreateTrafficMirrorFilterRequest::WithDescription
CreateTrafficMirrorFilterRequest & WithDescription(const Aws::String &value)
Definition: CreateTrafficMirrorFilterRequest.h:70
TagSpecification.h
Aws::EC2::Model::CreateTrafficMirrorFilterRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: CreateTrafficMirrorFilterRequest.h:138
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::CreateTrafficMirrorFilterRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: CreateTrafficMirrorFilterRequest.h:179
Aws::EC2::Model::CreateTrafficMirrorFilterRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreateTrafficMirrorFilterRequest.h:55
Aws::EC2::Model::CreateTrafficMirrorFilterRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::CreateTrafficMirrorFilterRequest::AddTagSpecifications
CreateTrafficMirrorFilterRequest & AddTagSpecifications(TagSpecification &&value)
Definition: CreateTrafficMirrorFilterRequest.h:121
Aws::EC2::Model::CreateTrafficMirrorFilterRequest::WithDescription
CreateTrafficMirrorFilterRequest & WithDescription(Aws::String &&value)
Definition: CreateTrafficMirrorFilterRequest.h:75
Aws::EC2::Model::CreateTrafficMirrorFilterRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::CreateTrafficMirrorFilterRequest::SetDescription
void SetDescription(const char *value)
Definition: CreateTrafficMirrorFilterRequest.h:65
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::CreateTrafficMirrorFilterRequest::SetTagSpecifications
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
Definition: CreateTrafficMirrorFilterRequest.h:101
Aws::EC2::Model::CreateTrafficMirrorFilterRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateTrafficMirrorFilterRequest.h:33
Aws::EC2::Model::CreateTrafficMirrorFilterRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreateTrafficMirrorFilterRequest.h:45
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::CreateTrafficMirrorFilterRequest::WithTagSpecifications
CreateTrafficMirrorFilterRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
Definition: CreateTrafficMirrorFilterRequest.h:111
AWSVector.h
Aws::EC2::Model::CreateTrafficMirrorFilterRequest::GetDryRun
bool GetDryRun() const
Definition: CreateTrafficMirrorFilterRequest.h:130
Aws::EC2::Model::CreateTrafficMirrorFilterRequest::WithClientToken
CreateTrafficMirrorFilterRequest & WithClientToken(const Aws::String &value)
Definition: CreateTrafficMirrorFilterRequest.h:203
Aws::EC2::Model::CreateTrafficMirrorFilterRequest::WithDescription
CreateTrafficMirrorFilterRequest & WithDescription(const char *value)
Definition: CreateTrafficMirrorFilterRequest.h:80
EC2Request.h
Aws::EC2::Model::CreateTrafficMirrorFilterRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: CreateTrafficMirrorFilterRequest.h:163
Aws::EC2::Model::CreateTrafficMirrorFilterRequest::WithDryRun
CreateTrafficMirrorFilterRequest & WithDryRun(bool value)
Definition: CreateTrafficMirrorFilterRequest.h:154
Aws::EC2::Model::CreateTrafficMirrorFilterRequest::SetDryRun
void SetDryRun(bool value)
Definition: CreateTrafficMirrorFilterRequest.h:146
AWSString.h
Aws::EC2::Model::CreateTrafficMirrorFilterRequest::WithClientToken
CreateTrafficMirrorFilterRequest & WithClientToken(Aws::String &&value)
Definition: CreateTrafficMirrorFilterRequest.h:211
Aws::EC2::Model::CreateTrafficMirrorFilterRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreateTrafficMirrorFilterRequest.h:50
Aws::EC2::Model::CreateTrafficMirrorFilterRequest::GetTagSpecifications
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
Definition: CreateTrafficMirrorFilterRequest.h:86
Aws::EC2::Model::CreateTrafficMirrorFilterRequest::SetTagSpecifications
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
Definition: CreateTrafficMirrorFilterRequest.h:96
Aws::EC2::Model::CreateTrafficMirrorFilterRequest
Definition: CreateTrafficMirrorFilterRequest.h:25
Aws::EC2::Model::CreateTrafficMirrorFilterRequest::SetClientToken
void SetClientToken(const char *value)
Definition: CreateTrafficMirrorFilterRequest.h:195
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::CreateTrafficMirrorFilterRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: CreateTrafficMirrorFilterRequest.h:171
Aws::EC2::Model::CreateTrafficMirrorFilterRequest::WithTagSpecifications
CreateTrafficMirrorFilterRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
Definition: CreateTrafficMirrorFilterRequest.h:106
Aws::EC2::Model::CreateTrafficMirrorFilterRequest::CreateTrafficMirrorFilterRequest
CreateTrafficMirrorFilterRequest()
Aws::EC2::Model::CreateTrafficMirrorFilterRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: CreateTrafficMirrorFilterRequest.h:187
Aws::EC2::Model::CreateTrafficMirrorFilterRequest::TagSpecificationsHasBeenSet
bool TagSpecificationsHasBeenSet() const
Definition: CreateTrafficMirrorFilterRequest.h:91
Aws::EC2::Model::CreateTrafficMirrorFilterRequest::WithClientToken
CreateTrafficMirrorFilterRequest & WithClientToken(const char *value)
Definition: CreateTrafficMirrorFilterRequest.h:219
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::CreateTrafficMirrorFilterRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreateTrafficMirrorFilterRequest.h:60
UUID.h
Aws::EC2::Model::TagSpecification
Definition: TagSpecification.h:35
EC2_EXPORTS.h
Aws::EC2::Model::CreateTrafficMirrorFilterRequest::AddTagSpecifications
CreateTrafficMirrorFilterRequest & AddTagSpecifications(const TagSpecification &value)
Definition: CreateTrafficMirrorFilterRequest.h:116