Interface Grant.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Grant.Builder,Grant>,SdkBuilder<Grant.Builder,Grant>,SdkPojo
- Enclosing class:
- Grant
public static interface Grant.Builder extends SdkPojo, CopyableBuilder<Grant.Builder,Grant>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Grant.BuilderauthorizationCode(Consumer<AuthorizationCodeGrant.Builder> authorizationCode)Configuration options for theauthorization_codegrant type.Grant.BuilderauthorizationCode(AuthorizationCodeGrant authorizationCode)Configuration options for theauthorization_codegrant type.default Grant.BuilderjwtBearer(Consumer<JwtBearerGrant.Builder> jwtBearer)Configuration options for theurn:ietf:params:oauth:grant-type:jwt-bearergrant type.Grant.BuilderjwtBearer(JwtBearerGrant jwtBearer)Configuration options for theurn:ietf:params:oauth:grant-type:jwt-bearergrant type.default Grant.BuilderrefreshToken(Consumer<RefreshTokenGrant.Builder> refreshToken)Configuration options for therefresh_tokengrant type.Grant.BuilderrefreshToken(RefreshTokenGrant refreshToken)Configuration options for therefresh_tokengrant type.default Grant.BuildertokenExchange(Consumer<TokenExchangeGrant.Builder> tokenExchange)Configuration options for theurn:ietf:params:oauth:grant-type:token-exchangegrant type.Grant.BuildertokenExchange(TokenExchangeGrant tokenExchange)Configuration options for theurn:ietf:params:oauth:grant-type:token-exchangegrant type.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
authorizationCode
Grant.Builder authorizationCode(AuthorizationCodeGrant authorizationCode)
Configuration options for the
authorization_codegrant type.- Parameters:
authorizationCode- Configuration options for theauthorization_codegrant type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
authorizationCode
default Grant.Builder authorizationCode(Consumer<AuthorizationCodeGrant.Builder> authorizationCode)
Configuration options for the
This is a convenience method that creates an instance of theauthorization_codegrant type.AuthorizationCodeGrant.Builderavoiding the need to create one manually viaAuthorizationCodeGrant.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toauthorizationCode(AuthorizationCodeGrant).- Parameters:
authorizationCode- a consumer that will call methods onAuthorizationCodeGrant.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
authorizationCode(AuthorizationCodeGrant)
-
jwtBearer
Grant.Builder jwtBearer(JwtBearerGrant jwtBearer)
Configuration options for the
urn:ietf:params:oauth:grant-type:jwt-bearergrant type.- Parameters:
jwtBearer- Configuration options for theurn:ietf:params:oauth:grant-type:jwt-bearergrant type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
jwtBearer
default Grant.Builder jwtBearer(Consumer<JwtBearerGrant.Builder> jwtBearer)
Configuration options for the
This is a convenience method that creates an instance of theurn:ietf:params:oauth:grant-type:jwt-bearergrant type.JwtBearerGrant.Builderavoiding the need to create one manually viaJwtBearerGrant.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tojwtBearer(JwtBearerGrant).- Parameters:
jwtBearer- a consumer that will call methods onJwtBearerGrant.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
jwtBearer(JwtBearerGrant)
-
refreshToken
Grant.Builder refreshToken(RefreshTokenGrant refreshToken)
Configuration options for the
refresh_tokengrant type.- Parameters:
refreshToken- Configuration options for therefresh_tokengrant type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
refreshToken
default Grant.Builder refreshToken(Consumer<RefreshTokenGrant.Builder> refreshToken)
Configuration options for the
This is a convenience method that creates an instance of therefresh_tokengrant type.RefreshTokenGrant.Builderavoiding the need to create one manually viaRefreshTokenGrant.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torefreshToken(RefreshTokenGrant).- Parameters:
refreshToken- a consumer that will call methods onRefreshTokenGrant.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
refreshToken(RefreshTokenGrant)
-
tokenExchange
Grant.Builder tokenExchange(TokenExchangeGrant tokenExchange)
Configuration options for the
urn:ietf:params:oauth:grant-type:token-exchangegrant type.- Parameters:
tokenExchange- Configuration options for theurn:ietf:params:oauth:grant-type:token-exchangegrant type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tokenExchange
default Grant.Builder tokenExchange(Consumer<TokenExchangeGrant.Builder> tokenExchange)
Configuration options for the
This is a convenience method that creates an instance of theurn:ietf:params:oauth:grant-type:token-exchangegrant type.TokenExchangeGrant.Builderavoiding the need to create one manually viaTokenExchangeGrant.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totokenExchange(TokenExchangeGrant).- Parameters:
tokenExchange- a consumer that will call methods onTokenExchangeGrant.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
tokenExchange(TokenExchangeGrant)
-
-