#[non_exhaustive]pub struct PipelineVariableDeclarationBuilder { /* private fields */ }
Expand description
A builder for PipelineVariableDeclaration
.
Implementations§
source§impl PipelineVariableDeclarationBuilder
impl PipelineVariableDeclarationBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of a pipeline-level variable.
This field is required.sourcepub fn default_value(self, input: impl Into<String>) -> Self
pub fn default_value(self, input: impl Into<String>) -> Self
The value of a pipeline-level variable.
sourcepub fn set_default_value(self, input: Option<String>) -> Self
pub fn set_default_value(self, input: Option<String>) -> Self
The value of a pipeline-level variable.
sourcepub fn get_default_value(&self) -> &Option<String>
pub fn get_default_value(&self) -> &Option<String>
The value of a pipeline-level variable.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description of a pipeline-level variable. It's used to add additional context about the variable, and not being used at time when pipeline executes.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description of a pipeline-level variable. It's used to add additional context about the variable, and not being used at time when pipeline executes.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The description of a pipeline-level variable. It's used to add additional context about the variable, and not being used at time when pipeline executes.
sourcepub fn build(self) -> Result<PipelineVariableDeclaration, BuildError>
pub fn build(self) -> Result<PipelineVariableDeclaration, BuildError>
Consumes the builder and constructs a PipelineVariableDeclaration
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for PipelineVariableDeclarationBuilder
impl Clone for PipelineVariableDeclarationBuilder
source§fn clone(&self) -> PipelineVariableDeclarationBuilder
fn clone(&self) -> PipelineVariableDeclarationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for PipelineVariableDeclarationBuilder
impl Default for PipelineVariableDeclarationBuilder
source§fn default() -> PipelineVariableDeclarationBuilder
fn default() -> PipelineVariableDeclarationBuilder
source§impl PartialEq for PipelineVariableDeclarationBuilder
impl PartialEq for PipelineVariableDeclarationBuilder
source§fn eq(&self, other: &PipelineVariableDeclarationBuilder) -> bool
fn eq(&self, other: &PipelineVariableDeclarationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.