Class CfnConnectionPropsMixin.AuthorizationCodePropertiesProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.glue.CfnConnectionPropsMixin.AuthorizationCodePropertiesProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnConnectionPropsMixin.AuthorizationCodePropertiesProperty>
- Enclosing interface:
CfnConnectionPropsMixin.AuthorizationCodePropertiesProperty
@Stability(Stable)
public static final class CfnConnectionPropsMixin.AuthorizationCodePropertiesProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnConnectionPropsMixin.AuthorizationCodePropertiesProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthorizationCode(String authorizationCode) build()Builds the configured instance.redirectUri(String redirectUri)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
authorizationCode
@Stability(Stable) public CfnConnectionPropsMixin.AuthorizationCodePropertiesProperty.Builder authorizationCode(String authorizationCode) Sets the value ofCfnConnectionPropsMixin.AuthorizationCodePropertiesProperty.getAuthorizationCode()- Parameters:
authorizationCode- An authorization code to be used in the third leg of theAUTHORIZATION_CODEgrant workflow. This is a single-use code which becomes invalid once exchanged for an access token, thus it is acceptable to have this value as a request parameter.- Returns:
this
-
redirectUri
@Stability(Stable) public CfnConnectionPropsMixin.AuthorizationCodePropertiesProperty.Builder redirectUri(String redirectUri) - Parameters:
redirectUri- The redirect URI where the user gets redirected to by authorization server when issuing an authorization code. The URI is subsequently used when the authorization code is exchanged for an access token.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnConnectionPropsMixin.AuthorizationCodePropertiesProperty>- Returns:
- a new instance of
CfnConnectionPropsMixin.AuthorizationCodePropertiesProperty - Throws:
NullPointerException- if any required attribute was not provided
-