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>
35 inline virtual const char*
GetServiceRequestName()
const override {
return "CreateNetworkInterfacePermission"; }
52 inline void SetNetworkInterfaceId(
const char* value) { m_networkInterfaceIdHasBeenSet =
true; m_networkInterfaceId.assign(value); }
66 inline void SetAwsAccountId(
const char* value) { m_awsAccountIdHasBeenSet =
true; m_awsAccountId.assign(value); }
80 inline void SetAwsService(
const char* value) { m_awsServiceHasBeenSet =
true; m_awsService.assign(value); }
107 inline void SetDryRun(
bool value) { m_dryRunHasBeenSet =
true; m_dryRun = value; }
113 bool m_networkInterfaceIdHasBeenSet =
false;
116 bool m_awsAccountIdHasBeenSet =
false;
119 bool m_awsServiceHasBeenSet =
false;
122 bool m_permissionHasBeenSet =
false;
125 bool m_dryRunHasBeenSet =
false;
CreateNetworkInterfacePermissionRequest & WithDryRun(bool value)
void SetAwsService(const char *value)
CreateNetworkInterfacePermissionRequest & WithAwsAccountId(Aws::String &&value)
void SetAwsAccountId(Aws::String &&value)
AWS_EC2_API CreateNetworkInterfacePermissionRequest()
void SetPermission(InterfacePermissionType &&value)
CreateNetworkInterfacePermissionRequest & WithAwsAccountId(const char *value)
AWS_EC2_API Aws::String SerializePayload() const override
CreateNetworkInterfacePermissionRequest & WithNetworkInterfaceId(Aws::String &&value)
const InterfacePermissionType & GetPermission() const
bool AwsAccountIdHasBeenSet() const
void SetAwsAccountId(const Aws::String &value)
bool NetworkInterfaceIdHasBeenSet() const
void SetNetworkInterfaceId(const char *value)
void SetNetworkInterfaceId(Aws::String &&value)
void SetPermission(const InterfacePermissionType &value)
void SetDryRun(bool value)
CreateNetworkInterfacePermissionRequest & WithAwsService(Aws::String &&value)
CreateNetworkInterfacePermissionRequest & WithNetworkInterfaceId(const Aws::String &value)
void SetAwsService(const Aws::String &value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetNetworkInterfaceId(const Aws::String &value)
bool DryRunHasBeenSet() const
CreateNetworkInterfacePermissionRequest & WithAwsService(const Aws::String &value)
const Aws::String & GetAwsService() const
const Aws::String & GetNetworkInterfaceId() const
bool PermissionHasBeenSet() const
virtual const char * GetServiceRequestName() const override
const Aws::String & GetAwsAccountId() const
CreateNetworkInterfacePermissionRequest & WithAwsService(const char *value)
CreateNetworkInterfacePermissionRequest & WithNetworkInterfaceId(const char *value)
CreateNetworkInterfacePermissionRequest & WithAwsAccountId(const Aws::String &value)
void SetAwsAccountId(const char *value)
CreateNetworkInterfacePermissionRequest & WithPermission(InterfacePermissionType &&value)
void SetAwsService(Aws::String &&value)
CreateNetworkInterfacePermissionRequest & WithPermission(const InterfacePermissionType &value)
bool AwsServiceHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String