Struct aws_sdk_ec2::operation::modify_security_group_rules::builders::ModifySecurityGroupRulesInputBuilder
source · #[non_exhaustive]pub struct ModifySecurityGroupRulesInputBuilder { /* private fields */ }
Expand description
A builder for ModifySecurityGroupRulesInput
.
Implementations§
source§impl ModifySecurityGroupRulesInputBuilder
impl ModifySecurityGroupRulesInputBuilder
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 security_group_rules(self, input: SecurityGroupRuleUpdate) -> Self
pub fn security_group_rules(self, input: SecurityGroupRuleUpdate) -> Self
Appends an item to security_group_rules
.
To override the contents of this collection use set_security_group_rules
.
Information about the security group properties to update.
sourcepub fn set_security_group_rules(
self,
input: Option<Vec<SecurityGroupRuleUpdate>>
) -> Self
pub fn set_security_group_rules( self, input: Option<Vec<SecurityGroupRuleUpdate>> ) -> Self
Information about the security group properties to update.
sourcepub fn get_security_group_rules(&self) -> &Option<Vec<SecurityGroupRuleUpdate>>
pub fn get_security_group_rules(&self) -> &Option<Vec<SecurityGroupRuleUpdate>>
Information about the security group properties to update.
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<ModifySecurityGroupRulesInput, BuildError>
pub fn build(self) -> Result<ModifySecurityGroupRulesInput, BuildError>
Consumes the builder and constructs a ModifySecurityGroupRulesInput
.
source§impl ModifySecurityGroupRulesInputBuilder
impl ModifySecurityGroupRulesInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<ModifySecurityGroupRulesOutput, SdkError<ModifySecurityGroupRulesError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<ModifySecurityGroupRulesOutput, SdkError<ModifySecurityGroupRulesError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for ModifySecurityGroupRulesInputBuilder
impl Clone for ModifySecurityGroupRulesInputBuilder
source§fn clone(&self) -> ModifySecurityGroupRulesInputBuilder
fn clone(&self) -> ModifySecurityGroupRulesInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ModifySecurityGroupRulesInputBuilder
impl Default for ModifySecurityGroupRulesInputBuilder
source§fn default() -> ModifySecurityGroupRulesInputBuilder
fn default() -> ModifySecurityGroupRulesInputBuilder
source§impl PartialEq<ModifySecurityGroupRulesInputBuilder> for ModifySecurityGroupRulesInputBuilder
impl PartialEq<ModifySecurityGroupRulesInputBuilder> for ModifySecurityGroupRulesInputBuilder
source§fn eq(&self, other: &ModifySecurityGroupRulesInputBuilder) -> bool
fn eq(&self, other: &ModifySecurityGroupRulesInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.