Struct aws_sdk_appfabric::types::builders::AuthRequestBuilder
source · #[non_exhaustive]pub struct AuthRequestBuilder { /* private fields */ }Expand description
A builder for AuthRequest.
Implementations§
source§impl AuthRequestBuilder
impl AuthRequestBuilder
sourcepub fn redirect_uri(self, input: impl Into<String>) -> Self
pub fn redirect_uri(self, input: impl Into<String>) -> Self
The redirect URL that is specified in the AuthURL and the application client.
This field is required.sourcepub fn set_redirect_uri(self, input: Option<String>) -> Self
pub fn set_redirect_uri(self, input: Option<String>) -> Self
The redirect URL that is specified in the AuthURL and the application client.
sourcepub fn get_redirect_uri(&self) -> &Option<String>
pub fn get_redirect_uri(&self) -> &Option<String>
The redirect URL that is specified in the AuthURL and the application client.
sourcepub fn code(self, input: impl Into<String>) -> Self
pub fn code(self, input: impl Into<String>) -> Self
The authorization code returned by the application after permission is granted in the application OAuth page (after clicking on the AuthURL).
This field is required.sourcepub fn set_code(self, input: Option<String>) -> Self
pub fn set_code(self, input: Option<String>) -> Self
The authorization code returned by the application after permission is granted in the application OAuth page (after clicking on the AuthURL).
sourcepub fn get_code(&self) -> &Option<String>
pub fn get_code(&self) -> &Option<String>
The authorization code returned by the application after permission is granted in the application OAuth page (after clicking on the AuthURL).
sourcepub fn build(self) -> Result<AuthRequest, BuildError>
pub fn build(self) -> Result<AuthRequest, BuildError>
Consumes the builder and constructs a AuthRequest.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for AuthRequestBuilder
impl Clone for AuthRequestBuilder
source§fn clone(&self) -> AuthRequestBuilder
fn clone(&self) -> AuthRequestBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for AuthRequestBuilder
impl Debug for AuthRequestBuilder
source§impl Default for AuthRequestBuilder
impl Default for AuthRequestBuilder
source§fn default() -> AuthRequestBuilder
fn default() -> AuthRequestBuilder
source§impl PartialEq for AuthRequestBuilder
impl PartialEq for AuthRequestBuilder
source§fn eq(&self, other: &AuthRequestBuilder) -> bool
fn eq(&self, other: &AuthRequestBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for AuthRequestBuilder
Auto Trait Implementations§
impl Freeze for AuthRequestBuilder
impl RefUnwindSafe for AuthRequestBuilder
impl Send for AuthRequestBuilder
impl Sync for AuthRequestBuilder
impl Unpin for AuthRequestBuilder
impl UnwindSafe for AuthRequestBuilder
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