Struct aws_sdk_networkfirewall::operation::create_rule_group::builders::CreateRuleGroupOutputBuilder
source · #[non_exhaustive]pub struct CreateRuleGroupOutputBuilder { /* private fields */ }
Expand description
A builder for CreateRuleGroupOutput
.
Implementations§
source§impl CreateRuleGroupOutputBuilder
impl CreateRuleGroupOutputBuilder
sourcepub fn update_token(self, input: impl Into<String>) -> Self
pub fn update_token(self, input: impl Into<String>) -> Self
A token used for optimistic locking. Network Firewall returns a token to your requests that access the rule group. The token marks the state of the rule group resource at the time of the request.
To make changes to the rule group, you provide the token in your request. Network Firewall uses the token to ensure that the rule group hasn't changed since you last retrieved it. If it has changed, the operation fails with an InvalidTokenException
. If this happens, retrieve the rule group again to get a current copy of it with a current token. Reapply your changes as needed, then try the operation again using the new token.
sourcepub fn set_update_token(self, input: Option<String>) -> Self
pub fn set_update_token(self, input: Option<String>) -> Self
A token used for optimistic locking. Network Firewall returns a token to your requests that access the rule group. The token marks the state of the rule group resource at the time of the request.
To make changes to the rule group, you provide the token in your request. Network Firewall uses the token to ensure that the rule group hasn't changed since you last retrieved it. If it has changed, the operation fails with an InvalidTokenException
. If this happens, retrieve the rule group again to get a current copy of it with a current token. Reapply your changes as needed, then try the operation again using the new token.
sourcepub fn get_update_token(&self) -> &Option<String>
pub fn get_update_token(&self) -> &Option<String>
A token used for optimistic locking. Network Firewall returns a token to your requests that access the rule group. The token marks the state of the rule group resource at the time of the request.
To make changes to the rule group, you provide the token in your request. Network Firewall uses the token to ensure that the rule group hasn't changed since you last retrieved it. If it has changed, the operation fails with an InvalidTokenException
. If this happens, retrieve the rule group again to get a current copy of it with a current token. Reapply your changes as needed, then try the operation again using the new token.
sourcepub fn rule_group_response(self, input: RuleGroupResponse) -> Self
pub fn rule_group_response(self, input: RuleGroupResponse) -> Self
The high-level properties of a rule group. This, along with the RuleGroup
, define the rule group. You can retrieve all objects for a rule group by calling DescribeRuleGroup
.
sourcepub fn set_rule_group_response(self, input: Option<RuleGroupResponse>) -> Self
pub fn set_rule_group_response(self, input: Option<RuleGroupResponse>) -> Self
The high-level properties of a rule group. This, along with the RuleGroup
, define the rule group. You can retrieve all objects for a rule group by calling DescribeRuleGroup
.
sourcepub fn get_rule_group_response(&self) -> &Option<RuleGroupResponse>
pub fn get_rule_group_response(&self) -> &Option<RuleGroupResponse>
The high-level properties of a rule group. This, along with the RuleGroup
, define the rule group. You can retrieve all objects for a rule group by calling DescribeRuleGroup
.
sourcepub fn build(self) -> Result<CreateRuleGroupOutput, BuildError>
pub fn build(self) -> Result<CreateRuleGroupOutput, BuildError>
Consumes the builder and constructs a CreateRuleGroupOutput
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for CreateRuleGroupOutputBuilder
impl Clone for CreateRuleGroupOutputBuilder
source§fn clone(&self) -> CreateRuleGroupOutputBuilder
fn clone(&self) -> CreateRuleGroupOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateRuleGroupOutputBuilder
impl Debug for CreateRuleGroupOutputBuilder
source§impl Default for CreateRuleGroupOutputBuilder
impl Default for CreateRuleGroupOutputBuilder
source§fn default() -> CreateRuleGroupOutputBuilder
fn default() -> CreateRuleGroupOutputBuilder
source§impl PartialEq for CreateRuleGroupOutputBuilder
impl PartialEq for CreateRuleGroupOutputBuilder
source§fn eq(&self, other: &CreateRuleGroupOutputBuilder) -> bool
fn eq(&self, other: &CreateRuleGroupOutputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateRuleGroupOutputBuilder
Auto Trait Implementations§
impl Freeze for CreateRuleGroupOutputBuilder
impl RefUnwindSafe for CreateRuleGroupOutputBuilder
impl Send for CreateRuleGroupOutputBuilder
impl Sync for CreateRuleGroupOutputBuilder
impl Unpin for CreateRuleGroupOutputBuilder
impl UnwindSafe for CreateRuleGroupOutputBuilder
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