AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateVpcEncryptionControlRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ec2/EC2Request.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/TagSpecification.h>
12
13#include <utility>
14
15namespace Aws {
16namespace EC2 {
17namespace Model {
18
22 public:
23 AWS_EC2_API CreateVpcEncryptionControlRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateVpcEncryptionControl"; }
30
31 AWS_EC2_API Aws::String SerializePayload() const override;
32
33 protected:
34 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
35
36 public:
38
44 inline bool GetDryRun() const { return m_dryRun; }
45 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
46 inline void SetDryRun(bool value) {
47 m_dryRunHasBeenSet = true;
48 m_dryRun = value;
49 }
51 SetDryRun(value);
52 return *this;
53 }
55
57
61 inline const Aws::String& GetVpcId() const { return m_vpcId; }
62 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
63 template <typename VpcIdT = Aws::String>
64 void SetVpcId(VpcIdT&& value) {
65 m_vpcIdHasBeenSet = true;
66 m_vpcId = std::forward<VpcIdT>(value);
67 }
68 template <typename VpcIdT = Aws::String>
70 SetVpcId(std::forward<VpcIdT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const { return m_tagSpecifications; }
80 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
81 template <typename TagSpecificationsT = Aws::Vector<TagSpecification>>
82 void SetTagSpecifications(TagSpecificationsT&& value) {
83 m_tagSpecificationsHasBeenSet = true;
84 m_tagSpecifications = std::forward<TagSpecificationsT>(value);
85 }
86 template <typename TagSpecificationsT = Aws::Vector<TagSpecification>>
88 SetTagSpecifications(std::forward<TagSpecificationsT>(value));
89 return *this;
90 }
91 template <typename TagSpecificationsT = TagSpecification>
93 m_tagSpecificationsHasBeenSet = true;
94 m_tagSpecifications.emplace_back(std::forward<TagSpecificationsT>(value));
95 return *this;
96 }
98 private:
99 bool m_dryRun{false};
100
101 Aws::String m_vpcId;
102
103 Aws::Vector<TagSpecification> m_tagSpecifications;
104 bool m_dryRunHasBeenSet = false;
105 bool m_vpcIdHasBeenSet = false;
106 bool m_tagSpecificationsHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace EC2
111} // namespace Aws
CreateVpcEncryptionControlRequest & WithTagSpecifications(TagSpecificationsT &&value)
CreateVpcEncryptionControlRequest & AddTagSpecifications(TagSpecificationsT &&value)
CreateVpcEncryptionControlRequest & WithDryRun(bool value)
CreateVpcEncryptionControlRequest & WithVpcId(VpcIdT &&value)
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_EC2_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector