Share via


SecurityPolicyProperties Class

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

Implements

public final class SecurityPolicyProperties
implements JsonSerializable<SecurityPolicyProperties>

SecurityPolicy Properties.

Constructor Summary

Constructor Description
SecurityPolicyProperties()

Creates an instance of SecurityPolicyProperties class.

Method Summary

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

Reads an instance of SecurityPolicyProperties from the JsonReader.

PolicyType policyType()

Get the policyType property: Type of the Traffic Controller Security Policy.

ProvisioningState provisioningState()

Get the provisioningState property: Provisioning State of Traffic Controller SecurityPolicy Resource.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

WafPolicy wafPolicy()

Get the wafPolicy property: Web Application Firewall Policy of the Traffic Controller Security Policy.

SecurityPolicyProperties withWafPolicy(WafPolicy wafPolicy)

Set the wafPolicy property: Web Application Firewall Policy of the Traffic Controller Security Policy.

Methods inherited from java.lang.Object

Constructor Details

SecurityPolicyProperties

public SecurityPolicyProperties()

Creates an instance of SecurityPolicyProperties class.

Method Details

fromJson

public static SecurityPolicyProperties fromJson(JsonReader jsonReader)

Reads an instance of SecurityPolicyProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

policyType

public PolicyType policyType()

Get the policyType property: Type of the Traffic Controller Security Policy.

Returns:

the policyType value.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: Provisioning State of Traffic Controller SecurityPolicy Resource.

Returns:

the provisioningState value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

wafPolicy

public WafPolicy wafPolicy()

Get the wafPolicy property: Web Application Firewall Policy of the Traffic Controller Security Policy.

Returns:

the wafPolicy value.

withWafPolicy

public SecurityPolicyProperties withWafPolicy(WafPolicy wafPolicy)

Set the wafPolicy property: Web Application Firewall Policy of the Traffic Controller Security Policy.

Parameters:

wafPolicy - the wafPolicy value to set.

Returns:

the SecurityPolicyProperties object itself.

Applies to