Class AirPrintDestination
- java.lang.Object
-
- odata.msgraph.client.beta.complex.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.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAirPrintDestination.Builder
-
Field Summary
Fields Modifier and Type Field Description protected com.github.davidmoten.odata.client.ContextPathcontextPathprotected BooleanforceTlsprotected StringipAddressprotected StringodataTypeprotected Integerportprotected StringresourcePathprotected com.github.davidmoten.odata.client.internal.UnmappedFieldsImplunmappedFields
-
Constructor Summary
Constructors Modifier Constructor Description protectedAirPrintDestination()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AirPrintDestination.Builderbuilder()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<Boolean>getForceTls()“If true AirPrint connections are secured by Transport Layer Security (TLS).Optional<String>getIpAddress()“The IP Address of the AirPrint destination.”Optional<Integer>getPort()“The listening port of the AirPrint destination.Optional<String>getResourcePath()“The Resource Path associated with the printer.com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()voidpostInject(boolean addKeysToContextPath)StringtoString()AirPrintDestinationwithForceTls(Boolean forceTls)Returns an immutable copy ofthiswith just theforceTlsfield changed.AirPrintDestinationwithIpAddress(String ipAddress)Returns an immutable copy ofthiswith just theipAddressfield changed.AirPrintDestinationwithPort(Integer port)Returns an immutable copy ofthiswith just theportfield changed.AirPrintDestinationwithResourcePath(String resourcePath)Returns an immutable copy ofthiswith just theresourcePathfield changed.AirPrintDestinationwithUnmappedField(String name, String value)
-
-
-
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
-
port
protected Integer port
-
resourcePath
protected String resourcePath
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.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 ofthiswith just theforceTlsfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.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 offorceTlsfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theforceTlsfield 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 ofthiswith just theipAddressfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.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 ofipAddressfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theipAddressfield 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 ofthiswith just theportfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.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 ofportfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theportfield 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 ofthiswith just theresourcePathfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. 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 ofresourcePathfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theresourcePathfield changed
-
withUnmappedField
public AirPrintDestination withUnmappedField(String name, String value)
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.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
-
-