Class AirPrintDestination

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

    public class AirPrintDestination
    extends Object
    implements com.github.davidmoten.odata.client.ODataType
    “Represents an AirPrint destination.”
    • 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
      • forceTls

        protected Boolean forceTls
      • ipAddress

        protected String ipAddress
      • resourcePath

        protected String resourcePath
    • Constructor Detail

      • AirPrintDestination

        protected AirPrintDestination()
    • Method Detail

      • odataTypeName

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

        public Optional<Boolean> getForceTls()
        “If true AirPrint connections are secured by Transport Layer Security (TLS). Default is false. Available in iOS 11.0 and later.”
        Returns:
        property forceTls
      • withForceTls

        public AirPrintDestination withForceTls​(Boolean forceTls)
        Returns an immutable copy of this with just the forceTls 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.

        “If true AirPrint connections are secured by Transport Layer Security (TLS). Default is false. Available in iOS 11.0 and later.”

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

        public Optional<String> getIpAddress()
        “The IP Address of the AirPrint destination.”
        Returns:
        property ipAddress
      • withIpAddress

        public AirPrintDestination withIpAddress​(String ipAddress)
        Returns an immutable copy of this with just the ipAddress 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.

        “The IP Address of the AirPrint destination.”

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

        public Optional<Integer> getPort()
        “The listening port of the AirPrint destination. If this key is not specified AirPrint will use the default port. Available in iOS 11.0 and later.”
        Returns:
        property port
      • withPort

        public AirPrintDestination withPort​(Integer port)
        Returns an immutable copy of this with just the port 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.

        “The listening port of the AirPrint destination. If this key is not specified AirPrint will use the default port. Available in iOS 11.0 and later.”

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

        public Optional<String> getResourcePath()
        “The Resource Path associated with the printer. This corresponds to the rp parameter of the _ipps.tcp Bonjour record. For example: printers/Canon_MG5300_ series, printers/Xerox_Phaser_7600, ipp/print, Epson_IPP_Printer.”
        Returns:
        property resourcePath
      • withResourcePath

        public AirPrintDestination withResourcePath​(String resourcePath)
        Returns an immutable copy of this with just the resourcePath 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.

        “The Resource Path associated with the printer. This corresponds to the rp parameter of the _ipps.tcp Bonjour record. For example: printers/Canon_MG5300_ series, printers/Xerox_Phaser_7600, ipp/print, Epson_IPP_Printer.”

        Parameters:
        resourcePath - new value of resourcePath field (as defined in service metadata)
        Returns:
        immutable copy of this with just the resourcePath 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 AirPrintDestination.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