#[non_exhaustive]pub struct ParameterConfigurationBuilder { /* private fields */ }Expand description
A builder for ParameterConfiguration.
Implementations§
source§impl ParameterConfigurationBuilder
impl ParameterConfigurationBuilder
sourcepub fn value_type(self, input: ParameterValueType) -> Self
pub fn value_type(self, input: ParameterValueType) -> Self
Identifies whether a control parameter uses a custom user-defined value or subscribes to the default Security Hub behavior.
When ValueType is set equal to DEFAULT, the default behavior can be a specific Security Hub default value, or the default behavior can be to ignore a specific parameter. When ValueType is set equal to DEFAULT, Security Hub ignores user-provided input for the Value field.
When ValueType is set equal to CUSTOM, the Value field can't be empty.
sourcepub fn set_value_type(self, input: Option<ParameterValueType>) -> Self
pub fn set_value_type(self, input: Option<ParameterValueType>) -> Self
Identifies whether a control parameter uses a custom user-defined value or subscribes to the default Security Hub behavior.
When ValueType is set equal to DEFAULT, the default behavior can be a specific Security Hub default value, or the default behavior can be to ignore a specific parameter. When ValueType is set equal to DEFAULT, Security Hub ignores user-provided input for the Value field.
When ValueType is set equal to CUSTOM, the Value field can't be empty.
sourcepub fn get_value_type(&self) -> &Option<ParameterValueType>
pub fn get_value_type(&self) -> &Option<ParameterValueType>
Identifies whether a control parameter uses a custom user-defined value or subscribes to the default Security Hub behavior.
When ValueType is set equal to DEFAULT, the default behavior can be a specific Security Hub default value, or the default behavior can be to ignore a specific parameter. When ValueType is set equal to DEFAULT, Security Hub ignores user-provided input for the Value field.
When ValueType is set equal to CUSTOM, the Value field can't be empty.
sourcepub fn value(self, input: ParameterValue) -> Self
pub fn value(self, input: ParameterValue) -> Self
The current value of a control parameter.
sourcepub fn set_value(self, input: Option<ParameterValue>) -> Self
pub fn set_value(self, input: Option<ParameterValue>) -> Self
The current value of a control parameter.
sourcepub fn get_value(&self) -> &Option<ParameterValue>
pub fn get_value(&self) -> &Option<ParameterValue>
The current value of a control parameter.
sourcepub fn build(self) -> ParameterConfiguration
pub fn build(self) -> ParameterConfiguration
Consumes the builder and constructs a ParameterConfiguration.
Trait Implementations§
source§impl Clone for ParameterConfigurationBuilder
impl Clone for ParameterConfigurationBuilder
source§fn clone(&self) -> ParameterConfigurationBuilder
fn clone(&self) -> ParameterConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for ParameterConfigurationBuilder
impl Default for ParameterConfigurationBuilder
source§fn default() -> ParameterConfigurationBuilder
fn default() -> ParameterConfigurationBuilder
source§impl PartialEq for ParameterConfigurationBuilder
impl PartialEq for ParameterConfigurationBuilder
source§fn eq(&self, other: &ParameterConfigurationBuilder) -> bool
fn eq(&self, other: &ParameterConfigurationBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ParameterConfigurationBuilder
Auto Trait Implementations§
impl Freeze for ParameterConfigurationBuilder
impl RefUnwindSafe for ParameterConfigurationBuilder
impl Send for ParameterConfigurationBuilder
impl Sync for ParameterConfigurationBuilder
impl Unpin for ParameterConfigurationBuilder
impl UnwindSafe for ParameterConfigurationBuilder
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