AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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 inline void SetNetworkInterfaceId(const Aws::String& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = value; }
51 inline void SetNetworkInterfaceId(Aws::String&& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = std::move(value); }
52 inline void SetNetworkInterfaceId(const char* value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId.assign(value); }
57
59
62 inline const Aws::String& GetAwsAccountId() const{ return m_awsAccountId; }
63 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
64 inline void SetAwsAccountId(const Aws::String& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = value; }
65 inline void SetAwsAccountId(Aws::String&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::move(value); }
66 inline void SetAwsAccountId(const char* value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId.assign(value); }
68 inline CreateNetworkInterfacePermissionRequest& WithAwsAccountId(Aws::String&& value) { SetAwsAccountId(std::move(value)); return *this;}
69 inline CreateNetworkInterfacePermissionRequest& WithAwsAccountId(const char* value) { SetAwsAccountId(value); return *this;}
71
73
76 inline const Aws::String& GetAwsService() const{ return m_awsService; }
77 inline bool AwsServiceHasBeenSet() const { return m_awsServiceHasBeenSet; }
78 inline void SetAwsService(const Aws::String& value) { m_awsServiceHasBeenSet = true; m_awsService = value; }
79 inline void SetAwsService(Aws::String&& value) { m_awsServiceHasBeenSet = true; m_awsService = std::move(value); }
80 inline void SetAwsService(const char* value) { m_awsServiceHasBeenSet = true; m_awsService.assign(value); }
82 inline CreateNetworkInterfacePermissionRequest& WithAwsService(Aws::String&& value) { SetAwsService(std::move(value)); return *this;}
83 inline CreateNetworkInterfacePermissionRequest& WithAwsService(const char* value) { SetAwsService(value); return *this;}
85
87
90 inline const InterfacePermissionType& GetPermission() const{ return m_permission; }
91 inline bool PermissionHasBeenSet() const { return m_permissionHasBeenSet; }
92 inline void SetPermission(const InterfacePermissionType& value) { m_permissionHasBeenSet = true; m_permission = value; }
93 inline void SetPermission(InterfacePermissionType&& value) { m_permissionHasBeenSet = true; m_permission = std::move(value); }
97
99
105 inline bool GetDryRun() const{ return m_dryRun; }
106 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
107 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
108 inline CreateNetworkInterfacePermissionRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
110 private:
111
112 Aws::String m_networkInterfaceId;
113 bool m_networkInterfaceIdHasBeenSet = false;
114
115 Aws::String m_awsAccountId;
116 bool m_awsAccountIdHasBeenSet = false;
117
118 Aws::String m_awsService;
119 bool m_awsServiceHasBeenSet = false;
120
121 InterfacePermissionType m_permission;
122 bool m_permissionHasBeenSet = false;
123
124 bool m_dryRun;
125 bool m_dryRunHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace EC2
130} // namespace Aws
CreateNetworkInterfacePermissionRequest & WithAwsAccountId(Aws::String &&value)
CreateNetworkInterfacePermissionRequest & WithAwsAccountId(const char *value)
AWS_EC2_API Aws::String SerializePayload() const override
CreateNetworkInterfacePermissionRequest & WithNetworkInterfaceId(Aws::String &&value)
CreateNetworkInterfacePermissionRequest & WithAwsService(Aws::String &&value)
CreateNetworkInterfacePermissionRequest & WithNetworkInterfaceId(const Aws::String &value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateNetworkInterfacePermissionRequest & WithAwsService(const Aws::String &value)
CreateNetworkInterfacePermissionRequest & WithAwsService(const char *value)
CreateNetworkInterfacePermissionRequest & WithNetworkInterfaceId(const char *value)
CreateNetworkInterfacePermissionRequest & WithAwsAccountId(const Aws::String &value)
CreateNetworkInterfacePermissionRequest & WithPermission(InterfacePermissionType &&value)
CreateNetworkInterfacePermissionRequest & WithPermission(const InterfacePermissionType &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String