Struct aws_sdk_ec2::operation::delete_security_group::builders::DeleteSecurityGroupInputBuilder
source · #[non_exhaustive]pub struct DeleteSecurityGroupInputBuilder { /* private fields */ }
Expand description
A builder for DeleteSecurityGroupInput
.
Implementations§
source§impl DeleteSecurityGroupInputBuilder
impl DeleteSecurityGroupInputBuilder
sourcepub fn set_group_id(self, input: Option<String>) -> Self
pub fn set_group_id(self, input: Option<String>) -> Self
The ID of the security group.
sourcepub fn get_group_id(&self) -> &Option<String>
pub fn get_group_id(&self) -> &Option<String>
The ID of the security group.
sourcepub fn group_name(self, input: impl Into<String>) -> Self
pub fn group_name(self, input: impl Into<String>) -> Self
[Default VPC] The name of the security group. You can specify either the security group name or the security group ID. For security groups in a nondefault VPC, you must specify the security group ID.
sourcepub fn set_group_name(self, input: Option<String>) -> Self
pub fn set_group_name(self, input: Option<String>) -> Self
[Default VPC] The name of the security group. You can specify either the security group name or the security group ID. For security groups in a nondefault VPC, you must specify the security group ID.
sourcepub fn get_group_name(&self) -> &Option<String>
pub fn get_group_name(&self) -> &Option<String>
[Default VPC] The name of the security group. You can specify either the security group name or the security group ID. For security groups in a nondefault VPC, you must specify the security group ID.
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<DeleteSecurityGroupInput, BuildError>
pub fn build(self) -> Result<DeleteSecurityGroupInput, BuildError>
Consumes the builder and constructs a DeleteSecurityGroupInput
.
source§impl DeleteSecurityGroupInputBuilder
impl DeleteSecurityGroupInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<DeleteSecurityGroupOutput, SdkError<DeleteSecurityGroupError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<DeleteSecurityGroupOutput, SdkError<DeleteSecurityGroupError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for DeleteSecurityGroupInputBuilder
impl Clone for DeleteSecurityGroupInputBuilder
source§fn clone(&self) -> DeleteSecurityGroupInputBuilder
fn clone(&self) -> DeleteSecurityGroupInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for DeleteSecurityGroupInputBuilder
impl Default for DeleteSecurityGroupInputBuilder
source§fn default() -> DeleteSecurityGroupInputBuilder
fn default() -> DeleteSecurityGroupInputBuilder
source§impl PartialEq<DeleteSecurityGroupInputBuilder> for DeleteSecurityGroupInputBuilder
impl PartialEq<DeleteSecurityGroupInputBuilder> for DeleteSecurityGroupInputBuilder
source§fn eq(&self, other: &DeleteSecurityGroupInputBuilder) -> bool
fn eq(&self, other: &DeleteSecurityGroupInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.