#[non_exhaustive]pub struct OAuth2ClientCredentialConfigurationBuilder { /* private fields */ }Expand description
A builder for OAuth2ClientCredentialConfiguration.
Implementations§
source§impl OAuth2ClientCredentialConfigurationBuilder
impl OAuth2ClientCredentialConfigurationBuilder
sourcepub fn secret_arn(self, input: impl Into<String>) -> Self
pub fn secret_arn(self, input: impl Into<String>) -> Self
The ARN of the Secrets Manager secret that stores the OAuth 2.0 credentials/token used for plugin configuration.
This field is required.sourcepub fn set_secret_arn(self, input: Option<String>) -> Self
pub fn set_secret_arn(self, input: Option<String>) -> Self
The ARN of the Secrets Manager secret that stores the OAuth 2.0 credentials/token used for plugin configuration.
sourcepub fn get_secret_arn(&self) -> &Option<String>
pub fn get_secret_arn(&self) -> &Option<String>
The ARN of the Secrets Manager secret that stores the OAuth 2.0 credentials/token used for plugin configuration.
sourcepub fn role_arn(self, input: impl Into<String>) -> Self
pub fn role_arn(self, input: impl Into<String>) -> Self
The ARN of an IAM role used by Amazon Q to access the OAuth 2.0 authentication credentials stored in a Secrets Manager secret.
This field is required.sourcepub fn set_role_arn(self, input: Option<String>) -> Self
pub fn set_role_arn(self, input: Option<String>) -> Self
The ARN of an IAM role used by Amazon Q to access the OAuth 2.0 authentication credentials stored in a Secrets Manager secret.
sourcepub fn get_role_arn(&self) -> &Option<String>
pub fn get_role_arn(&self) -> &Option<String>
The ARN of an IAM role used by Amazon Q to access the OAuth 2.0 authentication credentials stored in a Secrets Manager secret.
sourcepub fn build(self) -> Result<OAuth2ClientCredentialConfiguration, BuildError>
pub fn build(self) -> Result<OAuth2ClientCredentialConfiguration, BuildError>
Consumes the builder and constructs a OAuth2ClientCredentialConfiguration.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for OAuth2ClientCredentialConfigurationBuilder
impl Clone for OAuth2ClientCredentialConfigurationBuilder
source§fn clone(&self) -> OAuth2ClientCredentialConfigurationBuilder
fn clone(&self) -> OAuth2ClientCredentialConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for OAuth2ClientCredentialConfigurationBuilder
impl Default for OAuth2ClientCredentialConfigurationBuilder
source§fn default() -> OAuth2ClientCredentialConfigurationBuilder
fn default() -> OAuth2ClientCredentialConfigurationBuilder
source§impl PartialEq for OAuth2ClientCredentialConfigurationBuilder
impl PartialEq for OAuth2ClientCredentialConfigurationBuilder
source§fn eq(&self, other: &OAuth2ClientCredentialConfigurationBuilder) -> bool
fn eq(&self, other: &OAuth2ClientCredentialConfigurationBuilder) -> bool
self and other values to be equal, and is used
by ==.