#[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 ==
.