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 SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll 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- 
branchNamepublic 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
 
 - 
protectionLevelspublic ProtectedBranch.Builder protectionLevels(List<ProtectionLevel> protectionLevels) Protection levels to be added on the branch.- Parameters:
- protectionLevels- the value to set
- Returns:
- this builder
 
 - 
freeformTagspublic 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
 
 - 
definedTagspublic 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
 
 - 
buildpublic ProtectedBranch build() 
 - 
copypublic ProtectedBranch.Builder copy(ProtectedBranch model) 
 
- 
 
-