#[non_exhaustive]pub struct RuleConfigurationPropertyBuilder { /* private fields */ }
Expand description
A builder for RuleConfigurationProperty
.
Implementations§
source§impl RuleConfigurationPropertyBuilder
impl RuleConfigurationPropertyBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the rule configuration property.
This field is required.sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of the rule configuration property.
sourcepub fn required(self, input: bool) -> Self
pub fn required(self, input: bool) -> Self
Whether the configuration property is a required value.
This field is required.sourcepub fn set_required(self, input: Option<bool>) -> Self
pub fn set_required(self, input: Option<bool>) -> Self
Whether the configuration property is a required value.
sourcepub fn get_required(&self) -> &Option<bool>
pub fn get_required(&self) -> &Option<bool>
Whether the configuration property is a required value.
sourcepub fn key(self, input: bool) -> Self
pub fn key(self, input: bool) -> Self
Whether the configuration property is a key.
This field is required.sourcepub fn secret(self, input: bool) -> Self
pub fn secret(self, input: bool) -> Self
Whether the configuration property is secret.
When updating a pipeline, passing * * * * * without changing any other values of the action preserves the previous value of the secret.
This field is required.sourcepub fn set_secret(self, input: Option<bool>) -> Self
pub fn set_secret(self, input: Option<bool>) -> Self
Whether the configuration property is secret.
When updating a pipeline, passing * * * * * without changing any other values of the action preserves the previous value of the secret.
sourcepub fn get_secret(&self) -> &Option<bool>
pub fn get_secret(&self) -> &Option<bool>
Whether the configuration property is secret.
When updating a pipeline, passing * * * * * without changing any other values of the action preserves the previous value of the secret.
sourcepub fn queryable(self, input: bool) -> Self
pub fn queryable(self, input: bool) -> Self
Indicates whether the property can be queried.
If you create a pipeline with a condition and rule, and that rule contains a queryable property, the value for that configuration property is subject to other restrictions. The value must be less than or equal to twenty (20) characters. The value can contain only alphanumeric characters, underscores, and hyphens.
sourcepub fn set_queryable(self, input: Option<bool>) -> Self
pub fn set_queryable(self, input: Option<bool>) -> Self
Indicates whether the property can be queried.
If you create a pipeline with a condition and rule, and that rule contains a queryable property, the value for that configuration property is subject to other restrictions. The value must be less than or equal to twenty (20) characters. The value can contain only alphanumeric characters, underscores, and hyphens.
sourcepub fn get_queryable(&self) -> &Option<bool>
pub fn get_queryable(&self) -> &Option<bool>
Indicates whether the property can be queried.
If you create a pipeline with a condition and rule, and that rule contains a queryable property, the value for that configuration property is subject to other restrictions. The value must be less than or equal to twenty (20) characters. The value can contain only alphanumeric characters, underscores, and hyphens.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description of the action configuration property that is displayed to users.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description of the action configuration property that is displayed to users.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The description of the action configuration property that is displayed to users.
sourcepub fn type(self, input: RuleConfigurationPropertyType) -> Self
pub fn type(self, input: RuleConfigurationPropertyType) -> Self
The type of the configuration property.
sourcepub fn set_type(self, input: Option<RuleConfigurationPropertyType>) -> Self
pub fn set_type(self, input: Option<RuleConfigurationPropertyType>) -> Self
The type of the configuration property.
sourcepub fn get_type(&self) -> &Option<RuleConfigurationPropertyType>
pub fn get_type(&self) -> &Option<RuleConfigurationPropertyType>
The type of the configuration property.
sourcepub fn build(self) -> Result<RuleConfigurationProperty, BuildError>
pub fn build(self) -> Result<RuleConfigurationProperty, BuildError>
Consumes the builder and constructs a RuleConfigurationProperty
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for RuleConfigurationPropertyBuilder
impl Clone for RuleConfigurationPropertyBuilder
source§fn clone(&self) -> RuleConfigurationPropertyBuilder
fn clone(&self) -> RuleConfigurationPropertyBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for RuleConfigurationPropertyBuilder
impl Default for RuleConfigurationPropertyBuilder
source§fn default() -> RuleConfigurationPropertyBuilder
fn default() -> RuleConfigurationPropertyBuilder
source§impl PartialEq for RuleConfigurationPropertyBuilder
impl PartialEq for RuleConfigurationPropertyBuilder
source§fn eq(&self, other: &RuleConfigurationPropertyBuilder) -> bool
fn eq(&self, other: &RuleConfigurationPropertyBuilder) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for RuleConfigurationPropertyBuilder
Auto Trait Implementations§
impl Freeze for RuleConfigurationPropertyBuilder
impl RefUnwindSafe for RuleConfigurationPropertyBuilder
impl Send for RuleConfigurationPropertyBuilder
impl Sync for RuleConfigurationPropertyBuilder
impl Unpin for RuleConfigurationPropertyBuilder
impl UnwindSafe for RuleConfigurationPropertyBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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