Interface CreateOAuth2TokenResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<CreateOAuth2TokenResponse.Builder,,CreateOAuth2TokenResponse> SdkBuilder<CreateOAuth2TokenResponse.Builder,,CreateOAuth2TokenResponse> SdkPojo,SdkResponse.Builder,SigninResponse.Builder
- Enclosing class:
CreateOAuth2TokenResponse
@Mutable
@NotThreadSafe
public static interface CreateOAuth2TokenResponse.Builder
extends SigninResponse.Builder, SdkPojo, CopyableBuilder<CreateOAuth2TokenResponse.Builder,CreateOAuth2TokenResponse>
-
Method Summary
Modifier and TypeMethodDescriptiontokenOutput(Consumer<CreateOAuth2TokenResponseBody.Builder> tokenOutput) Flattened token operation outputs The specific response fields depend on the grant_type used in the requesttokenOutput(CreateOAuth2TokenResponseBody tokenOutput) Flattened token operation outputs The specific response fields depend on the grant_type used in the requestMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponseMethods inherited from interface software.amazon.awssdk.services.signin.model.SigninResponse.Builder
build, responseMetadata, responseMetadata
-
Method Details
-
tokenOutput
Flattened token operation outputs The specific response fields depend on the grant_type used in the request
- Parameters:
tokenOutput- Flattened token operation outputs The specific response fields depend on the grant_type used in the request- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tokenOutput
default CreateOAuth2TokenResponse.Builder tokenOutput(Consumer<CreateOAuth2TokenResponseBody.Builder> tokenOutput) Flattened token operation outputs The specific response fields depend on the grant_type used in the request
This is a convenience method that creates an instance of theCreateOAuth2TokenResponseBody.Builderavoiding the need to create one manually viaCreateOAuth2TokenResponseBody.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totokenOutput(CreateOAuth2TokenResponseBody).- Parameters:
tokenOutput- a consumer that will call methods onCreateOAuth2TokenResponseBody.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-