Class CfnPlugin.OAuth2ClientCredentialConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.qbusiness.CfnPlugin.OAuth2ClientCredentialConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPlugin.OAuth2ClientCredentialConfigurationProperty>
- Enclosing interface:
CfnPlugin.OAuth2ClientCredentialConfigurationProperty
@Stability(Stable)
public static final class CfnPlugin.OAuth2ClientCredentialConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPlugin.OAuth2ClientCredentialConfigurationProperty>
A builder for
CfnPlugin.OAuth2ClientCredentialConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnPlugin.OAuth2ClientCredentialConfigurationProperty.getRoleArn()
Sets the value ofCfnPlugin.OAuth2ClientCredentialConfigurationProperty.getSecretArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
roleArn
@Stability(Stable) public CfnPlugin.OAuth2ClientCredentialConfigurationProperty.Builder roleArn(String roleArn) Sets the value ofCfnPlugin.OAuth2ClientCredentialConfigurationProperty.getRoleArn()
- Parameters:
roleArn
- The ARN of an IAM role used by Amazon Q Business to access the OAuth 2.0 authentication credentials stored in a Secrets Manager secret. This parameter is required.- Returns:
this
-
secretArn
@Stability(Stable) public CfnPlugin.OAuth2ClientCredentialConfigurationProperty.Builder secretArn(String secretArn) Sets the value ofCfnPlugin.OAuth2ClientCredentialConfigurationProperty.getSecretArn()
- Parameters:
secretArn
- The ARN of the Secrets Manager secret that stores the OAuth 2.0 credentials/token used for plugin configuration. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnPlugin.OAuth2ClientCredentialConfigurationProperty>
- Returns:
- a new instance of
CfnPlugin.OAuth2ClientCredentialConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-