Class WarrantyOffer
- java.lang.Object
-
- odata.msgraph.client.beta.complex.WarrantyOffer
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataType
public class WarrantyOffer extends Object implements com.github.davidmoten.odata.client.ODataType
“Models and Manufactures meatadata for managed devices in the account”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWarrantyOffer.Builder
-
Field Summary
Fields Modifier and Type Field Description protected com.github.davidmoten.odata.client.ContextPathcontextPathprotected Stringdescriptionprotected OffsetDateTimeendDateTimeprotected StringodataTypeprotected OffsetDateTimestartDateTimeprotected WarrantyTypetypeprotected com.github.davidmoten.odata.client.internal.UnmappedFieldsImplunmappedFields
-
Constructor Summary
Constructors Modifier Constructor Description protectedWarrantyOffer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WarrantyOffer.Builderbuilder()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<String>getDescription()“Warranty offer description”Optional<OffsetDateTime>getEndDateTime()“Warranty offer end date”Optional<OffsetDateTime>getStartDateTime()“Warranty offer start date”Optional<WarrantyType>getType()“Warranty offer type”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()voidpostInject(boolean addKeysToContextPath)StringtoString()WarrantyOfferwithDescription(String description)Returns an immutable copy ofthiswith just thedescriptionfield changed.WarrantyOfferwithEndDateTime(OffsetDateTime endDateTime)Returns an immutable copy ofthiswith just theendDateTimefield changed.WarrantyOfferwithStartDateTime(OffsetDateTime startDateTime)Returns an immutable copy ofthiswith just thestartDateTimefield changed.WarrantyOfferwithType(WarrantyType type)Returns an immutable copy ofthiswith just thetypefield changed.WarrantyOfferwithUnmappedField(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
-
description
protected String description
-
endDateTime
protected OffsetDateTime endDateTime
-
startDateTime
protected OffsetDateTime startDateTime
-
type
protected WarrantyType type
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType
-
getDescription
public Optional<String> getDescription()
“Warranty offer description”- Returns:
- property description
-
withDescription
public WarrantyOffer withDescription(String description)
Returns an immutable copy ofthiswith just thedescriptionfield 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.“Warranty offer description”
- Parameters:
description- new value ofdescriptionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedescriptionfield changed
-
getEndDateTime
public Optional<OffsetDateTime> getEndDateTime()
“Warranty offer end date”- Returns:
- property endDateTime
-
withEndDateTime
public WarrantyOffer withEndDateTime(OffsetDateTime endDateTime)
Returns an immutable copy ofthiswith just theendDateTimefield 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.“Warranty offer end date”
- Parameters:
endDateTime- new value ofendDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theendDateTimefield changed
-
getStartDateTime
public Optional<OffsetDateTime> getStartDateTime()
“Warranty offer start date”- Returns:
- property startDateTime
-
withStartDateTime
public WarrantyOffer withStartDateTime(OffsetDateTime startDateTime)
Returns an immutable copy ofthiswith just thestartDateTimefield 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.“Warranty offer start date”
- Parameters:
startDateTime- new value ofstartDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thestartDateTimefield changed
-
getType
public Optional<WarrantyType> getType()
“Warranty offer type”- Returns:
- property type
-
withType
public WarrantyOffer withType(WarrantyType type)
Returns an immutable copy ofthiswith just thetypefield 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.“Warranty offer type”
- Parameters:
type- new value oftypefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thetypefield changed
-
withUnmappedField
public WarrantyOffer 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 WarrantyOffer.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
-
-