#[non_exhaustive]pub struct InstanceCredentialsBuilder { /* private fields */ }Expand description
A builder for InstanceCredentials.
Implementations§
source§impl InstanceCredentialsBuilder
impl InstanceCredentialsBuilder
sourcepub fn set_user_name(self, input: Option<String>) -> Self
pub fn set_user_name(self, input: Option<String>) -> Self
A user name for logging in.
sourcepub fn get_user_name(&self) -> &Option<String>
pub fn get_user_name(&self) -> &Option<String>
A user name for logging in.
sourcepub fn secret(self, input: impl Into<String>) -> Self
pub fn secret(self, input: impl Into<String>) -> Self
Secret string. For Windows instances, the secret is a password for use with Windows Remote Desktop. For Linux instances, it's a private key for use with SSH.
sourcepub fn set_secret(self, input: Option<String>) -> Self
pub fn set_secret(self, input: Option<String>) -> Self
Secret string. For Windows instances, the secret is a password for use with Windows Remote Desktop. For Linux instances, it's a private key for use with SSH.
sourcepub fn get_secret(&self) -> &Option<String>
pub fn get_secret(&self) -> &Option<String>
Secret string. For Windows instances, the secret is a password for use with Windows Remote Desktop. For Linux instances, it's a private key for use with SSH.
sourcepub fn build(self) -> InstanceCredentials
pub fn build(self) -> InstanceCredentials
Consumes the builder and constructs a InstanceCredentials.
Trait Implementations§
source§impl Clone for InstanceCredentialsBuilder
impl Clone for InstanceCredentialsBuilder
source§fn clone(&self) -> InstanceCredentialsBuilder
fn clone(&self) -> InstanceCredentialsBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for InstanceCredentialsBuilder
impl Debug for InstanceCredentialsBuilder
source§impl Default for InstanceCredentialsBuilder
impl Default for InstanceCredentialsBuilder
source§fn default() -> InstanceCredentialsBuilder
fn default() -> InstanceCredentialsBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for InstanceCredentialsBuilder
impl PartialEq for InstanceCredentialsBuilder
source§fn eq(&self, other: &InstanceCredentialsBuilder) -> bool
fn eq(&self, other: &InstanceCredentialsBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for InstanceCredentialsBuilder
Auto Trait Implementations§
impl RefUnwindSafe for InstanceCredentialsBuilder
impl Send for InstanceCredentialsBuilder
impl Sync for InstanceCredentialsBuilder
impl Unpin for InstanceCredentialsBuilder
impl UnwindSafe for InstanceCredentialsBuilder
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
Mutably borrows from an owned value. Read more
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>
Creates a shared type from an unshared type.