Share via


WafPolicy Class

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

Implements

public final class WafPolicy
implements JsonSerializable<WafPolicy>

Web Application Firewall Policy.

Constructor Summary

Constructor Description
WafPolicy()

Creates an instance of WafPolicy class.

Method Summary

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

Reads an instance of WafPolicy from the JsonReader.

String id()

Get the id property: Resource ID of the WAF.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

WafPolicy withId(String id)

Set the id property: Resource ID of the WAF.

Methods inherited from java.lang.Object

Constructor Details

WafPolicy

public WafPolicy()

Creates an instance of WafPolicy class.

Method Details

fromJson

public static WafPolicy fromJson(JsonReader jsonReader)

Reads an instance of WafPolicy from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Returns:

the id value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withId

public WafPolicy withId(String id)

Set the id property: Resource ID of the WAF.

Parameters:

id - the id value to set.

Returns:

the WafPolicy object itself.

Applies to