Struct aws_sdk_codepipeline::types::builders::RuleTypeIdBuilder
source · #[non_exhaustive]pub struct RuleTypeIdBuilder { /* private fields */ }
Expand description
A builder for RuleTypeId
.
Implementations§
source§impl RuleTypeIdBuilder
impl RuleTypeIdBuilder
sourcepub fn category(self, input: RuleCategory) -> Self
pub fn category(self, input: RuleCategory) -> Self
A category defines what kind of rule can be run in the stage, and constrains the provider type for the rule. Valid categories are limited to one of the following values.
-
INVOKE
-
Approval
-
Rule
sourcepub fn set_category(self, input: Option<RuleCategory>) -> Self
pub fn set_category(self, input: Option<RuleCategory>) -> Self
A category defines what kind of rule can be run in the stage, and constrains the provider type for the rule. Valid categories are limited to one of the following values.
-
INVOKE
-
Approval
-
Rule
sourcepub fn get_category(&self) -> &Option<RuleCategory>
pub fn get_category(&self) -> &Option<RuleCategory>
A category defines what kind of rule can be run in the stage, and constrains the provider type for the rule. Valid categories are limited to one of the following values.
-
INVOKE
-
Approval
-
Rule
sourcepub fn owner(self, input: RuleOwner) -> Self
pub fn owner(self, input: RuleOwner) -> Self
The creator of the rule being called. The valid value for the Owner
field in the rule category is AWS
.
sourcepub fn set_owner(self, input: Option<RuleOwner>) -> Self
pub fn set_owner(self, input: Option<RuleOwner>) -> Self
The creator of the rule being called. The valid value for the Owner
field in the rule category is AWS
.
sourcepub fn get_owner(&self) -> &Option<RuleOwner>
pub fn get_owner(&self) -> &Option<RuleOwner>
The creator of the rule being called. The valid value for the Owner
field in the rule category is AWS
.
sourcepub fn provider(self, input: impl Into<String>) -> Self
pub fn provider(self, input: impl Into<String>) -> Self
The provider of the service being called by the rule. Valid providers are determined by the rulecategory. For example, a managed rule in the Rule category type has an owner of AWS, which would be specified as AWS
.
sourcepub fn set_provider(self, input: Option<String>) -> Self
pub fn set_provider(self, input: Option<String>) -> Self
The provider of the service being called by the rule. Valid providers are determined by the rulecategory. For example, a managed rule in the Rule category type has an owner of AWS, which would be specified as AWS
.
sourcepub fn get_provider(&self) -> &Option<String>
pub fn get_provider(&self) -> &Option<String>
The provider of the service being called by the rule. Valid providers are determined by the rulecategory. For example, a managed rule in the Rule category type has an owner of AWS, which would be specified as AWS
.
sourcepub fn version(self, input: impl Into<String>) -> Self
pub fn version(self, input: impl Into<String>) -> Self
A string that describes the rule version.
sourcepub fn set_version(self, input: Option<String>) -> Self
pub fn set_version(self, input: Option<String>) -> Self
A string that describes the rule version.
sourcepub fn get_version(&self) -> &Option<String>
pub fn get_version(&self) -> &Option<String>
A string that describes the rule version.
sourcepub fn build(self) -> Result<RuleTypeId, BuildError>
pub fn build(self) -> Result<RuleTypeId, BuildError>
Consumes the builder and constructs a RuleTypeId
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for RuleTypeIdBuilder
impl Clone for RuleTypeIdBuilder
source§fn clone(&self) -> RuleTypeIdBuilder
fn clone(&self) -> RuleTypeIdBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RuleTypeIdBuilder
impl Debug for RuleTypeIdBuilder
source§impl Default for RuleTypeIdBuilder
impl Default for RuleTypeIdBuilder
source§fn default() -> RuleTypeIdBuilder
fn default() -> RuleTypeIdBuilder
source§impl PartialEq for RuleTypeIdBuilder
impl PartialEq for RuleTypeIdBuilder
impl StructuralPartialEq for RuleTypeIdBuilder
Auto Trait Implementations§
impl Freeze for RuleTypeIdBuilder
impl RefUnwindSafe for RuleTypeIdBuilder
impl Send for RuleTypeIdBuilder
impl Sync for RuleTypeIdBuilder
impl Unpin for RuleTypeIdBuilder
impl UnwindSafe for RuleTypeIdBuilder
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