UserDefinedResourcesProperties Class

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

Implements

public final class UserDefinedResourcesProperties
implements JsonSerializable<UserDefinedResourcesProperties>

Properties of the IoT Security solution's user defined resources.

Constructor Summary

Constructor Description
UserDefinedResourcesProperties()

Creates an instance of UserDefinedResourcesProperties class.

Method Summary

Modifier and Type Method and Description
static UserDefinedResourcesProperties fromJson(JsonReader jsonReader)

Reads an instance of UserDefinedResourcesProperties from the JsonReader.

String query()

Get the query property: Azure Resource Graph query which represents the security solution's user defined resources.

List<String> querySubscriptions()

Get the querySubscriptions property: List of Azure subscription ids on which the user defined resources query should be executed.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

UserDefinedResourcesProperties withQuery(String query)

Set the query property: Azure Resource Graph query which represents the security solution's user defined resources.

UserDefinedResourcesProperties withQuerySubscriptions(List<String> querySubscriptions)

Set the querySubscriptions property: List of Azure subscription ids on which the user defined resources query should be executed.

Methods inherited from java.lang.Object

Constructor Details

UserDefinedResourcesProperties

public UserDefinedResourcesProperties()

Creates an instance of UserDefinedResourcesProperties class.

Method Details

fromJson

public static UserDefinedResourcesProperties fromJson(JsonReader jsonReader)

Reads an instance of UserDefinedResourcesProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

query

public String query()

Get the query property: Azure Resource Graph query which represents the security solution's user defined resources. Required to start with "where type != "Microsoft.Devices/IotHubs"".

Returns:

the query value.

querySubscriptions

public List<String> querySubscriptions()

Get the querySubscriptions property: List of Azure subscription ids on which the user defined resources query should be executed.

Returns:

the querySubscriptions value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withQuery

public UserDefinedResourcesProperties withQuery(String query)

Set the query property: Azure Resource Graph query which represents the security solution's user defined resources. Required to start with "where type != "Microsoft.Devices/IotHubs"".

Parameters:

query - the query value to set.

Returns:

the UserDefinedResourcesProperties object itself.

withQuerySubscriptions

public UserDefinedResourcesProperties withQuerySubscriptions(List<String> querySubscriptions)

Set the querySubscriptions property: List of Azure subscription ids on which the user defined resources query should be executed.

Parameters:

querySubscriptions - the querySubscriptions value to set.

Returns:

the UserDefinedResourcesProperties object itself.

Applies to