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