Class OemWarranty
- java.lang.Object
-
- odata.msgraph.client.beta.complex.OemWarranty
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataType
public class OemWarranty extends Object implements com.github.davidmoten.odata.client.ODataType
“OEM Warranty information for a given device”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOemWarranty.Builder
-
Field Summary
Fields Modifier and Type Field Description protected List<WarrantyOffer>additionalWarrantiesprotected StringadditionalWarrantiesNextLinkprotected List<WarrantyOffer>baseWarrantiesprotected StringbaseWarrantiesNextLinkprotected com.github.davidmoten.odata.client.ContextPathcontextPathprotected StringdeviceConfigurationUrlprotected StringdeviceWarrantyUrlprotected StringodataTypeprotected com.github.davidmoten.odata.client.internal.UnmappedFieldsImplunmappedFields
-
Constructor Summary
Constructors Modifier Constructor Description protectedOemWarranty()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OemWarranty.Builderbuilder()Returns a builder which is used to create a new instance of this class (given that this class is immutable).com.github.davidmoten.odata.client.CollectionPage<WarrantyOffer>getAdditionalWarranties()“List of additional warranty offers.com.github.davidmoten.odata.client.CollectionPage<WarrantyOffer>getAdditionalWarranties(com.github.davidmoten.odata.client.HttpRequestOptions options)“List of additional warranty offers.com.github.davidmoten.odata.client.CollectionPage<WarrantyOffer>getBaseWarranties()“List of base warranty offers.com.github.davidmoten.odata.client.CollectionPage<WarrantyOffer>getBaseWarranties(com.github.davidmoten.odata.client.HttpRequestOptions options)“List of base warranty offers.Optional<String>getDeviceConfigurationUrl()“Device configuration page URL”Optional<String>getDeviceWarrantyUrl()“Device warranty page URL”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()voidpostInject(boolean addKeysToContextPath)StringtoString()OemWarrantywithDeviceConfigurationUrl(String deviceConfigurationUrl)Returns an immutable copy ofthiswith just thedeviceConfigurationUrlfield changed.OemWarrantywithDeviceWarrantyUrl(String deviceWarrantyUrl)Returns an immutable copy ofthiswith just thedeviceWarrantyUrlfield changed.OemWarrantywithUnmappedField(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
-
additionalWarranties
protected List<WarrantyOffer> additionalWarranties
-
additionalWarrantiesNextLink
protected String additionalWarrantiesNextLink
-
baseWarranties
protected List<WarrantyOffer> baseWarranties
-
baseWarrantiesNextLink
protected String baseWarrantiesNextLink
-
deviceConfigurationUrl
protected String deviceConfigurationUrl
-
deviceWarrantyUrl
protected String deviceWarrantyUrl
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType
-
getAdditionalWarranties
public com.github.davidmoten.odata.client.CollectionPage<WarrantyOffer> getAdditionalWarranties()
“List of additional warranty offers. This collection can contain a maximum of 100 elements.”- Returns:
- property additionalWarranties
-
getAdditionalWarranties
public com.github.davidmoten.odata.client.CollectionPage<WarrantyOffer> getAdditionalWarranties(com.github.davidmoten.odata.client.HttpRequestOptions options)
“List of additional warranty offers. This collection can contain a maximum of 100 elements.”- Parameters:
options- specify connect and read timeouts- Returns:
- property additionalWarranties
-
getBaseWarranties
public com.github.davidmoten.odata.client.CollectionPage<WarrantyOffer> getBaseWarranties()
“List of base warranty offers. This collection can contain a maximum of 100 elements.”- Returns:
- property baseWarranties
-
getBaseWarranties
public com.github.davidmoten.odata.client.CollectionPage<WarrantyOffer> getBaseWarranties(com.github.davidmoten.odata.client.HttpRequestOptions options)
“List of base warranty offers. This collection can contain a maximum of 100 elements.”- Parameters:
options- specify connect and read timeouts- Returns:
- property baseWarranties
-
getDeviceConfigurationUrl
public Optional<String> getDeviceConfigurationUrl()
“Device configuration page URL”- Returns:
- property deviceConfigurationUrl
-
withDeviceConfigurationUrl
public OemWarranty withDeviceConfigurationUrl(String deviceConfigurationUrl)
Returns an immutable copy ofthiswith just thedeviceConfigurationUrlfield 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.“Device configuration page URL”
- Parameters:
deviceConfigurationUrl- new value ofdeviceConfigurationUrlfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedeviceConfigurationUrlfield changed
-
getDeviceWarrantyUrl
public Optional<String> getDeviceWarrantyUrl()
“Device warranty page URL”- Returns:
- property deviceWarrantyUrl
-
withDeviceWarrantyUrl
public OemWarranty withDeviceWarrantyUrl(String deviceWarrantyUrl)
Returns an immutable copy ofthiswith just thedeviceWarrantyUrlfield 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.“Device warranty page URL”
- Parameters:
deviceWarrantyUrl- new value ofdeviceWarrantyUrlfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedeviceWarrantyUrlfield changed
-
withUnmappedField
public OemWarranty 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 OemWarranty.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
-
-