Interface GitHubConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<GitHubConfiguration.Builder,,GitHubConfiguration> SdkBuilder<GitHubConfiguration.Builder,,GitHubConfiguration> SdkPojo
- Enclosing class:
GitHubConfiguration
@Mutable
@NotThreadSafe
public static interface GitHubConfiguration.Builder
extends SdkPojo, CopyableBuilder<GitHubConfiguration.Builder,GitHubConfiguration>
-
Method Summary
Modifier and TypeMethodDescriptiondefault GitHubConfiguration.Builderauthorization(Consumer<GitHubAuthorizationConfiguration.Builder> authorization) OAuth authorization used to establish the integration.authorization(GitHubAuthorizationConfiguration authorization) OAuth authorization used to establish the integration.organizationName(String organizationName) The name of the GitHub organization to associate with the integration.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
-
authorization
OAuth authorization used to establish the integration. Required on create; not returned on read operations.
- Parameters:
authorization- OAuth authorization used to establish the integration. Required on create; not returned on read operations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
authorization
default GitHubConfiguration.Builder authorization(Consumer<GitHubAuthorizationConfiguration.Builder> authorization) OAuth authorization used to establish the integration. Required on create; not returned on read operations.
This is a convenience method that creates an instance of theGitHubAuthorizationConfiguration.Builderavoiding the need to create one manually viaGitHubAuthorizationConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toauthorization(GitHubAuthorizationConfiguration).- Parameters:
authorization- a consumer that will call methods onGitHubAuthorizationConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
organizationName
The name of the GitHub organization to associate with the integration. If not specified, the integration is associated with the authenticated user's personal account.
- Parameters:
organizationName- The name of the GitHub organization to associate with the integration. If not specified, the integration is associated with the authenticated user's personal account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-