Struct aws_sdk_ec2::operation::authorize_client_vpn_ingress::builders::AuthorizeClientVpnIngressInputBuilder
source · #[non_exhaustive]pub struct AuthorizeClientVpnIngressInputBuilder { /* private fields */ }Expand description
A builder for AuthorizeClientVpnIngressInput.
Implementations§
source§impl AuthorizeClientVpnIngressInputBuilder
impl AuthorizeClientVpnIngressInputBuilder
sourcepub fn client_vpn_endpoint_id(self, input: impl Into<String>) -> Self
pub fn client_vpn_endpoint_id(self, input: impl Into<String>) -> Self
The ID of the Client VPN endpoint.
This field is required.sourcepub fn set_client_vpn_endpoint_id(self, input: Option<String>) -> Self
pub fn set_client_vpn_endpoint_id(self, input: Option<String>) -> Self
The ID of the Client VPN endpoint.
sourcepub fn get_client_vpn_endpoint_id(&self) -> &Option<String>
pub fn get_client_vpn_endpoint_id(&self) -> &Option<String>
The ID of the Client VPN endpoint.
sourcepub fn target_network_cidr(self, input: impl Into<String>) -> Self
pub fn target_network_cidr(self, input: impl Into<String>) -> Self
The IPv4 address range, in CIDR notation, of the network for which access is being authorized.
This field is required.sourcepub fn set_target_network_cidr(self, input: Option<String>) -> Self
pub fn set_target_network_cidr(self, input: Option<String>) -> Self
The IPv4 address range, in CIDR notation, of the network for which access is being authorized.
sourcepub fn get_target_network_cidr(&self) -> &Option<String>
pub fn get_target_network_cidr(&self) -> &Option<String>
The IPv4 address range, in CIDR notation, of the network for which access is being authorized.
sourcepub fn access_group_id(self, input: impl Into<String>) -> Self
pub fn access_group_id(self, input: impl Into<String>) -> Self
The ID of the group to grant access to, for example, the Active Directory group or identity provider (IdP) group. Required if AuthorizeAllGroups is false or not specified.
sourcepub fn set_access_group_id(self, input: Option<String>) -> Self
pub fn set_access_group_id(self, input: Option<String>) -> Self
The ID of the group to grant access to, for example, the Active Directory group or identity provider (IdP) group. Required if AuthorizeAllGroups is false or not specified.
sourcepub fn get_access_group_id(&self) -> &Option<String>
pub fn get_access_group_id(&self) -> &Option<String>
The ID of the group to grant access to, for example, the Active Directory group or identity provider (IdP) group. Required if AuthorizeAllGroups is false or not specified.
Indicates whether to grant access to all clients. Specify true to grant all clients who successfully establish a VPN connection access to the network. Must be set to true if AccessGroupId is not specified.
Indicates whether to grant access to all clients. Specify true to grant all clients who successfully establish a VPN connection access to the network. Must be set to true if AccessGroupId is not specified.
Indicates whether to grant access to all clients. Specify true to grant all clients who successfully establish a VPN connection access to the network. Must be set to true if AccessGroupId is not specified.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A brief description of the authorization rule.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A brief description of the authorization rule.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
A brief description of the authorization rule.
sourcepub fn client_token(self, input: impl Into<String>) -> Self
pub fn client_token(self, input: impl Into<String>) -> Self
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to ensure idempotency.
sourcepub fn set_client_token(self, input: Option<String>) -> Self
pub fn set_client_token(self, input: Option<String>) -> Self
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to ensure idempotency.
sourcepub fn get_client_token(&self) -> &Option<String>
pub fn get_client_token(&self) -> &Option<String>
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to ensure idempotency.
sourcepub fn dry_run(self, input: bool) -> Self
pub fn dry_run(self, input: bool) -> Self
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
sourcepub fn set_dry_run(self, input: Option<bool>) -> Self
pub fn set_dry_run(self, input: Option<bool>) -> Self
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
sourcepub fn get_dry_run(&self) -> &Option<bool>
pub fn get_dry_run(&self) -> &Option<bool>
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
sourcepub fn build(self) -> Result<AuthorizeClientVpnIngressInput, BuildError>
pub fn build(self) -> Result<AuthorizeClientVpnIngressInput, BuildError>
Consumes the builder and constructs a AuthorizeClientVpnIngressInput.
source§impl AuthorizeClientVpnIngressInputBuilder
impl AuthorizeClientVpnIngressInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<AuthorizeClientVpnIngressOutput, SdkError<AuthorizeClientVpnIngressError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<AuthorizeClientVpnIngressOutput, SdkError<AuthorizeClientVpnIngressError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for AuthorizeClientVpnIngressInputBuilder
impl Clone for AuthorizeClientVpnIngressInputBuilder
source§fn clone(&self) -> AuthorizeClientVpnIngressInputBuilder
fn clone(&self) -> AuthorizeClientVpnIngressInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for AuthorizeClientVpnIngressInputBuilder
impl Default for AuthorizeClientVpnIngressInputBuilder
source§fn default() -> AuthorizeClientVpnIngressInputBuilder
fn default() -> AuthorizeClientVpnIngressInputBuilder
source§impl PartialEq for AuthorizeClientVpnIngressInputBuilder
impl PartialEq for AuthorizeClientVpnIngressInputBuilder
source§fn eq(&self, other: &AuthorizeClientVpnIngressInputBuilder) -> bool
fn eq(&self, other: &AuthorizeClientVpnIngressInputBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for AuthorizeClientVpnIngressInputBuilder
Auto Trait Implementations§
impl Freeze for AuthorizeClientVpnIngressInputBuilder
impl RefUnwindSafe for AuthorizeClientVpnIngressInputBuilder
impl Send for AuthorizeClientVpnIngressInputBuilder
impl Sync for AuthorizeClientVpnIngressInputBuilder
impl Unpin for AuthorizeClientVpnIngressInputBuilder
impl UnwindSafe for AuthorizeClientVpnIngressInputBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more