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"; }
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>
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>
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>
99 inline void SetDryRun(
bool value) { m_dryRunHasBeenSet =
true; m_dryRun = value; }
105 bool m_networkInterfaceIdHasBeenSet =
false;
108 bool m_awsAccountIdHasBeenSet =
false;
111 bool m_awsServiceHasBeenSet =
false;
114 bool m_permissionHasBeenSet =
false;
116 bool m_dryRun{
false};
117 bool m_dryRunHasBeenSet =
false;
CreateNetworkInterfacePermissionRequest & WithDryRun(bool value)
void SetAwsAccountId(AwsAccountIdT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
bool AwsAccountIdHasBeenSet() const
CreateNetworkInterfacePermissionRequest & WithNetworkInterfaceId(NetworkInterfaceIdT &&value)
bool NetworkInterfaceIdHasBeenSet() const
void SetPermission(InterfacePermissionType value)
void SetDryRun(bool value)
CreateNetworkInterfacePermissionRequest & WithAwsService(AwsServiceT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetAwsService(AwsServiceT &&value)
bool DryRunHasBeenSet() const
CreateNetworkInterfacePermissionRequest & WithPermission(InterfacePermissionType value)
InterfacePermissionType GetPermission() const
const Aws::String & GetAwsService() const
const Aws::String & GetNetworkInterfaceId() const
void SetNetworkInterfaceId(NetworkInterfaceIdT &&value)
bool PermissionHasBeenSet() const
AWS_EC2_API CreateNetworkInterfacePermissionRequest()=default
virtual const char * GetServiceRequestName() const override
const Aws::String & GetAwsAccountId() const
CreateNetworkInterfacePermissionRequest & WithAwsAccountId(AwsAccountIdT &&value)
bool AwsServiceHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String