Struct aws_sdk_appflow::types::builders::OAuthPropertiesBuilder
source · #[non_exhaustive]pub struct OAuthPropertiesBuilder { /* private fields */ }
Expand description
A builder for OAuthProperties
.
Implementations§
source§impl OAuthPropertiesBuilder
impl OAuthPropertiesBuilder
sourcepub fn token_url(self, input: impl Into<String>) -> Self
pub fn token_url(self, input: impl Into<String>) -> Self
The token url required to fetch access/refresh tokens using authorization code and also to refresh expired access token using refresh token.
This field is required.sourcepub fn set_token_url(self, input: Option<String>) -> Self
pub fn set_token_url(self, input: Option<String>) -> Self
The token url required to fetch access/refresh tokens using authorization code and also to refresh expired access token using refresh token.
sourcepub fn get_token_url(&self) -> &Option<String>
pub fn get_token_url(&self) -> &Option<String>
The token url required to fetch access/refresh tokens using authorization code and also to refresh expired access token using refresh token.
sourcepub fn auth_code_url(self, input: impl Into<String>) -> Self
pub fn auth_code_url(self, input: impl Into<String>) -> Self
The authorization code url required to redirect to SAP Login Page to fetch authorization code for OAuth type authentication.
This field is required.sourcepub fn set_auth_code_url(self, input: Option<String>) -> Self
pub fn set_auth_code_url(self, input: Option<String>) -> Self
The authorization code url required to redirect to SAP Login Page to fetch authorization code for OAuth type authentication.
sourcepub fn get_auth_code_url(&self) -> &Option<String>
pub fn get_auth_code_url(&self) -> &Option<String>
The authorization code url required to redirect to SAP Login Page to fetch authorization code for OAuth type authentication.
sourcepub fn o_auth_scopes(self, input: impl Into<String>) -> Self
pub fn o_auth_scopes(self, input: impl Into<String>) -> Self
Appends an item to o_auth_scopes
.
To override the contents of this collection use set_o_auth_scopes
.
The OAuth scopes required for OAuth type authentication.
sourcepub fn set_o_auth_scopes(self, input: Option<Vec<String>>) -> Self
pub fn set_o_auth_scopes(self, input: Option<Vec<String>>) -> Self
The OAuth scopes required for OAuth type authentication.
sourcepub fn get_o_auth_scopes(&self) -> &Option<Vec<String>>
pub fn get_o_auth_scopes(&self) -> &Option<Vec<String>>
The OAuth scopes required for OAuth type authentication.
sourcepub fn build(self) -> Result<OAuthProperties, BuildError>
pub fn build(self) -> Result<OAuthProperties, BuildError>
Consumes the builder and constructs a OAuthProperties
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for OAuthPropertiesBuilder
impl Clone for OAuthPropertiesBuilder
source§fn clone(&self) -> OAuthPropertiesBuilder
fn clone(&self) -> OAuthPropertiesBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for OAuthPropertiesBuilder
impl Debug for OAuthPropertiesBuilder
source§impl Default for OAuthPropertiesBuilder
impl Default for OAuthPropertiesBuilder
source§fn default() -> OAuthPropertiesBuilder
fn default() -> OAuthPropertiesBuilder
source§impl PartialEq for OAuthPropertiesBuilder
impl PartialEq for OAuthPropertiesBuilder
source§fn eq(&self, other: &OAuthPropertiesBuilder) -> bool
fn eq(&self, other: &OAuthPropertiesBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for OAuthPropertiesBuilder
Auto Trait Implementations§
impl Freeze for OAuthPropertiesBuilder
impl RefUnwindSafe for OAuthPropertiesBuilder
impl Send for OAuthPropertiesBuilder
impl Sync for OAuthPropertiesBuilder
impl Unpin for OAuthPropertiesBuilder
impl UnwindSafe for OAuthPropertiesBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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