Struct aws_sdk_ec2::operation::create_instance_connect_endpoint::builders::CreateInstanceConnectEndpointInputBuilder
source · #[non_exhaustive]pub struct CreateInstanceConnectEndpointInputBuilder { /* private fields */ }
Expand description
A builder for CreateInstanceConnectEndpointInput
.
Implementations§
source§impl CreateInstanceConnectEndpointInputBuilder
impl CreateInstanceConnectEndpointInputBuilder
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 subnet_id(self, input: impl Into<String>) -> Self
pub fn subnet_id(self, input: impl Into<String>) -> Self
The ID of the subnet in which to create the EC2 Instance Connect Endpoint.
sourcepub fn set_subnet_id(self, input: Option<String>) -> Self
pub fn set_subnet_id(self, input: Option<String>) -> Self
The ID of the subnet in which to create the EC2 Instance Connect Endpoint.
sourcepub fn get_subnet_id(&self) -> &Option<String>
pub fn get_subnet_id(&self) -> &Option<String>
The ID of the subnet in which to create the EC2 Instance Connect Endpoint.
sourcepub fn security_group_ids(self, input: impl Into<String>) -> Self
pub fn security_group_ids(self, input: impl Into<String>) -> Self
Appends an item to security_group_ids
.
To override the contents of this collection use set_security_group_ids
.
One or more security groups to associate with the endpoint. If you don't specify a security group, the default security group for your VPC will be associated with the endpoint.
sourcepub fn set_security_group_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_security_group_ids(self, input: Option<Vec<String>>) -> Self
One or more security groups to associate with the endpoint. If you don't specify a security group, the default security group for your VPC will be associated with the endpoint.
sourcepub fn get_security_group_ids(&self) -> &Option<Vec<String>>
pub fn get_security_group_ids(&self) -> &Option<Vec<String>>
One or more security groups to associate with the endpoint. If you don't specify a security group, the default security group for your VPC will be associated with the endpoint.
sourcepub fn preserve_client_ip(self, input: bool) -> Self
pub fn preserve_client_ip(self, input: bool) -> Self
Indicates whether your client's IP address is preserved as the source. The value is true
or false
.
-
If
true
, your client's IP address is used when you connect to a resource. -
If
false
, the elastic network interface IP address is used when you connect to a resource.
Default: true
sourcepub fn set_preserve_client_ip(self, input: Option<bool>) -> Self
pub fn set_preserve_client_ip(self, input: Option<bool>) -> Self
Indicates whether your client's IP address is preserved as the source. The value is true
or false
.
-
If
true
, your client's IP address is used when you connect to a resource. -
If
false
, the elastic network interface IP address is used when you connect to a resource.
Default: true
sourcepub fn get_preserve_client_ip(&self) -> &Option<bool>
pub fn get_preserve_client_ip(&self) -> &Option<bool>
Indicates whether your client's IP address is preserved as the source. The value is true
or false
.
-
If
true
, your client's IP address is used when you connect to a resource. -
If
false
, the elastic network interface IP address is used when you connect to a resource.
Default: true
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.
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.
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.
sourcepub fn tag_specifications(self, input: TagSpecification) -> Self
pub fn tag_specifications(self, input: TagSpecification) -> Self
Appends an item to tag_specifications
.
To override the contents of this collection use set_tag_specifications
.
The tags to apply to the EC2 Instance Connect Endpoint during creation.
sourcepub fn set_tag_specifications(
self,
input: Option<Vec<TagSpecification>>
) -> Self
pub fn set_tag_specifications( self, input: Option<Vec<TagSpecification>> ) -> Self
The tags to apply to the EC2 Instance Connect Endpoint during creation.
sourcepub fn get_tag_specifications(&self) -> &Option<Vec<TagSpecification>>
pub fn get_tag_specifications(&self) -> &Option<Vec<TagSpecification>>
The tags to apply to the EC2 Instance Connect Endpoint during creation.
sourcepub fn build(self) -> Result<CreateInstanceConnectEndpointInput, BuildError>
pub fn build(self) -> Result<CreateInstanceConnectEndpointInput, BuildError>
Consumes the builder and constructs a CreateInstanceConnectEndpointInput
.
source§impl CreateInstanceConnectEndpointInputBuilder
impl CreateInstanceConnectEndpointInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateInstanceConnectEndpointOutput, SdkError<CreateInstanceConnectEndpointError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateInstanceConnectEndpointOutput, SdkError<CreateInstanceConnectEndpointError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateInstanceConnectEndpointInputBuilder
impl Clone for CreateInstanceConnectEndpointInputBuilder
source§fn clone(&self) -> CreateInstanceConnectEndpointInputBuilder
fn clone(&self) -> CreateInstanceConnectEndpointInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CreateInstanceConnectEndpointInputBuilder
impl Default for CreateInstanceConnectEndpointInputBuilder
source§fn default() -> CreateInstanceConnectEndpointInputBuilder
fn default() -> CreateInstanceConnectEndpointInputBuilder
source§impl PartialEq<CreateInstanceConnectEndpointInputBuilder> for CreateInstanceConnectEndpointInputBuilder
impl PartialEq<CreateInstanceConnectEndpointInputBuilder> for CreateInstanceConnectEndpointInputBuilder
source§fn eq(&self, other: &CreateInstanceConnectEndpointInputBuilder) -> bool
fn eq(&self, other: &CreateInstanceConnectEndpointInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.