Share via


SecurityPolicyConfigurations Class

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

Implements

public final class SecurityPolicyConfigurations
implements JsonSerializable<SecurityPolicyConfigurations>

SecurityPolicyConfigurations Subresource of Traffic Controller.

Constructor Summary

Constructor Description
SecurityPolicyConfigurations()

Creates an instance of SecurityPolicyConfigurations class.

Method Summary

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

Reads an instance of SecurityPolicyConfigurations from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

WafSecurityPolicy wafSecurityPolicy()

Get the wafSecurityPolicy property: Contains reference to a WAF-type security policy that is applied at the Traffic Controller level.

SecurityPolicyConfigurations withWafSecurityPolicy(WafSecurityPolicy wafSecurityPolicy)

Set the wafSecurityPolicy property: Contains reference to a WAF-type security policy that is applied at the Traffic Controller level.

Methods inherited from java.lang.Object

Constructor Details

SecurityPolicyConfigurations

public SecurityPolicyConfigurations()

Creates an instance of SecurityPolicyConfigurations class.

Method Details

fromJson

public static SecurityPolicyConfigurations fromJson(JsonReader jsonReader)

Reads an instance of SecurityPolicyConfigurations from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the SecurityPolicyConfigurations.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

wafSecurityPolicy

public WafSecurityPolicy wafSecurityPolicy()

Get the wafSecurityPolicy property: Contains reference to a WAF-type security policy that is applied at the Traffic Controller level.

Returns:

the wafSecurityPolicy value.

withWafSecurityPolicy

public SecurityPolicyConfigurations withWafSecurityPolicy(WafSecurityPolicy wafSecurityPolicy)

Set the wafSecurityPolicy property: Contains reference to a WAF-type security policy that is applied at the Traffic Controller level.

Parameters:

wafSecurityPolicy - the wafSecurityPolicy value to set.

Returns:

the SecurityPolicyConfigurations object itself.

Applies to