AutomationSource Class

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

Implements

public final class AutomationSource
implements JsonSerializable<AutomationSource>

The source event types which evaluate the security automation set of rules. For example - security alerts and security assessments. To learn more about the supported security events data models schemas - please visit https://aka.ms/ASCAutomationSchemas.

Constructor Summary

Constructor Description
AutomationSource()

Creates an instance of AutomationSource class.

Method Summary

Modifier and Type Method and Description
EventSource eventSource()

Get the eventSource property: A valid event source type.

static AutomationSource fromJson(JsonReader jsonReader)

Reads an instance of AutomationSource from the JsonReader.

List<AutomationRuleSet> ruleSets()

Get the ruleSets property: A set of rules which evaluate upon event interception.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AutomationSource withEventSource(EventSource eventSource)

Set the eventSource property: A valid event source type.

AutomationSource withRuleSets(List<AutomationRuleSet> ruleSets)

Set the ruleSets property: A set of rules which evaluate upon event interception.

Methods inherited from java.lang.Object

Constructor Details

AutomationSource

public AutomationSource()

Creates an instance of AutomationSource class.

Method Details

eventSource

public EventSource eventSource()

Get the eventSource property: A valid event source type.

Returns:

the eventSource value.

fromJson

public static AutomationSource fromJson(JsonReader jsonReader)

Reads an instance of AutomationSource from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of AutomationSource 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 AutomationSource.

ruleSets

public List<AutomationRuleSet> ruleSets()

Get the ruleSets property: A set of rules which evaluate upon event interception. A logical disjunction is applied between defined rule sets (logical 'or').

Returns:

the ruleSets value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withEventSource

public AutomationSource withEventSource(EventSource eventSource)

Set the eventSource property: A valid event source type.

Parameters:

eventSource - the eventSource value to set.

Returns:

the AutomationSource object itself.

withRuleSets

public AutomationSource withRuleSets(List<AutomationRuleSet> ruleSets)

Set the ruleSets property: A set of rules which evaluate upon event interception. A logical disjunction is applied between defined rule sets (logical 'or').

Parameters:

ruleSets - the ruleSets value to set.

Returns:

the AutomationSource object itself.

Applies to