Interface AuthorizationData.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<AuthorizationData.Builder,,AuthorizationData> SdkBuilder<AuthorizationData.Builder,,AuthorizationData> SdkPojo
- Enclosing class:
AuthorizationData
@Mutable
@NotThreadSafe
public static interface AuthorizationData.Builder
extends SdkPojo, CopyableBuilder<AuthorizationData.Builder,AuthorizationData>
-
Method Summary
Modifier and TypeMethodDescriptiondefault AuthorizationData.BuilderOAuth2 authorization data for the gateway target.oauth2(OAuth2AuthorizationData oauth2) OAuth2 authorization data for the gateway target.Methods 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, sdkFields
-
Method Details
-
oauth2
OAuth2 authorization data for the gateway target.
- Parameters:
oauth2- OAuth2 authorization data for the gateway target.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
oauth2
OAuth2 authorization data for the gateway target.
This is a convenience method that creates an instance of theOAuth2AuthorizationData.Builderavoiding the need to create one manually viaOAuth2AuthorizationData.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tooauth2(OAuth2AuthorizationData).- Parameters:
oauth2- a consumer that will call methods onOAuth2AuthorizationData.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-