ActionableRemediation Class
- java.
lang. Object - com.
azure. resourcemanager. security. models. ActionableRemediation
- com.
Implements
public final class ActionableRemediation
implements JsonSerializable<ActionableRemediation>
Configuration payload for PR Annotations.
Constructor Summary
| Constructor | Description |
|---|---|
| ActionableRemediation() |
Creates an instance of Actionable |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Target |
branchConfiguration()
Get the branch |
|
List<Category |
categoryConfigurations()
Get the category |
|
static
Actionable |
fromJson(JsonReader jsonReader)
Reads an instance of Actionable |
|
Inherit |
inheritFromParentState()
Get the inherit |
|
Actionable |
state()
Get the state property: Actionable |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Actionable |
withBranchConfiguration(TargetBranchConfiguration branchConfiguration)
Set the branch |
|
Actionable |
withCategoryConfigurations(List<CategoryConfiguration> categoryConfigurations)
Set the category |
|
Actionable |
withInheritFromParentState(InheritFromParentState inheritFromParentState)
Set the inherit |
|
Actionable |
withState(ActionableRemediationState state)
Set the state property: Actionable |
Methods inherited from java.lang.Object
Constructor Details
ActionableRemediation
public ActionableRemediation()
Creates an instance of ActionableRemediation class.
Method Details
branchConfiguration
public TargetBranchConfiguration branchConfiguration()
Get the branchConfiguration property: Repository branch configuration for PR Annotations.
Returns:
categoryConfigurations
public List<CategoryConfiguration> categoryConfigurations()
Get the categoryConfigurations property: Gets or sets list of categories and severity levels.
Returns:
fromJson
public static ActionableRemediation fromJson(JsonReader jsonReader)
Reads an instance of ActionableRemediation from the JsonReader.
Parameters:
Returns:
Throws:
inheritFromParentState
public InheritFromParentState inheritFromParentState()
Get the inheritFromParentState property: Update Settings. Enabled - Resource should inherit configurations from parent. Disabled - Resource should not inherit configurations from parent.
Returns:
state
public ActionableRemediationState state()
Get the state property: ActionableRemediation Setting. None - the setting was never set. Enabled - ActionableRemediation is enabled. Disabled - ActionableRemediation is disabled.
Returns:
toJson
validate
public void validate()
Validates the instance.
withBranchConfiguration
public ActionableRemediation withBranchConfiguration(TargetBranchConfiguration branchConfiguration)
Set the branchConfiguration property: Repository branch configuration for PR Annotations.
Parameters:
Returns:
withCategoryConfigurations
public ActionableRemediation withCategoryConfigurations(List<CategoryConfiguration> categoryConfigurations)
Set the categoryConfigurations property: Gets or sets list of categories and severity levels.
Parameters:
Returns:
withInheritFromParentState
public ActionableRemediation withInheritFromParentState(InheritFromParentState inheritFromParentState)
Set the inheritFromParentState property: Update Settings. Enabled - Resource should inherit configurations from parent. Disabled - Resource should not inherit configurations from parent.
Parameters:
Returns:
withState
public ActionableRemediation withState(ActionableRemediationState state)
Set the state property: ActionableRemediation Setting. None - the setting was never set. Enabled - ActionableRemediation is enabled. Disabled - ActionableRemediation is disabled.
Parameters:
Returns: