Package com.oracle.bmc.devops.model
Class ProtectedBranchSummary.Builder
- java.lang.Object
-
- com.oracle.bmc.devops.model.ProtectedBranchSummary.Builder
-
- Enclosing class:
- ProtectedBranchSummary
public static class ProtectedBranchSummary.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProtectedBranchSummary.Builder
branchName(String branchName)
Branch name inside a repository.ProtectedBranchSummary
build()
ProtectedBranchSummary.Builder
copy(ProtectedBranchSummary model)
ProtectedBranchSummary.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.ProtectedBranchSummary.Builder
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.ProtectedBranchSummary.Builder
protectionLevels(List<ProtectionLevel> protectionLevels)
Protection level to be added on the branch.ProtectedBranchSummary.Builder
systemTags(Map<String,Map<String,Object>> systemTags)
Usage of system tag keys.
-
-
-
Method Detail
-
branchName
public ProtectedBranchSummary.Builder branchName(String branchName)
Branch name inside a repository.- Parameters:
branchName
- the value to set- Returns:
- this builder
-
protectionLevels
public ProtectedBranchSummary.Builder protectionLevels(List<ProtectionLevel> protectionLevels)
Protection level to be added on the branch.- Parameters:
protectionLevels
- the value to set- Returns:
- this builder
-
freeformTags
public ProtectedBranchSummary.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 ProtectedBranchSummary.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
-
systemTags
public ProtectedBranchSummary.Builder systemTags(Map<String,Map<String,Object>> systemTags)
Usage of system tag keys.These predefined keys are scoped to namespaces. See Resource Tags. Example: {“orcl-cloud”: {“free-tier-retained”: “true”}}
- Parameters:
systemTags
- the value to set- Returns:
- this builder
-
build
public ProtectedBranchSummary build()
-
copy
public ProtectedBranchSummary.Builder copy(ProtectedBranchSummary model)
-
-