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 group_id(self, input: impl Into<String>) -> Self
pub fn group_id(self, input: impl Into<String>) -> Self
The ID of the security group. Required for a nondefault VPC.
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. Required for a nondefault VPC.
sourcepub fn group_name(self, input: impl Into<String>) -> Self
pub fn group_name(self, input: impl Into<String>) -> Self
[EC2-Classic, 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
[EC2-Classic, 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 build(self) -> Result<DeleteSecurityGroupInput, BuildError>
pub fn build(self) -> Result<DeleteSecurityGroupInput, BuildError>
Consumes the builder and constructs a DeleteSecurityGroupInput
.
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 ==
.