Class 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.”
    • Field Detail

      • classroomIds

        protected List<String> classroomIds
      • classroomIdsNextLink

        protected String classroomIdsNextLink
      • description

        protected String description
      • deviceCartIds

        protected List<String> deviceCartIds
      • deviceCartIdsNextLink

        protected String deviceCartIdsNextLink
      • displayName

        protected String displayName
      • version

        protected Integer version
    • Constructor Detail

      • CartToClassAssociation

        protected CartToClassAssociation()
    • Method Detail

      • odataTypeName

        public String odataTypeName()
        Specified by:
        odataTypeName in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        odataTypeName in class Entity
      • 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:
        getChangedFields in interface com.github.davidmoten.odata.client.ODataEntityType
        Overrides:
        getChangedFields in class Entity
      • postInject

        public void postInject​(boolean addKeysToContextPath)
        Specified by:
        postInject in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        postInject in class Entity
      • 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 of this with just the classroomIds field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. 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 of classroomIds field (as defined in service metadata)
        Returns:
        immutable copy of this with just the classroomIds field 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 of this with just the createdDateTime field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. patch() is called (if available)on the returned object only the changed fields are submitted.

        “DateTime the object was created.”

        Parameters:
        createdDateTime - new value of createdDateTime field (as defined in service metadata)
        Returns:
        immutable copy of this with just the createdDateTime field 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 of this with just the description field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. 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 of description field (as defined in service metadata)
        Returns:
        immutable copy of this with just the description field 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 of this with just the deviceCartIds field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. 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 of deviceCartIds field (as defined in service metadata)
        Returns:
        immutable copy of this with just the deviceCartIds field 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 of this with just the displayName field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. 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 of displayName field (as defined in service metadata)
        Returns:
        immutable copy of this with just the displayName field 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 of this with just the lastModifiedDateTime field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.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 of lastModifiedDateTime field (as defined in service metadata)
        Returns:
        immutable copy of this with just the lastModifiedDateTime field changed
      • getVersion

        public Optional<Integer> getVersion()
        “Version of the CartToClassAssociation.”
        Returns:
        property version
      • withVersion

        public CartToClassAssociation withVersion​(Integer version)
        Returns an immutable copy of this with just the version field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “Version of the CartToClassAssociation.”

        Parameters:
        version - new value of version field (as defined in service metadata)
        Returns:
        immutable copy of this with just the version field changed
      • getUnmappedFields

        public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
        Specified by:
        getUnmappedFields in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        getUnmappedFields in class Entity
      • patch

        public CartToClassAssociation patch()
        Submits only changed fields for update and returns an immutable copy of this with changed fields reset.
        Overrides:
        patch in class Entity
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected
      • put

        public CartToClassAssociation put()
        Submits all fields for update and returns an immutable copy of this with changed fields reset (they were ignored anyway).
        Overrides:
        put in class Entity
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected