Package com.oracle.bmc.devops.model
Class ProtectedBranch.Builder
- java.lang.Object
-
- com.oracle.bmc.devops.model.ProtectedBranch.Builder
-
- Enclosing class:
- ProtectedBranch
public static class ProtectedBranch.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProtectedBranch.BuilderbranchName(String branchName)The branchName can either be exact branch name or branch pattern.ProtectedBranchbuild()ProtectedBranch.Buildercopy(ProtectedBranch model)ProtectedBranch.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.ProtectedBranch.BuilderfreeformTags(Map<String,String> freeformTags)Simple key-value pair that is applied without any predefined name, type or scope.ProtectedBranch.BuilderprotectionLevels(List<ProtectionLevel> protectionLevels)Protection levels to be added on the branch.
-
-
-
Method Detail
-
branchName
public ProtectedBranch.Builder branchName(String branchName)
The branchName can either be exact branch name or branch pattern.- Parameters:
branchName- the value to set- Returns:
- this builder
-
protectionLevels
public ProtectedBranch.Builder protectionLevels(List<ProtectionLevel> protectionLevels)
Protection levels to be added on the branch.- Parameters:
protectionLevels- the value to set- Returns:
- this builder
-
freeformTags
public 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”}
- Parameters:
freeformTags- the value to set- Returns:
- this builder
-
definedTags
public 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”}}
- Parameters:
definedTags- the value to set- Returns:
- this builder
-
build
public ProtectedBranch build()
-
copy
public ProtectedBranch.Builder copy(ProtectedBranch model)
-
-