public static class CreateOrUpdateProtectedBranchDetails.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CreateOrUpdateProtectedBranchDetails.Builder |
branchName(String branchName)
Name of a branch to protect.
|
CreateOrUpdateProtectedBranchDetails |
build() |
CreateOrUpdateProtectedBranchDetails.Builder |
copy(CreateOrUpdateProtectedBranchDetails model) |
CreateOrUpdateProtectedBranchDetails.Builder |
protectionLevels(List<ProtectionLevel> protectionLevels)
Level of protection to add on a branch.
|
public CreateOrUpdateProtectedBranchDetails.Builder branchName(String branchName)
Name of a branch to protect.
branchName
- the value to setpublic CreateOrUpdateProtectedBranchDetails.Builder protectionLevels(List<ProtectionLevel> protectionLevels)
Level of protection to add on a branch.
protectionLevels
- the value to setpublic CreateOrUpdateProtectedBranchDetails build()
public CreateOrUpdateProtectedBranchDetails.Builder copy(CreateOrUpdateProtectedBranchDetails model)
Copyright © 2016–2024. All rights reserved.