public static class ProtectedBranch.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ProtectedBranch.Builder |
branchName(String branchName)
Branch name inside a repository.
|
ProtectedBranch |
build() |
ProtectedBranch.Builder |
copy(ProtectedBranch model) |
ProtectedBranch.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.
|
ProtectedBranch.Builder |
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.
|
ProtectedBranch.Builder |
protectionLevels(List<ProtectionLevel> protectionLevels)
Protection levels to be added on the branch.
|
public ProtectedBranch.Builder branchName(String branchName)
Branch name inside a repository.
branchName
- the value to setpublic ProtectedBranch.Builder protectionLevels(List<ProtectionLevel> protectionLevels)
Protection levels to be added on the branch.
protectionLevels
- the value to setpublic ProtectedBranch.Builder freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope. Exists
for cross-compatibility only. See Resource
Tags. Example:
{"bar-key": "value"}
freeformTags
- the value to setpublic ProtectedBranch.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource. Each key is predefined and scoped to a namespace. See
Resource Tags.
Example: {"foo-namespace": {"bar-key": "value"}}
definedTags
- the value to setpublic ProtectedBranch build()
public ProtectedBranch.Builder copy(ProtectedBranch model)
Copyright © 2016–2024. All rights reserved.