#[non_exhaustive]pub struct EnvironmentVariableBuilder { /* private fields */ }
Expand description
A builder for EnvironmentVariable
.
Implementations§
source§impl EnvironmentVariableBuilder
impl EnvironmentVariableBuilder
sourcepub fn key(self, input: impl Into<String>) -> Self
pub fn key(self, input: impl Into<String>) -> Self
(Required) The environment variable's name, which can consist of up to 64 characters and must be specified. The name can contain upper- and lowercase letters, numbers, and underscores (_), but it must start with a letter or underscore.
This field is required.sourcepub fn set_key(self, input: Option<String>) -> Self
pub fn set_key(self, input: Option<String>) -> Self
(Required) The environment variable's name, which can consist of up to 64 characters and must be specified. The name can contain upper- and lowercase letters, numbers, and underscores (_), but it must start with a letter or underscore.
sourcepub fn get_key(&self) -> &Option<String>
pub fn get_key(&self) -> &Option<String>
(Required) The environment variable's name, which can consist of up to 64 characters and must be specified. The name can contain upper- and lowercase letters, numbers, and underscores (_), but it must start with a letter or underscore.
sourcepub fn value(self, input: impl Into<String>) -> Self
pub fn value(self, input: impl Into<String>) -> Self
(Optional) The environment variable's value, which can be left empty. If you specify a value, it can contain up to 256 characters, which must all be printable.
This field is required.sourcepub fn set_value(self, input: Option<String>) -> Self
pub fn set_value(self, input: Option<String>) -> Self
(Optional) The environment variable's value, which can be left empty. If you specify a value, it can contain up to 256 characters, which must all be printable.
sourcepub fn get_value(&self) -> &Option<String>
pub fn get_value(&self) -> &Option<String>
(Optional) The environment variable's value, which can be left empty. If you specify a value, it can contain up to 256 characters, which must all be printable.
sourcepub fn secure(self, input: bool) -> Self
pub fn secure(self, input: bool) -> Self
(Optional) Whether the variable's value is returned by the DescribeApps
action. To hide an environment variable's value, set Secure
to true
. DescribeApps
returns *****FILTERED*****
instead of the actual value. The default value for Secure
is false
.
sourcepub fn set_secure(self, input: Option<bool>) -> Self
pub fn set_secure(self, input: Option<bool>) -> Self
(Optional) Whether the variable's value is returned by the DescribeApps
action. To hide an environment variable's value, set Secure
to true
. DescribeApps
returns *****FILTERED*****
instead of the actual value. The default value for Secure
is false
.
sourcepub fn get_secure(&self) -> &Option<bool>
pub fn get_secure(&self) -> &Option<bool>
(Optional) Whether the variable's value is returned by the DescribeApps
action. To hide an environment variable's value, set Secure
to true
. DescribeApps
returns *****FILTERED*****
instead of the actual value. The default value for Secure
is false
.
sourcepub fn build(self) -> Result<EnvironmentVariable, BuildError>
pub fn build(self) -> Result<EnvironmentVariable, BuildError>
Consumes the builder and constructs a EnvironmentVariable
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for EnvironmentVariableBuilder
impl Clone for EnvironmentVariableBuilder
source§fn clone(&self) -> EnvironmentVariableBuilder
fn clone(&self) -> EnvironmentVariableBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EnvironmentVariableBuilder
impl Debug for EnvironmentVariableBuilder
source§impl Default for EnvironmentVariableBuilder
impl Default for EnvironmentVariableBuilder
source§fn default() -> EnvironmentVariableBuilder
fn default() -> EnvironmentVariableBuilder
source§impl PartialEq for EnvironmentVariableBuilder
impl PartialEq for EnvironmentVariableBuilder
source§fn eq(&self, other: &EnvironmentVariableBuilder) -> bool
fn eq(&self, other: &EnvironmentVariableBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for EnvironmentVariableBuilder
Auto Trait Implementations§
impl Freeze for EnvironmentVariableBuilder
impl RefUnwindSafe for EnvironmentVariableBuilder
impl Send for EnvironmentVariableBuilder
impl Sync for EnvironmentVariableBuilder
impl Unpin for EnvironmentVariableBuilder
impl UnwindSafe for EnvironmentVariableBuilder
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> 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