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 ==.