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/core/utils/memory/stl/AWSVector.h>
31 inline virtual const char*
GetServiceRequestName()
const override {
return "ModifyVpcEndpointServicePermissions"; }
49 inline void SetDryRun(
bool value) { m_dryRunHasBeenSet =
true; m_dryRun = value; }
59 template<
typename ServiceIdT = Aws::String>
60 void SetServiceId(ServiceIdT&& value) { m_serviceIdHasBeenSet =
true; m_serviceId = std::forward<ServiceIdT>(value); }
61 template<
typename ServiceIdT = Aws::String>
73 template<
typename AddAllowedPrincipalsT = Aws::Vector<Aws::String>>
74 void SetAddAllowedPrincipals(AddAllowedPrincipalsT&& value) { m_addAllowedPrincipalsHasBeenSet =
true; m_addAllowedPrincipals = std::forward<AddAllowedPrincipalsT>(value); }
75 template<
typename AddAllowedPrincipalsT = Aws::Vector<Aws::String>>
77 template<
typename AddAllowedPrincipalsT = Aws::String>
88 template<
typename RemoveAllowedPrincipalsT = Aws::Vector<Aws::String>>
89 void SetRemoveAllowedPrincipals(RemoveAllowedPrincipalsT&& value) { m_removeAllowedPrincipalsHasBeenSet =
true; m_removeAllowedPrincipals = std::forward<RemoveAllowedPrincipalsT>(value); }
90 template<
typename RemoveAllowedPrincipalsT = Aws::Vector<Aws::String>>
92 template<
typename RemoveAllowedPrincipalsT = Aws::String>
98 bool m_dryRunHasBeenSet =
false;
101 bool m_serviceIdHasBeenSet =
false;
104 bool m_addAllowedPrincipalsHasBeenSet =
false;
107 bool m_removeAllowedPrincipalsHasBeenSet =
false;
AWS_EC2_API ModifyVpcEndpointServicePermissionsRequest()=default
bool AddAllowedPrincipalsHasBeenSet() const
ModifyVpcEndpointServicePermissionsRequest & WithAddAllowedPrincipals(AddAllowedPrincipalsT &&value)
bool DryRunHasBeenSet() const
AWS_EC2_API Aws::String SerializePayload() const override
void SetAddAllowedPrincipals(AddAllowedPrincipalsT &&value)
void SetServiceId(ServiceIdT &&value)
bool ServiceIdHasBeenSet() const
bool RemoveAllowedPrincipalsHasBeenSet() const
ModifyVpcEndpointServicePermissionsRequest & AddAddAllowedPrincipals(AddAllowedPrincipalsT &&value)
void SetDryRun(bool value)
const Aws::Vector< Aws::String > & GetRemoveAllowedPrincipals() const
ModifyVpcEndpointServicePermissionsRequest & WithDryRun(bool value)
ModifyVpcEndpointServicePermissionsRequest & WithServiceId(ServiceIdT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
const Aws::Vector< Aws::String > & GetAddAllowedPrincipals() const
virtual const char * GetServiceRequestName() const override
ModifyVpcEndpointServicePermissionsRequest & WithRemoveAllowedPrincipals(RemoveAllowedPrincipalsT &&value)
ModifyVpcEndpointServicePermissionsRequest & AddRemoveAllowedPrincipals(RemoveAllowedPrincipalsT &&value)
void SetRemoveAllowedPrincipals(RemoveAllowedPrincipalsT &&value)
const Aws::String & GetServiceId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector