Class CdnWebApplicationFirewallPolicyInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.cdn.fluent.models.CdnWebApplicationFirewallPolicyInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
public final class CdnWebApplicationFirewallPolicyInner
extends com.azure.core.management.Resource
Defines web application firewall policy for Azure CDN.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of CdnWebApplicationFirewallPolicyInner class. -
Method Summary
Modifier and TypeMethodDescriptionGet the customRules property: Describes custom rules inside the policy.Get the endpointLinks property: Describes Azure CDN endpoints associated with this Web Application Firewall policy.etag()Get the etag property: Gets a unique read-only string that changes whenever the resource is updated.Get the extendedProperties property: Key-Value pair representing additional properties for Web Application Firewall policy.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of CdnWebApplicationFirewallPolicyInner from the JsonReader.id()Get the id property: Fully qualified resource Id for the resource.Get the managedRules property: Describes managed rules inside the policy.name()Get the name property: The name of the resource.Get the policySettings property: Describes policySettings for policy.Get the provisioningState property: Provisioning state of the WebApplicationFirewallPolicy.Get the rateLimitRules property: Describes rate limit rules inside the policy.Get the resourceState property: Resource status of the policy.sku()Get the sku property: The pricing tier (defines a CDN provider, feature list and rate) of the CdnWebApplicationFirewallPolicy.com.azure.core.management.SystemDataGet the systemData property: Read only system data.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the resource.voidvalidate()Validates the instance.withCustomRules(CustomRuleList customRules) Set the customRules property: Describes custom rules inside the policy.Set the etag property: Gets a unique read-only string that changes whenever the resource is updated.withExtendedProperties(Map<String, String> extendedProperties) Set the extendedProperties property: Key-Value pair representing additional properties for Web Application Firewall policy.withLocation(String location) withManagedRules(ManagedRuleSetList managedRules) Set the managedRules property: Describes managed rules inside the policy.withPolicySettings(PolicySettings policySettings) Set the policySettings property: Describes policySettings for policy.withRateLimitRules(RateLimitRuleList rateLimitRules) Set the rateLimitRules property: Describes rate limit rules inside the policy.Set the sku property: The pricing tier (defines a CDN provider, feature list and rate) of the CdnWebApplicationFirewallPolicy.Methods inherited from class com.azure.core.management.Resource
location, tagsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
CdnWebApplicationFirewallPolicyInner
public CdnWebApplicationFirewallPolicyInner()Creates an instance of CdnWebApplicationFirewallPolicyInner class.
-
-
Method Details
-
etag
Get the etag property: Gets a unique read-only string that changes whenever the resource is updated.- Returns:
- the etag value.
-
withEtag
Set the etag property: Gets a unique read-only string that changes whenever the resource is updated.- Parameters:
etag- the etag value to set.- Returns:
- the CdnWebApplicationFirewallPolicyInner object itself.
-
sku
Get the sku property: The pricing tier (defines a CDN provider, feature list and rate) of the CdnWebApplicationFirewallPolicy.- Returns:
- the sku value.
-
withSku
Set the sku property: The pricing tier (defines a CDN provider, feature list and rate) of the CdnWebApplicationFirewallPolicy.- Parameters:
sku- the sku value to set.- Returns:
- the CdnWebApplicationFirewallPolicyInner object itself.
-
systemData
public com.azure.core.management.SystemData systemData()Get the systemData property: Read only system data.- Returns:
- the systemData value.
-
type
Get the type property: The type of the resource.- Overrides:
typein classcom.azure.core.management.ProxyResource- Returns:
- the type value.
-
name
Get the name property: The name of the resource.- Overrides:
namein classcom.azure.core.management.ProxyResource- Returns:
- the name value.
-
id
Get the id property: Fully qualified resource Id for the resource.- Overrides:
idin classcom.azure.core.management.ProxyResource- Returns:
- the id value.
-
withLocation
- Overrides:
withLocationin classcom.azure.core.management.Resource
-
withTags
- Overrides:
withTagsin classcom.azure.core.management.Resource
-
policySettings
Get the policySettings property: Describes policySettings for policy.- Returns:
- the policySettings value.
-
withPolicySettings
Set the policySettings property: Describes policySettings for policy.- Parameters:
policySettings- the policySettings value to set.- Returns:
- the CdnWebApplicationFirewallPolicyInner object itself.
-
rateLimitRules
Get the rateLimitRules property: Describes rate limit rules inside the policy.- Returns:
- the rateLimitRules value.
-
withRateLimitRules
Set the rateLimitRules property: Describes rate limit rules inside the policy.- Parameters:
rateLimitRules- the rateLimitRules value to set.- Returns:
- the CdnWebApplicationFirewallPolicyInner object itself.
-
customRules
Get the customRules property: Describes custom rules inside the policy.- Returns:
- the customRules value.
-
withCustomRules
Set the customRules property: Describes custom rules inside the policy.- Parameters:
customRules- the customRules value to set.- Returns:
- the CdnWebApplicationFirewallPolicyInner object itself.
-
managedRules
Get the managedRules property: Describes managed rules inside the policy.- Returns:
- the managedRules value.
-
withManagedRules
Set the managedRules property: Describes managed rules inside the policy.- Parameters:
managedRules- the managedRules value to set.- Returns:
- the CdnWebApplicationFirewallPolicyInner object itself.
-
endpointLinks
Get the endpointLinks property: Describes Azure CDN endpoints associated with this Web Application Firewall policy.- Returns:
- the endpointLinks value.
-
extendedProperties
-
withExtendedProperties
public CdnWebApplicationFirewallPolicyInner withExtendedProperties(Map<String, String> extendedProperties) Set the extendedProperties property: Key-Value pair representing additional properties for Web Application Firewall policy.- Parameters:
extendedProperties- the extendedProperties value to set.- Returns:
- the CdnWebApplicationFirewallPolicyInner object itself.
-
provisioningState
Get the provisioningState property: Provisioning state of the WebApplicationFirewallPolicy.- Returns:
- the provisioningState value.
-
resourceState
Get the resourceState property: Resource status of the policy.- Returns:
- the resourceState value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>- Overrides:
toJsonin classcom.azure.core.management.Resource- Throws:
IOException
-
fromJson
public static CdnWebApplicationFirewallPolicyInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of CdnWebApplicationFirewallPolicyInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of CdnWebApplicationFirewallPolicyInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the CdnWebApplicationFirewallPolicyInner.
-