All Downloads are FREE. Search and download functionalities are using the official Maven repository.

target.apidocs.com.google.api.services.compute.model.HostRule.html Maven / Gradle / Ivy

There is a newer version: v1-rev20240903-2.0.0
Show newest version






HostRule (Compute Engine API v1-rev20240919-2.0.0)












com.google.api.services.compute.model

Class HostRule

  • All Implemented Interfaces:
    Cloneable, Map<String,Object>


    public final class HostRule
    extends com.google.api.client.json.GenericJson
    UrlMaps A host-matching rule for a URL. If matched, will use the named PathMatcher to select the BackendService.

    This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json

    Author:
    Google, Inc.
    • Constructor Detail

      • HostRule

        public HostRule()
    • Method Detail

      • getDescription

        public String getDescription()
        An optional description of this resource. Provide this property when you create the resource.
        Returns:
        value or null for none
      • setDescription

        public HostRule setDescription(String description)
        An optional description of this resource. Provide this property when you create the resource.
        Parameters:
        description - description or null for none
      • getHosts

        public List<String> getHosts()
        The list of host patterns to match. They must be valid hostnames with optional port numbers in the format host:port. * matches any string of ([a-z0-9-.]*). In that case, * must be the first character, and if followed by anything, the immediate following character must be either - or .. * based matching is not supported when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
        Returns:
        value or null for none
      • setHosts

        public HostRule setHosts(List<String> hosts)
        The list of host patterns to match. They must be valid hostnames with optional port numbers in the format host:port. * matches any string of ([a-z0-9-.]*). In that case, * must be the first character, and if followed by anything, the immediate following character must be either - or .. * based matching is not supported when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true.
        Parameters:
        hosts - hosts or null for none
      • getPathMatcher

        public String getPathMatcher()
        The name of the PathMatcher to use to match the path portion of the URL if the hostRule matches the URL's host portion.
        Returns:
        value or null for none
      • setPathMatcher

        public HostRule setPathMatcher(String pathMatcher)
        The name of the PathMatcher to use to match the path portion of the URL if the hostRule matches the URL's host portion.
        Parameters:
        pathMatcher - pathMatcher or null for none
      • set

        public HostRule set(String fieldName,
                            Object value)
        Overrides:
        set in class com.google.api.client.json.GenericJson
      • clone

        public HostRule clone()
        Overrides:
        clone in class com.google.api.client.json.GenericJson

Copyright © 2011–2024 Google. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy