### YamlMime:JavaType uid: "com.azure.resourcemanager.cdn.models.GeoFilter" fullName: "com.azure.resourcemanager.cdn.models.GeoFilter" name: "GeoFilter" nameWithType: "GeoFilter" summary: "Rules defining user's geo access within a CDN endpoint." inheritances: - "" inheritedClassMethods: - classRef: "java.lang.Object" methodsRef: - "clone" - "equals" - "finalize" - "getClass" - "hashCode" - "notify" - "notifyAll" - "toString" - "wait" - "wait" - "wait" syntax: "public final class **GeoFilter**
implements <>" constructors: - uid: "com.azure.resourcemanager.cdn.models.GeoFilter.GeoFilter()" fullName: "com.azure.resourcemanager.cdn.models.GeoFilter.GeoFilter()" name: "GeoFilter()" nameWithType: "GeoFilter.GeoFilter()" summary: "Creates an instance of GeoFilter class." syntax: "public GeoFilter()" desc: "Creates an instance of GeoFilter class." methods: - uid: "com.azure.resourcemanager.cdn.models.GeoFilter.action()" fullName: "com.azure.resourcemanager.cdn.models.GeoFilter.action()" name: "action()" nameWithType: "GeoFilter.action()" summary: "Get the action property: Action of the geo filter, i.e." syntax: "public GeoFilterActions action()" desc: "Get the action property: Action of the geo filter, i.e. allow or block access." returns: description: "the action value." type: "" - uid: "com.azure.resourcemanager.cdn.models.GeoFilter.countryCodes()" fullName: "com.azure.resourcemanager.cdn.models.GeoFilter.countryCodes()" name: "countryCodes()" nameWithType: "GeoFilter.countryCodes()" summary: "Get the countryCodes property: Two letter country or region codes defining user country or region access in a geo filter, e.g." syntax: "public List countryCodes()" desc: "Get the countryCodes property: Two letter country or region codes defining user country or region access in a geo filter, e.g. AU, MX, US." returns: description: "the countryCodes value." type: "List<String>" - uid: "com.azure.resourcemanager.cdn.models.GeoFilter.fromJson(com.azure.json.JsonReader)" fullName: "com.azure.resourcemanager.cdn.models.GeoFilter.fromJson(JsonReader jsonReader)" name: "fromJson(JsonReader jsonReader)" nameWithType: "GeoFilter.fromJson(JsonReader jsonReader)" summary: "Reads an instance of GeoFilter from the JsonReader." modifiers: - "static" parameters: - description: "The JsonReader being read." name: "jsonReader" type: "" syntax: "public static GeoFilter fromJson(JsonReader jsonReader)" exceptions: - description: "If the deserialized JSON object was missing any required properties." type: "IOException" desc: "Reads an instance of GeoFilter from the JsonReader." returns: description: "An instance of GeoFilter if the JsonReader was pointing to an instance of it, or null if it was pointing\n to JSON null." type: "" - uid: "com.azure.resourcemanager.cdn.models.GeoFilter.relativePath()" fullName: "com.azure.resourcemanager.cdn.models.GeoFilter.relativePath()" name: "relativePath()" nameWithType: "GeoFilter.relativePath()" summary: "Get the relativePath property: Relative path applicable to geo filter." syntax: "public String relativePath()" desc: "Get the relativePath property: Relative path applicable to geo filter. (e.g. '/mypictures', '/mypicture/kitty.jpg', and etc.)." returns: description: "the relativePath value." type: "String" - uid: "com.azure.resourcemanager.cdn.models.GeoFilter.toJson(com.azure.json.JsonWriter)" fullName: "com.azure.resourcemanager.cdn.models.GeoFilter.toJson(JsonWriter jsonWriter)" name: "toJson(JsonWriter jsonWriter)" nameWithType: "GeoFilter.toJson(JsonWriter jsonWriter)" parameters: - name: "jsonWriter" type: "" syntax: "public JsonWriter toJson(JsonWriter jsonWriter)" exceptions: - type: "IOException" returns: type: "" - uid: "com.azure.resourcemanager.cdn.models.GeoFilter.validate()" fullName: "com.azure.resourcemanager.cdn.models.GeoFilter.validate()" name: "validate()" nameWithType: "GeoFilter.validate()" summary: "Validates the instance." syntax: "public void validate()" desc: "Validates the instance." - uid: "com.azure.resourcemanager.cdn.models.GeoFilter.withAction(com.azure.resourcemanager.cdn.models.GeoFilterActions)" fullName: "com.azure.resourcemanager.cdn.models.GeoFilter.withAction(GeoFilterActions action)" name: "withAction(GeoFilterActions action)" nameWithType: "GeoFilter.withAction(GeoFilterActions action)" summary: "Set the action property: Action of the geo filter, i.e." parameters: - description: "the action value to set." name: "action" type: "" syntax: "public GeoFilter withAction(GeoFilterActions action)" desc: "Set the action property: Action of the geo filter, i.e. allow or block access." returns: description: "the GeoFilter object itself." type: "" - uid: "com.azure.resourcemanager.cdn.models.GeoFilter.withCountryCodes(java.util.List)" fullName: "com.azure.resourcemanager.cdn.models.GeoFilter.withCountryCodes(List countryCodes)" name: "withCountryCodes(List countryCodes)" nameWithType: "GeoFilter.withCountryCodes(List countryCodes)" summary: "Set the countryCodes property: Two letter country or region codes defining user country or region access in a geo filter, e.g." parameters: - description: "the countryCodes value to set." name: "countryCodes" type: "List<String>" syntax: "public GeoFilter withCountryCodes(List countryCodes)" desc: "Set the countryCodes property: Two letter country or region codes defining user country or region access in a geo filter, e.g. AU, MX, US." returns: description: "the GeoFilter object itself." type: "" - uid: "com.azure.resourcemanager.cdn.models.GeoFilter.withRelativePath(java.lang.String)" fullName: "com.azure.resourcemanager.cdn.models.GeoFilter.withRelativePath(String relativePath)" name: "withRelativePath(String relativePath)" nameWithType: "GeoFilter.withRelativePath(String relativePath)" summary: "Set the relativePath property: Relative path applicable to geo filter." parameters: - description: "the relativePath value to set." name: "relativePath" type: "String" syntax: "public GeoFilter withRelativePath(String relativePath)" desc: "Set the relativePath property: Relative path applicable to geo filter. (e.g. '/mypictures', '/mypicture/kitty.jpg', and etc.)." returns: description: "the GeoFilter object itself." type: "" type: "class" desc: "Rules defining user's geo access within a CDN endpoint." implements: - "<>" metadata: {} package: "com.azure.resourcemanager.cdn.models" artifact: com.azure.resourcemanager:azure-resourcemanager-cdn:2.42.0