Class BetaManagedAgentsGitHubRepositoryResourceConfig.Builder
-
- All Implemented Interfaces:
public final class BetaManagedAgentsGitHubRepositoryResourceConfig.BuilderA builder for BetaManagedAgentsGitHubRepositoryResourceConfig.
-
-
Method Summary
-
-
Method Detail
-
type
final BetaManagedAgentsGitHubRepositoryResourceConfig.Builder type(BetaManagedAgentsGitHubRepositoryResourceConfig.Type type)
-
type
final BetaManagedAgentsGitHubRepositoryResourceConfig.Builder type(JsonField<BetaManagedAgentsGitHubRepositoryResourceConfig.Type> type)
Sets Builder.type to an arbitrary JSON value.
You should usually call Builder.type with a well-typed Type value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
url
final BetaManagedAgentsGitHubRepositoryResourceConfig.Builder url(String url)
Github URL of the repository
-
url
final BetaManagedAgentsGitHubRepositoryResourceConfig.Builder url(JsonField<String> url)
Sets Builder.url to an arbitrary JSON value.
You should usually call Builder.url with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
checkout
final BetaManagedAgentsGitHubRepositoryResourceConfig.Builder checkout(BetaManagedAgentsGitHubRepositoryResourceConfig.Checkout checkout)
Branch or commit to check out. Defaults to the repository's default branch.
-
checkout
final BetaManagedAgentsGitHubRepositoryResourceConfig.Builder checkout(Optional<BetaManagedAgentsGitHubRepositoryResourceConfig.Checkout> checkout)
Alias for calling Builder.checkout with
checkout.orElse(null).
-
checkout
final BetaManagedAgentsGitHubRepositoryResourceConfig.Builder checkout(JsonField<BetaManagedAgentsGitHubRepositoryResourceConfig.Checkout> checkout)
Sets Builder.checkout to an arbitrary JSON value.
You should usually call Builder.checkout with a well-typed Checkout value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
checkout
final BetaManagedAgentsGitHubRepositoryResourceConfig.Builder checkout(BetaManagedAgentsBranchCheckout branch)
Alias for calling checkout with
Checkout.ofBranch(branch).
-
checkout
final BetaManagedAgentsGitHubRepositoryResourceConfig.Builder checkout(BetaManagedAgentsCommitCheckout commit)
Alias for calling checkout with
Checkout.ofCommit(commit).
-
branchCheckout
final BetaManagedAgentsGitHubRepositoryResourceConfig.Builder branchCheckout(String name)
Alias for calling checkout with the following:
BetaManagedAgentsBranchCheckout.builder() .type(BetaManagedAgentsBranchCheckout.Type.BRANCH) .name(name) .build()
-
commitCheckout
final BetaManagedAgentsGitHubRepositoryResourceConfig.Builder commitCheckout(String sha)
Alias for calling checkout with the following:
BetaManagedAgentsCommitCheckout.builder() .type(BetaManagedAgentsCommitCheckout.Type.COMMIT) .sha(sha) .build()
-
mountPath
final BetaManagedAgentsGitHubRepositoryResourceConfig.Builder mountPath(String mountPath)
Mount path in the container. Defaults to
/workspace/<repo-name>.
-
mountPath
final BetaManagedAgentsGitHubRepositoryResourceConfig.Builder mountPath(Optional<String> mountPath)
Alias for calling Builder.mountPath with
mountPath.orElse(null).
-
mountPath
final BetaManagedAgentsGitHubRepositoryResourceConfig.Builder mountPath(JsonField<String> mountPath)
Sets Builder.mountPath to an arbitrary JSON value.
You should usually call Builder.mountPath with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaManagedAgentsGitHubRepositoryResourceConfig.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaManagedAgentsGitHubRepositoryResourceConfig.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaManagedAgentsGitHubRepositoryResourceConfig.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaManagedAgentsGitHubRepositoryResourceConfig.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaManagedAgentsGitHubRepositoryResourceConfig.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaManagedAgentsGitHubRepositoryResourceConfig build()
Returns an immutable instance of BetaManagedAgentsGitHubRepositoryResourceConfig.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.type() .url()
-
-
-
-