DeviceSecurityGroupInner Class

public final class DeviceSecurityGroupInner
extends ProxyResource

The device security group resource.

Constructor Summary

Constructor Description
DeviceSecurityGroupInner()

Creates an instance of DeviceSecurityGroupInner class.

Method Summary

Modifier and Type Method and Description
List<AllowlistCustomAlertRule> allowlistRules()

Get the allowlistRules property: The allow-list custom alert rules.

List<DenylistCustomAlertRule> denylistRules()

Get the denylistRules property: The deny-list custom alert rules.

static DeviceSecurityGroupInner fromJson(JsonReader jsonReader)

Reads an instance of DeviceSecurityGroupInner from the JsonReader.

String id()

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

String name()

Get the name property: The name of the resource.

SystemData systemData()

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

List<ThresholdCustomAlertRule> thresholdRules()

Get the thresholdRules property: The list of custom alert threshold rules.

List<TimeWindowCustomAlertRule> timeWindowRules()

Get the timeWindowRules property: The list of custom alert time-window rules.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

DeviceSecurityGroupInner withAllowlistRules(List<AllowlistCustomAlertRule> allowlistRules)

Set the allowlistRules property: The allow-list custom alert rules.

DeviceSecurityGroupInner withDenylistRules(List<DenylistCustomAlertRule> denylistRules)

Set the denylistRules property: The deny-list custom alert rules.

DeviceSecurityGroupInner withThresholdRules(List<ThresholdCustomAlertRule> thresholdRules)

Set the thresholdRules property: The list of custom alert threshold rules.

DeviceSecurityGroupInner withTimeWindowRules(List<TimeWindowCustomAlertRule> timeWindowRules)

Set the timeWindowRules property: The list of custom alert time-window rules.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

DeviceSecurityGroupInner

public DeviceSecurityGroupInner()

Creates an instance of DeviceSecurityGroupInner class.

Method Details

allowlistRules

public List<AllowlistCustomAlertRule> allowlistRules()

Get the allowlistRules property: The allow-list custom alert rules.

Returns:

the allowlistRules value.

denylistRules

public List<DenylistCustomAlertRule> denylistRules()

Get the denylistRules property: The deny-list custom alert rules.

Returns:

the denylistRules value.

fromJson

public static DeviceSecurityGroupInner fromJson(JsonReader jsonReader)

Reads an instance of DeviceSecurityGroupInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DeviceSecurityGroupInner 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:

DeviceSecurityGroupInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

DeviceSecurityGroupInner.name()

Returns:

the name value.

systemData

public SystemData systemData()

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

Returns:

the systemData value.

thresholdRules

public List<ThresholdCustomAlertRule> thresholdRules()

Get the thresholdRules property: The list of custom alert threshold rules.

Returns:

the thresholdRules value.

timeWindowRules

public List<TimeWindowCustomAlertRule> timeWindowRules()

Get the timeWindowRules property: The list of custom alert time-window rules.

Returns:

the timeWindowRules value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

DeviceSecurityGroupInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

DeviceSecurityGroupInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withAllowlistRules

public DeviceSecurityGroupInner withAllowlistRules(List<AllowlistCustomAlertRule> allowlistRules)

Set the allowlistRules property: The allow-list custom alert rules.

Parameters:

allowlistRules - the allowlistRules value to set.

Returns:

the DeviceSecurityGroupInner object itself.

withDenylistRules

public DeviceSecurityGroupInner withDenylistRules(List<DenylistCustomAlertRule> denylistRules)

Set the denylistRules property: The deny-list custom alert rules.

Parameters:

denylistRules - the denylistRules value to set.

Returns:

the DeviceSecurityGroupInner object itself.

withThresholdRules

public DeviceSecurityGroupInner withThresholdRules(List<ThresholdCustomAlertRule> thresholdRules)

Set the thresholdRules property: The list of custom alert threshold rules.

Parameters:

thresholdRules - the thresholdRules value to set.

Returns:

the DeviceSecurityGroupInner object itself.

withTimeWindowRules

public DeviceSecurityGroupInner withTimeWindowRules(List<TimeWindowCustomAlertRule> timeWindowRules)

Set the timeWindowRules property: The list of custom alert time-window rules.

Parameters:

timeWindowRules - the timeWindowRules value to set.

Returns:

the DeviceSecurityGroupInner object itself.

Applies to