ActionableRemediation Class

  • java.lang.Object
    • com.azure.resourcemanager.security.models.ActionableRemediation

Implements

public final class ActionableRemediation
implements JsonSerializable<ActionableRemediation>

Configuration payload for PR Annotations.

Constructor Summary

Constructor Description
ActionableRemediation()

Creates an instance of ActionableRemediation class.

Method Summary

Modifier and Type Method and Description
TargetBranchConfiguration branchConfiguration()

Get the branchConfiguration property: Repository branch configuration for PR Annotations.

List<CategoryConfiguration> categoryConfigurations()

Get the categoryConfigurations property: Gets or sets list of categories and severity levels.

static ActionableRemediation fromJson(JsonReader jsonReader)

Reads an instance of ActionableRemediation from the JsonReader.

InheritFromParentState inheritFromParentState()

Get the inheritFromParentState property: Update Settings.

ActionableRemediationState state()

Get the state property: ActionableRemediation Setting.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ActionableRemediation withBranchConfiguration(TargetBranchConfiguration branchConfiguration)

Set the branchConfiguration property: Repository branch configuration for PR Annotations.

ActionableRemediation withCategoryConfigurations(List<CategoryConfiguration> categoryConfigurations)

Set the categoryConfigurations property: Gets or sets list of categories and severity levels.

ActionableRemediation withInheritFromParentState(InheritFromParentState inheritFromParentState)

Set the inheritFromParentState property: Update Settings.

ActionableRemediation withState(ActionableRemediationState state)

Set the state property: ActionableRemediation Setting.

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:

the branchConfiguration value.

categoryConfigurations

public List<CategoryConfiguration> categoryConfigurations()

Get the categoryConfigurations property: Gets or sets list of categories and severity levels.

Returns:

the categoryConfigurations value.

fromJson

public static ActionableRemediation fromJson(JsonReader jsonReader)

Reads an instance of ActionableRemediation from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ActionableRemediation if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the ActionableRemediation.

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:

the inheritFromParentState value.

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:

the state value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withBranchConfiguration

public ActionableRemediation withBranchConfiguration(TargetBranchConfiguration branchConfiguration)

Set the branchConfiguration property: Repository branch configuration for PR Annotations.

Parameters:

branchConfiguration - the branchConfiguration value to set.

Returns:

the ActionableRemediation object itself.

withCategoryConfigurations

public ActionableRemediation withCategoryConfigurations(List<CategoryConfiguration> categoryConfigurations)

Set the categoryConfigurations property: Gets or sets list of categories and severity levels.

Parameters:

categoryConfigurations - the categoryConfigurations value to set.

Returns:

the ActionableRemediation object itself.

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:

inheritFromParentState - the inheritFromParentState value to set.

Returns:

the ActionableRemediation object itself.

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:

state - the state value to set.

Returns:

the ActionableRemediation object itself.

Applies to