Class VpnRoute

  • All Implemented Interfaces:
    com.github.davidmoten.odata.client.ODataType

    public class VpnRoute
    extends Object
    implements com.github.davidmoten.odata.client.ODataType
    “VPN Route definition.”
    • Field Detail

      • contextPath

        protected com.github.davidmoten.odata.client.ContextPath contextPath
      • unmappedFields

        protected com.github.davidmoten.odata.client.internal.UnmappedFieldsImpl unmappedFields
      • odataType

        protected String odataType
      • destinationPrefix

        protected String destinationPrefix
      • prefixSize

        protected Integer prefixSize
    • Constructor Detail

      • VpnRoute

        protected VpnRoute()
    • Method Detail

      • odataTypeName

        public String odataTypeName()
        Specified by:
        odataTypeName in interface com.github.davidmoten.odata.client.ODataType
      • getDestinationPrefix

        public Optional<String> getDestinationPrefix()
        “Destination prefix (IPv4/v6 address).”
        Returns:
        property destinationPrefix
      • withDestinationPrefix

        public VpnRoute withDestinationPrefix​(String destinationPrefix)
        Returns an immutable copy of this with just the destinationPrefix field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. patch() is called (if available)on the returned object only the changed fields are submitted.

        “Destination prefix (IPv4/v6 address).”

        Parameters:
        destinationPrefix - new value of destinationPrefix field (as defined in service metadata)
        Returns:
        immutable copy of this with just the destinationPrefix field changed
      • getPrefixSize

        public Optional<Integer> getPrefixSize()
        “Prefix size. (1-32). Valid values 1 to 32”
        Returns:
        property prefixSize
      • withPrefixSize

        public VpnRoute withPrefixSize​(Integer prefixSize)
        Returns an immutable copy of this with just the prefixSize field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “Prefix size. (1-32). Valid values 1 to 32”

        Parameters:
        prefixSize - new value of prefixSize field (as defined in service metadata)
        Returns:
        immutable copy of this with just the prefixSize field changed
      • getUnmappedFields

        public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
        Specified by:
        getUnmappedFields in interface com.github.davidmoten.odata.client.ODataType
      • postInject

        public void postInject​(boolean addKeysToContextPath)
        Specified by:
        postInject in interface com.github.davidmoten.odata.client.ODataType
      • builder

        public static VpnRoute.Builder builder()
        Returns a builder which is used to create a new instance of this class (given that this class is immutable).
        Returns:
        a new Builder for this class