Package odata.msgraph.client.beta.entity
Class CartToClassAssociation
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.CartToClassAssociation
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class CartToClassAssociation extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“CartToClassAssociation for associating device carts with classrooms.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCartToClassAssociation.Builder
-
Field Summary
Fields Modifier and Type Field Description protected List<String>classroomIdsprotected StringclassroomIdsNextLinkprotected OffsetDateTimecreatedDateTimeprotected Stringdescriptionprotected List<String>deviceCartIdsprotected StringdeviceCartIdsNextLinkprotected StringdisplayNameprotected OffsetDateTimelastModifiedDateTimeprotected Integerversion-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedCartToClassAssociation()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CartToClassAssociation.BuilderbuilderCartToClassAssociation()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.internal.ChangedFieldsgetChangedFields()com.github.davidmoten.odata.client.CollectionPage<String>getClassroomIds()“Identifiers of classrooms to be associated with device carts.”com.github.davidmoten.odata.client.CollectionPage<String>getClassroomIds(com.github.davidmoten.odata.client.HttpRequestOptions options)“Identifiers of classrooms to be associated with device carts.”Optional<OffsetDateTime>getCreatedDateTime()“DateTime the object was created.”Optional<String>getDescription()“Admin provided description of the CartToClassAssociation.”com.github.davidmoten.odata.client.CollectionPage<String>getDeviceCartIds()“Identifiers of device carts to be associated with classes.”com.github.davidmoten.odata.client.CollectionPage<String>getDeviceCartIds(com.github.davidmoten.odata.client.HttpRequestOptions options)“Identifiers of device carts to be associated with classes.”Optional<String>getDisplayName()“Admin provided name of the device configuration.”Optional<OffsetDateTime>getLastModifiedDateTime()“DateTime the object was last modified.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()Optional<Integer>getVersion()“Version of the CartToClassAssociation.”StringodataTypeName()CartToClassAssociationpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)CartToClassAssociationput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()CartToClassAssociationwithClassroomIds(List<String> classroomIds)Returns an immutable copy ofthiswith just theclassroomIdsfield changed.CartToClassAssociationwithCreatedDateTime(OffsetDateTime createdDateTime)Returns an immutable copy ofthiswith just thecreatedDateTimefield changed.CartToClassAssociationwithDescription(String description)Returns an immutable copy ofthiswith just thedescriptionfield changed.CartToClassAssociationwithDeviceCartIds(List<String> deviceCartIds)Returns an immutable copy ofthiswith just thedeviceCartIdsfield changed.CartToClassAssociationwithDisplayName(String displayName)Returns an immutable copy ofthiswith just thedisplayNamefield changed.CartToClassAssociationwithLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)Returns an immutable copy ofthiswith just thelastModifiedDateTimefield changed.CartToClassAssociationwithUnmappedField(String name, String value)CartToClassAssociationwithVersion(Integer version)Returns an immutable copy ofthiswith just theversionfield changed.
-
-
-
Field Detail
-
classroomIdsNextLink
protected String classroomIdsNextLink
-
createdDateTime
protected OffsetDateTime createdDateTime
-
description
protected String description
-
deviceCartIdsNextLink
protected String deviceCartIdsNextLink
-
displayName
protected String displayName
-
lastModifiedDateTime
protected OffsetDateTime lastModifiedDateTime
-
version
protected Integer version
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderCartToClassAssociation
public static CartToClassAssociation.Builder builderCartToClassAssociation()
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
-
getClassroomIds
public com.github.davidmoten.odata.client.CollectionPage<String> getClassroomIds()
“Identifiers of classrooms to be associated with device carts.”- Returns:
- property classroomIds
-
withClassroomIds
public CartToClassAssociation withClassroomIds(List<String> classroomIds)
Returns an immutable copy ofthiswith just theclassroomIdsfield 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.“Identifiers of classrooms to be associated with device carts.”
- Parameters:
classroomIds- new value ofclassroomIdsfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theclassroomIdsfield changed
-
getClassroomIds
public com.github.davidmoten.odata.client.CollectionPage<String> getClassroomIds(com.github.davidmoten.odata.client.HttpRequestOptions options)
“Identifiers of classrooms to be associated with device carts.”- Parameters:
options- specify connect and read timeouts- Returns:
- property classroomIds
-
getCreatedDateTime
public Optional<OffsetDateTime> getCreatedDateTime()
“DateTime the object was created.”- Returns:
- property createdDateTime
-
withCreatedDateTime
public CartToClassAssociation withCreatedDateTime(OffsetDateTime createdDateTime)
Returns an immutable copy ofthiswith just thecreatedDateTimefield 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.“DateTime the object was created.”
- Parameters:
createdDateTime- new value ofcreatedDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thecreatedDateTimefield changed
-
getDescription
public Optional<String> getDescription()
“Admin provided description of the CartToClassAssociation.”- Returns:
- property description
-
withDescription
public CartToClassAssociation 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.“Admin provided description of the CartToClassAssociation.”
- Parameters:
description- new value ofdescriptionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedescriptionfield changed
-
getDeviceCartIds
public com.github.davidmoten.odata.client.CollectionPage<String> getDeviceCartIds()
“Identifiers of device carts to be associated with classes.”- Returns:
- property deviceCartIds
-
withDeviceCartIds
public CartToClassAssociation withDeviceCartIds(List<String> deviceCartIds)
Returns an immutable copy ofthiswith just thedeviceCartIdsfield 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.“Identifiers of device carts to be associated with classes.”
- Parameters:
deviceCartIds- new value ofdeviceCartIdsfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedeviceCartIdsfield changed
-
getDeviceCartIds
public com.github.davidmoten.odata.client.CollectionPage<String> getDeviceCartIds(com.github.davidmoten.odata.client.HttpRequestOptions options)
“Identifiers of device carts to be associated with classes.”- Parameters:
options- specify connect and read timeouts- Returns:
- property deviceCartIds
-
getDisplayName
public Optional<String> getDisplayName()
“Admin provided name of the device configuration.”- Returns:
- property displayName
-
withDisplayName
public CartToClassAssociation withDisplayName(String displayName)
Returns an immutable copy ofthiswith just thedisplayNamefield 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.“Admin provided name of the device configuration.”
- Parameters:
displayName- new value ofdisplayNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedisplayNamefield changed
-
getLastModifiedDateTime
public Optional<OffsetDateTime> getLastModifiedDateTime()
“DateTime the object was last modified.”- Returns:
- property lastModifiedDateTime
-
withLastModifiedDateTime
public CartToClassAssociation withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)
Returns an immutable copy ofthiswith just thelastModifiedDateTimefield 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.“DateTime the object was last modified.”
- Parameters:
lastModifiedDateTime- new value oflastModifiedDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thelastModifiedDateTimefield changed
-
getVersion
public Optional<Integer> getVersion()
“Version of the CartToClassAssociation.”- Returns:
- property version
-
withVersion
public CartToClassAssociation withVersion(Integer version)
Returns an immutable copy ofthiswith just theversionfield 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.“Version of the CartToClassAssociation.”
- Parameters:
version- new value ofversionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theversionfield changed
-
withUnmappedField
public CartToClassAssociation 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 CartToClassAssociation patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public CartToClassAssociation put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-