Package odata.msgraph.client.beta.entity
Class OemWarrantyInformationOnboarding
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.OemWarrantyInformationOnboarding
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class OemWarrantyInformationOnboarding extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“Warranty status entity for a given OEM”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOemWarrantyInformationOnboarding.Builder
-
Field Summary
Fields Modifier and Type Field Description protected Booleanavailableprotected Booleanenabledprotected StringoemName-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedOemWarrantyInformationOnboarding()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OemWarrantyInformationOnboarding.BuilderbuilderOemWarrantyInformationOnboarding()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.ActionRequestNoReturndisable()com.github.davidmoten.odata.client.ActionRequestNoReturnenable()Optional<Boolean>getAvailable()“Specifies whether warranty API is available.com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<Boolean>getEnabled()“Specifies whether warranty query is enabled for given OEM.Optional<String>getOemName()“OEM name.com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()OemWarrantyInformationOnboardingpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)OemWarrantyInformationOnboardingput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()OemWarrantyInformationOnboardingwithAvailable(Boolean available)Returns an immutable copy ofthiswith just theavailablefield changed.OemWarrantyInformationOnboardingwithEnabled(Boolean enabled)Returns an immutable copy ofthiswith just theenabledfield changed.OemWarrantyInformationOnboardingwithOemName(String oemName)Returns an immutable copy ofthiswith just theoemNamefield changed.OemWarrantyInformationOnboardingwithUnmappedField(String name, String value)
-
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderOemWarrantyInformationOnboarding
public static OemWarrantyInformationOnboarding.Builder builderOemWarrantyInformationOnboarding()
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
-
getChangedFields
public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
- Specified by:
getChangedFieldsin interfacecom.github.davidmoten.odata.client.ODataEntityType- Overrides:
getChangedFieldsin classEntity
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classEntity
-
getAvailable
public Optional<Boolean> getAvailable()
“Specifies whether warranty API is available. This property is read-only.”Org.OData.Core.V1.Computed
true
Org.OData.Core.V1.Permissions
- Returns:
- property available
-
withAvailable
public OemWarrantyInformationOnboarding withAvailable(Boolean available)
Returns an immutable copy ofthiswith just theavailablefield 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.“Specifies whether warranty API is available. This property is read-only.”
Org.OData.Core.V1.Computed
true
Org.OData.Core.V1.Permissions
- Parameters:
available- new value ofavailablefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theavailablefield changed
-
getEnabled
public Optional<Boolean> getEnabled()
“Specifies whether warranty query is enabled for given OEM. This property is read -only.”Org.OData.Core.V1.Computed
true
Org.OData.Core.V1.Permissions
- Returns:
- property enabled
-
withEnabled
public OemWarrantyInformationOnboarding withEnabled(Boolean enabled)
Returns an immutable copy ofthiswith just theenabledfield 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.“Specifies whether warranty query is enabled for given OEM. This property is read -only.”
Org.OData.Core.V1.Computed
true
Org.OData.Core.V1.Permissions
- Parameters:
enabled- new value ofenabledfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theenabledfield changed
-
getOemName
public Optional<String> getOemName()
“OEM name. This property is read-only.”Org.OData.Core.V1.Computed
true
Org.OData.Core.V1.Permissions
- Returns:
- property oemName
-
withOemName
public OemWarrantyInformationOnboarding withOemName(String oemName)
Returns an immutable copy ofthiswith just theoemNamefield 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.“OEM name. This property is read-only.”
Org.OData.Core.V1.Computed
true
Org.OData.Core.V1.Permissions
- Parameters:
oemName- new value ofoemNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theoemNamefield changed
-
withUnmappedField
public OemWarrantyInformationOnboarding withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classEntity
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public OemWarrantyInformationOnboarding patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public OemWarrantyInformationOnboarding put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
disable
public com.github.davidmoten.odata.client.ActionRequestNoReturn disable()
-
enable
public com.github.davidmoten.odata.client.ActionRequestNoReturn enable()
-
-