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.BuilderThe OAuth 2.0 authorization that a GitHub user must approve.oauth2(OAuth2AuthorizationData oauth2) The OAuth 2.0 authorization that a GitHub user must approve.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
The OAuth 2.0 authorization that a GitHub user must approve.
- Parameters:
oauth2- The OAuth 2.0 authorization that a GitHub user must approve.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
oauth2
The OAuth 2.0 authorization that a GitHub user must approve.
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:
-