#[non_exhaustive]pub struct RuleDeclarationBuilder { /* private fields */ }
Expand description
A builder for RuleDeclaration
.
Implementations§
source§impl RuleDeclarationBuilder
impl RuleDeclarationBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the rule that is created for the condition, such as CheckAllResults.
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 that is created for the condition, such as CheckAllResults.
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
The name of the rule that is created for the condition, such as CheckAllResults.
sourcepub fn rule_type_id(self, input: RuleTypeId) -> Self
pub fn rule_type_id(self, input: RuleTypeId) -> Self
The ID for the rule type, which is made up of the combined values for category, owner, provider, and version.
This field is required.sourcepub fn set_rule_type_id(self, input: Option<RuleTypeId>) -> Self
pub fn set_rule_type_id(self, input: Option<RuleTypeId>) -> Self
The ID for the rule type, which is made up of the combined values for category, owner, provider, and version.
sourcepub fn get_rule_type_id(&self) -> &Option<RuleTypeId>
pub fn get_rule_type_id(&self) -> &Option<RuleTypeId>
The ID for the rule type, which is made up of the combined values for category, owner, provider, and version.
sourcepub fn configuration(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn configuration(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to configuration
.
To override the contents of this collection use set_configuration
.
The action configuration fields for the rule.
sourcepub fn set_configuration(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_configuration(self, input: Option<HashMap<String, String>>) -> Self
The action configuration fields for the rule.
sourcepub fn get_configuration(&self) -> &Option<HashMap<String, String>>
pub fn get_configuration(&self) -> &Option<HashMap<String, String>>
The action configuration fields for the rule.
sourcepub fn input_artifacts(self, input: InputArtifact) -> Self
pub fn input_artifacts(self, input: InputArtifact) -> Self
Appends an item to input_artifacts
.
To override the contents of this collection use set_input_artifacts
.
The input artifacts fields for the rule, such as specifying an input file for the rule.
sourcepub fn set_input_artifacts(self, input: Option<Vec<InputArtifact>>) -> Self
pub fn set_input_artifacts(self, input: Option<Vec<InputArtifact>>) -> Self
The input artifacts fields for the rule, such as specifying an input file for the rule.
sourcepub fn get_input_artifacts(&self) -> &Option<Vec<InputArtifact>>
pub fn get_input_artifacts(&self) -> &Option<Vec<InputArtifact>>
The input artifacts fields for the rule, such as specifying an input file for the rule.
sourcepub fn role_arn(self, input: impl Into<String>) -> Self
pub fn role_arn(self, input: impl Into<String>) -> Self
The pipeline role ARN associated with the rule.
sourcepub fn set_role_arn(self, input: Option<String>) -> Self
pub fn set_role_arn(self, input: Option<String>) -> Self
The pipeline role ARN associated with the rule.
sourcepub fn get_role_arn(&self) -> &Option<String>
pub fn get_role_arn(&self) -> &Option<String>
The pipeline role ARN associated with the rule.
sourcepub fn region(self, input: impl Into<String>) -> Self
pub fn region(self, input: impl Into<String>) -> Self
The Region for the condition associated with the rule.
sourcepub fn set_region(self, input: Option<String>) -> Self
pub fn set_region(self, input: Option<String>) -> Self
The Region for the condition associated with the rule.
sourcepub fn get_region(&self) -> &Option<String>
pub fn get_region(&self) -> &Option<String>
The Region for the condition associated with the rule.
sourcepub fn timeout_in_minutes(self, input: i32) -> Self
pub fn timeout_in_minutes(self, input: i32) -> Self
The action timeout for the rule.
sourcepub fn set_timeout_in_minutes(self, input: Option<i32>) -> Self
pub fn set_timeout_in_minutes(self, input: Option<i32>) -> Self
The action timeout for the rule.
sourcepub fn get_timeout_in_minutes(&self) -> &Option<i32>
pub fn get_timeout_in_minutes(&self) -> &Option<i32>
The action timeout for the rule.
sourcepub fn build(self) -> Result<RuleDeclaration, BuildError>
pub fn build(self) -> Result<RuleDeclaration, BuildError>
Consumes the builder and constructs a RuleDeclaration
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for RuleDeclarationBuilder
impl Clone for RuleDeclarationBuilder
source§fn clone(&self) -> RuleDeclarationBuilder
fn clone(&self) -> RuleDeclarationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RuleDeclarationBuilder
impl Debug for RuleDeclarationBuilder
source§impl Default for RuleDeclarationBuilder
impl Default for RuleDeclarationBuilder
source§fn default() -> RuleDeclarationBuilder
fn default() -> RuleDeclarationBuilder
source§impl PartialEq for RuleDeclarationBuilder
impl PartialEq for RuleDeclarationBuilder
impl StructuralPartialEq for RuleDeclarationBuilder
Auto Trait Implementations§
impl Freeze for RuleDeclarationBuilder
impl RefUnwindSafe for RuleDeclarationBuilder
impl Send for RuleDeclarationBuilder
impl Sync for RuleDeclarationBuilder
impl Unpin for RuleDeclarationBuilder
impl UnwindSafe for RuleDeclarationBuilder
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