Share via


WafSecurityPolicy Class

  • java.lang.Object
    • com.azure.resourcemanager.servicenetworking.models.WafSecurityPolicy

Implements

public final class WafSecurityPolicy
implements JsonSerializable<WafSecurityPolicy>

Web Application Firewall Security Policy.

Constructor Summary

Constructor Description
WafSecurityPolicy()

Creates an instance of WafSecurityPolicy class.

Method Summary

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

Reads an instance of WafSecurityPolicy from the JsonReader.

String id()

Get the id property: Resource ID of the Waf Security Policy.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

WafSecurityPolicy withId(String id)

Set the id property: Resource ID of the Waf Security Policy.

Methods inherited from java.lang.Object

Constructor Details

WafSecurityPolicy

public WafSecurityPolicy()

Creates an instance of WafSecurityPolicy class.

Method Details

fromJson

public static WafSecurityPolicy fromJson(JsonReader jsonReader)

Reads an instance of WafSecurityPolicy from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of WafSecurityPolicy 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: Resource ID of the Waf Security Policy.

Returns:

the id value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withId

public WafSecurityPolicy withId(String id)

Set the id property: Resource ID of the Waf Security Policy.

Parameters:

id - the id value to set.

Returns:

the WafSecurityPolicy object itself.

Applies to