#[non_exhaustive]pub struct ActionConfigurationPropertyBuilder { /* private fields */ }
Expand description
A builder for ActionConfigurationProperty
.
Implementations§
source§impl ActionConfigurationPropertyBuilder
impl ActionConfigurationPropertyBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the action 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 action 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. Secrets are hidden from all calls except for GetJobDetails
, GetThirdPartyJobDetails
, PollForJobs
, and PollForThirdPartyJobs
.
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. Secrets are hidden from all calls except for GetJobDetails
, GetThirdPartyJobDetails
, PollForJobs
, and PollForThirdPartyJobs
.
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. Secrets are hidden from all calls except for GetJobDetails
, GetThirdPartyJobDetails
, PollForJobs
, and PollForThirdPartyJobs
.
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 that the property is used with PollForJobs
. When creating a custom action, an action can have up to one queryable property. If it has one, that property must be both required and not secret.
If you create a pipeline with a custom action type, and that custom action 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 that the property is used with PollForJobs
. When creating a custom action, an action can have up to one queryable property. If it has one, that property must be both required and not secret.
If you create a pipeline with a custom action type, and that custom action 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 that the property is used with PollForJobs
. When creating a custom action, an action can have up to one queryable property. If it has one, that property must be both required and not secret.
If you create a pipeline with a custom action type, and that custom action 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: ActionConfigurationPropertyType) -> Self
pub fn type(self, input: ActionConfigurationPropertyType) -> Self
The type of the configuration property.
sourcepub fn set_type(self, input: Option<ActionConfigurationPropertyType>) -> Self
pub fn set_type(self, input: Option<ActionConfigurationPropertyType>) -> Self
The type of the configuration property.
sourcepub fn get_type(&self) -> &Option<ActionConfigurationPropertyType>
pub fn get_type(&self) -> &Option<ActionConfigurationPropertyType>
The type of the configuration property.
sourcepub fn build(self) -> Result<ActionConfigurationProperty, BuildError>
pub fn build(self) -> Result<ActionConfigurationProperty, BuildError>
Consumes the builder and constructs a ActionConfigurationProperty
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ActionConfigurationPropertyBuilder
impl Clone for ActionConfigurationPropertyBuilder
source§fn clone(&self) -> ActionConfigurationPropertyBuilder
fn clone(&self) -> ActionConfigurationPropertyBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ActionConfigurationPropertyBuilder
impl Default for ActionConfigurationPropertyBuilder
source§fn default() -> ActionConfigurationPropertyBuilder
fn default() -> ActionConfigurationPropertyBuilder
source§impl PartialEq for ActionConfigurationPropertyBuilder
impl PartialEq for ActionConfigurationPropertyBuilder
source§fn eq(&self, other: &ActionConfigurationPropertyBuilder) -> bool
fn eq(&self, other: &ActionConfigurationPropertyBuilder) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ActionConfigurationPropertyBuilder
Auto Trait Implementations§
impl Freeze for ActionConfigurationPropertyBuilder
impl RefUnwindSafe for ActionConfigurationPropertyBuilder
impl Send for ActionConfigurationPropertyBuilder
impl Sync for ActionConfigurationPropertyBuilder
impl Unpin for ActionConfigurationPropertyBuilder
impl UnwindSafe for ActionConfigurationPropertyBuilder
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