#[non_exhaustive]pub struct BasicAuthenticationConfigurationBuilder { /* private fields */ }Expand description
A builder for BasicAuthenticationConfiguration.
Implementations§
source§impl BasicAuthenticationConfigurationBuilder
impl BasicAuthenticationConfigurationBuilder
sourcepub fn host(self, input: impl Into<String>) -> Self
pub fn host(self, input: impl Into<String>) -> Self
The name of the website host you want to connect to using authentication credentials.
For example, the host name of https://a.example.com/page1.html is "a.example.com".
This field is required.sourcepub fn set_host(self, input: Option<String>) -> Self
pub fn set_host(self, input: Option<String>) -> Self
The name of the website host you want to connect to using authentication credentials.
For example, the host name of https://a.example.com/page1.html is "a.example.com".
sourcepub fn get_host(&self) -> &Option<String>
pub fn get_host(&self) -> &Option<String>
The name of the website host you want to connect to using authentication credentials.
For example, the host name of https://a.example.com/page1.html is "a.example.com".
sourcepub fn port(self, input: i32) -> Self
pub fn port(self, input: i32) -> Self
The port number of the website host you want to connect to using authentication credentials.
For example, the port for https://a.example.com/page1.html is 443, the standard port for HTTPS.
This field is required.sourcepub fn set_port(self, input: Option<i32>) -> Self
pub fn set_port(self, input: Option<i32>) -> Self
The port number of the website host you want to connect to using authentication credentials.
For example, the port for https://a.example.com/page1.html is 443, the standard port for HTTPS.
sourcepub fn get_port(&self) -> &Option<i32>
pub fn get_port(&self) -> &Option<i32>
The port number of the website host you want to connect to using authentication credentials.
For example, the port for https://a.example.com/page1.html is 443, the standard port for HTTPS.
sourcepub fn credentials(self, input: impl Into<String>) -> Self
pub fn credentials(self, input: impl Into<String>) -> Self
Your secret ARN, which you can create in Secrets Manager
You use a secret if basic authentication credentials are required to connect to a website. The secret stores your credentials of user name and password.
This field is required.sourcepub fn set_credentials(self, input: Option<String>) -> Self
pub fn set_credentials(self, input: Option<String>) -> Self
Your secret ARN, which you can create in Secrets Manager
You use a secret if basic authentication credentials are required to connect to a website. The secret stores your credentials of user name and password.
sourcepub fn get_credentials(&self) -> &Option<String>
pub fn get_credentials(&self) -> &Option<String>
Your secret ARN, which you can create in Secrets Manager
You use a secret if basic authentication credentials are required to connect to a website. The secret stores your credentials of user name and password.
sourcepub fn build(self) -> Result<BasicAuthenticationConfiguration, BuildError>
pub fn build(self) -> Result<BasicAuthenticationConfiguration, BuildError>
Consumes the builder and constructs a BasicAuthenticationConfiguration.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for BasicAuthenticationConfigurationBuilder
impl Clone for BasicAuthenticationConfigurationBuilder
source§fn clone(&self) -> BasicAuthenticationConfigurationBuilder
fn clone(&self) -> BasicAuthenticationConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for BasicAuthenticationConfigurationBuilder
impl Default for BasicAuthenticationConfigurationBuilder
source§fn default() -> BasicAuthenticationConfigurationBuilder
fn default() -> BasicAuthenticationConfigurationBuilder
source§impl PartialEq for BasicAuthenticationConfigurationBuilder
impl PartialEq for BasicAuthenticationConfigurationBuilder
source§fn eq(&self, other: &BasicAuthenticationConfigurationBuilder) -> bool
fn eq(&self, other: &BasicAuthenticationConfigurationBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for BasicAuthenticationConfigurationBuilder
Auto Trait Implementations§
impl Freeze for BasicAuthenticationConfigurationBuilder
impl RefUnwindSafe for BasicAuthenticationConfigurationBuilder
impl Send for BasicAuthenticationConfigurationBuilder
impl Sync for BasicAuthenticationConfigurationBuilder
impl Unpin for BasicAuthenticationConfigurationBuilder
impl UnwindSafe for BasicAuthenticationConfigurationBuilder
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