AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateInternetGatewayRequest.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/AWSVector.h>
10#include <aws/ec2/model/TagSpecification.h>
11#include <utility>
12
13namespace Aws
14{
15namespace EC2
16{
17namespace Model
18{
19
23 {
24 public:
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.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateInternetGateway"; }
32
33 AWS_EC2_API Aws::String SerializePayload() const override;
34
35 protected:
36 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37
38 public:
39
41
44 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
45 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
46 inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
47 inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
50 inline CreateInternetGatewayRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
51 inline CreateInternetGatewayRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
53
55
61 inline bool GetDryRun() const{ return m_dryRun; }
62 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
63 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
64 inline CreateInternetGatewayRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
66 private:
67
68 Aws::Vector<TagSpecification> m_tagSpecifications;
69 bool m_tagSpecificationsHasBeenSet = false;
70
71 bool m_dryRun;
72 bool m_dryRunHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace EC2
77} // namespace Aws
AWS_EC2_API Aws::String SerializePayload() const override
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
CreateInternetGatewayRequest & WithDryRun(bool value)
CreateInternetGatewayRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
CreateInternetGatewayRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
CreateInternetGatewayRequest & AddTagSpecifications(const TagSpecification &value)
virtual const char * GetServiceRequestName() const override
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
CreateInternetGatewayRequest & AddTagSpecifications(TagSpecification &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector