TargetBranchConfiguration Class
- java.
lang. Object - com.
azure. resourcemanager. security. models. TargetBranchConfiguration
- com.
Implements
public final class TargetBranchConfiguration
implements JsonSerializable<TargetBranchConfiguration>
Repository branch configuration for PR Annotations.
Constructor Summary
| Constructor | Description |
|---|---|
| TargetBranchConfiguration() |
Creates an instance of Target |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Annotate |
annotateDefaultBranch()
Get the annotate |
| List<String> |
branchNames()
Get the branch |
|
static
Target |
fromJson(JsonReader jsonReader)
Reads an instance of Target |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Target |
withAnnotateDefaultBranch(AnnotateDefaultBranchState annotateDefaultBranch)
Set the annotate |
|
Target |
withBranchNames(List<String> branchNames)
Set the branch |
Methods inherited from java.lang.Object
Constructor Details
TargetBranchConfiguration
public TargetBranchConfiguration()
Creates an instance of TargetBranchConfiguration class.
Method Details
annotateDefaultBranch
public AnnotateDefaultBranchState annotateDefaultBranch()
Get the annotateDefaultBranch property: Configuration of PR Annotations on default branch. Enabled - PR Annotations are enabled on the resource's default branch. Disabled - PR Annotations are disabled on the resource's default branch.
Returns:
branchNames
public List<String> branchNames()
Get the branchNames property: Gets or sets branches that should have annotations.
Returns:
fromJson
public static TargetBranchConfiguration fromJson(JsonReader jsonReader)
Reads an instance of TargetBranchConfiguration from the JsonReader.
Parameters:
Returns:
Throws:
toJson
validate
public void validate()
Validates the instance.
withAnnotateDefaultBranch
public TargetBranchConfiguration withAnnotateDefaultBranch(AnnotateDefaultBranchState annotateDefaultBranch)
Set the annotateDefaultBranch property: Configuration of PR Annotations on default branch. Enabled - PR Annotations are enabled on the resource's default branch. Disabled - PR Annotations are disabled on the resource's default branch.
Parameters:
Returns:
withBranchNames
public TargetBranchConfiguration withBranchNames(List<String> branchNames)
Set the branchNames property: Gets or sets branches that should have annotations.
Parameters:
Returns: