AutomationInner Class

public final class AutomationInner
extends ProxyResource

The security automation resource.

Constructor Summary

Constructor Description
AutomationInner()

Creates an instance of AutomationInner class.

Method Summary

Modifier and Type Method and Description
List<AutomationAction> actions()

Get the actions property: A collection of the actions which are triggered if all the configured rules evaluations, within at least one rule set, are true.

String description()

Get the description property: The security automation description.

String etag()

Get the etag property: Entity tag is used for comparing two or more entities from the same requested resource.

static AutomationInner fromJson(JsonReader jsonReader)

Reads an instance of AutomationInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

Boolean isEnabled()

Get the isEnabled property: Indicates whether the security automation is enabled.

String kind()

Get the kind property: Kind of the resource.

String location()

Get the location property: The geo-location where the resource lives.

String name()

Get the name property: The name of the resource.

List<AutomationScope> scopes()

Get the scopes property: A collection of scopes on which the security automations logic is applied.

List<AutomationSource> sources()

Get the sources property: A collection of the source event types which evaluate the security automation set of rules.

SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

Map<String,String> tags()

Get the tags property: Resource tags.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

AutomationInner withActions(List<AutomationAction> actions)

Set the actions property: A collection of the actions which are triggered if all the configured rules evaluations, within at least one rule set, are true.

AutomationInner withDescription(String description)

Set the description property: The security automation description.

AutomationInner withEtag(String etag)

Set the etag property: Entity tag is used for comparing two or more entities from the same requested resource.

AutomationInner withIsEnabled(Boolean isEnabled)

Set the isEnabled property: Indicates whether the security automation is enabled.

AutomationInner withKind(String kind)

Set the kind property: Kind of the resource.

AutomationInner withLocation(String location)

Set the location property: The geo-location where the resource lives.

AutomationInner withScopes(List<AutomationScope> scopes)

Set the scopes property: A collection of scopes on which the security automations logic is applied.

AutomationInner withSources(List<AutomationSource> sources)

Set the sources property: A collection of the source event types which evaluate the security automation set of rules.

AutomationInner withTags(Map<String,String> tags)

Set the tags property: Resource tags.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

AutomationInner

public AutomationInner()

Creates an instance of AutomationInner class.

Method Details

actions

public List<AutomationAction> actions()

Get the actions property: A collection of the actions which are triggered if all the configured rules evaluations, within at least one rule set, are true.

Returns:

the actions value.

description

public String description()

Get the description property: The security automation description.

Returns:

the description value.

etag

public String etag()

Get the etag property: Entity tag is used for comparing two or more entities from the same requested resource.

Returns:

the etag value.

fromJson

public static AutomationInner fromJson(JsonReader jsonReader)

Reads an instance of AutomationInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

AutomationInner.id()

Returns:

the id value.

isEnabled

public Boolean isEnabled()

Get the isEnabled property: Indicates whether the security automation is enabled.

Returns:

the isEnabled value.

kind

public String kind()

Get the kind property: Kind of the resource.

Returns:

the kind value.

location

public String location()

Get the location property: The geo-location where the resource lives.

Returns:

the location value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

AutomationInner.name()

Returns:

the name value.

scopes

public List<AutomationScope> scopes()

Get the scopes property: A collection of scopes on which the security automations logic is applied. Supported scopes are the subscription itself or a resource group under that subscription. The automation will only apply on defined scopes.

Returns:

the scopes value.

sources

public List<AutomationSource> sources()

Get the sources property: A collection of the source event types which evaluate the security automation set of rules.

Returns:

the sources value.

systemData

public SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

Returns:

the systemData value.

tags

public Map<String,String> tags()

Get the tags property: Resource tags.

Returns:

the tags value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

AutomationInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

AutomationInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withActions

public AutomationInner withActions(List<AutomationAction> actions)

Set the actions property: A collection of the actions which are triggered if all the configured rules evaluations, within at least one rule set, are true.

Parameters:

actions - the actions value to set.

Returns:

the AutomationInner object itself.

withDescription

public AutomationInner withDescription(String description)

Set the description property: The security automation description.

Parameters:

description - the description value to set.

Returns:

the AutomationInner object itself.

withEtag

public AutomationInner withEtag(String etag)

Set the etag property: Entity tag is used for comparing two or more entities from the same requested resource.

Parameters:

etag - the etag value to set.

Returns:

the AutomationInner object itself.

withIsEnabled

public AutomationInner withIsEnabled(Boolean isEnabled)

Set the isEnabled property: Indicates whether the security automation is enabled.

Parameters:

isEnabled - the isEnabled value to set.

Returns:

the AutomationInner object itself.

withKind

public AutomationInner withKind(String kind)

Set the kind property: Kind of the resource.

Parameters:

kind - the kind value to set.

Returns:

the AutomationInner object itself.

withLocation

public AutomationInner withLocation(String location)

Set the location property: The geo-location where the resource lives.

Parameters:

location - the location value to set.

Returns:

the AutomationInner object itself.

withScopes

public AutomationInner withScopes(List<AutomationScope> scopes)

Set the scopes property: A collection of scopes on which the security automations logic is applied. Supported scopes are the subscription itself or a resource group under that subscription. The automation will only apply on defined scopes.

Parameters:

scopes - the scopes value to set.

Returns:

the AutomationInner object itself.

withSources

public AutomationInner withSources(List<AutomationSource> sources)

Set the sources property: A collection of the source event types which evaluate the security automation set of rules.

Parameters:

sources - the sources value to set.

Returns:

the AutomationInner object itself.

withTags

public AutomationInner withTags(Map<String,String> tags)

Set the tags property: Resource tags.

Parameters:

tags - the tags value to set.

Returns:

the AutomationInner object itself.

Applies to