AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateNetworkInterfacePermissionRequest.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/ec2/model/InterfacePermissionType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace EC2
16{
17namespace Model
18{
19
27 {
28 public:
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateNetworkInterfacePermission"; }
36
37 AWS_EC2_API Aws::String SerializePayload() const override;
38
39 protected:
40 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41
42 public:
43
45
48 inline const Aws::String& GetNetworkInterfaceId() const { return m_networkInterfaceId; }
49 inline bool NetworkInterfaceIdHasBeenSet() const { return m_networkInterfaceIdHasBeenSet; }
50 template<typename NetworkInterfaceIdT = Aws::String>
51 void SetNetworkInterfaceId(NetworkInterfaceIdT&& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = std::forward<NetworkInterfaceIdT>(value); }
52 template<typename NetworkInterfaceIdT = Aws::String>
53 CreateNetworkInterfacePermissionRequest& WithNetworkInterfaceId(NetworkInterfaceIdT&& value) { SetNetworkInterfaceId(std::forward<NetworkInterfaceIdT>(value)); return *this;}
55
57
60 inline const Aws::String& GetAwsAccountId() const { return m_awsAccountId; }
61 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
62 template<typename AwsAccountIdT = Aws::String>
63 void SetAwsAccountId(AwsAccountIdT&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::forward<AwsAccountIdT>(value); }
64 template<typename AwsAccountIdT = Aws::String>
65 CreateNetworkInterfacePermissionRequest& WithAwsAccountId(AwsAccountIdT&& value) { SetAwsAccountId(std::forward<AwsAccountIdT>(value)); return *this;}
67
69
72 inline const Aws::String& GetAwsService() const { return m_awsService; }
73 inline bool AwsServiceHasBeenSet() const { return m_awsServiceHasBeenSet; }
74 template<typename AwsServiceT = Aws::String>
75 void SetAwsService(AwsServiceT&& value) { m_awsServiceHasBeenSet = true; m_awsService = std::forward<AwsServiceT>(value); }
76 template<typename AwsServiceT = Aws::String>
77 CreateNetworkInterfacePermissionRequest& WithAwsService(AwsServiceT&& value) { SetAwsService(std::forward<AwsServiceT>(value)); return *this;}
79
81
84 inline InterfacePermissionType GetPermission() const { return m_permission; }
85 inline bool PermissionHasBeenSet() const { return m_permissionHasBeenSet; }
86 inline void SetPermission(InterfacePermissionType value) { m_permissionHasBeenSet = true; m_permission = value; }
89
91
97 inline bool GetDryRun() const { return m_dryRun; }
98 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
99 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
100 inline CreateNetworkInterfacePermissionRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
102 private:
103
104 Aws::String m_networkInterfaceId;
105 bool m_networkInterfaceIdHasBeenSet = false;
106
107 Aws::String m_awsAccountId;
108 bool m_awsAccountIdHasBeenSet = false;
109
110 Aws::String m_awsService;
111 bool m_awsServiceHasBeenSet = false;
112
114 bool m_permissionHasBeenSet = false;
115
116 bool m_dryRun{false};
117 bool m_dryRunHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace EC2
122} // namespace Aws
AWS_EC2_API Aws::String SerializePayload() const override
CreateNetworkInterfacePermissionRequest & WithNetworkInterfaceId(NetworkInterfaceIdT &&value)
CreateNetworkInterfacePermissionRequest & WithAwsService(AwsServiceT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateNetworkInterfacePermissionRequest & WithPermission(InterfacePermissionType value)
CreateNetworkInterfacePermissionRequest & WithAwsAccountId(AwsAccountIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String