java.lang.Object
com.sap.cloud.sdk.datamodel.odata.helper.VdmObject<EntityT>
com.sap.cloud.sdk.datamodel.odata.helper.VdmEntity<WarehouseResource>
com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.warehouseresource.WarehouseResource

public class WarehouseResource extends VdmEntity<WarehouseResource>
Warehouse Resource

Original entity name from the Odata EDM: WarehouseResourceType

  • Field Details

    • ALL_FIELDS

      public static final WarehouseResourceSelectable ALL_FIELDS
      Selector for all available fields of WarehouseResource.
    • WAREHOUSE

      public static final WarehouseResourceField<String> WAREHOUSE
      Use with available fluent helpers to apply the Warehouse field to query operations.
    • WAREHOUSE_RESOURCE

      public static final WarehouseResourceField<String> WAREHOUSE_RESOURCE
      Use with available fluent helpers to apply the WarehouseResource field to query operations.
    • USER_NAME

      public static final WarehouseResourceField<String> USER_NAME
      Use with available fluent helpers to apply the UserName field to query operations.
    • RESOURCE_LOGON_DATE_TIME

      public static final WarehouseResourceField<BigDecimal> RESOURCE_LOGON_DATE_TIME
      Use with available fluent helpers to apply the ResourceLogonDateTime field to query operations.
  • Constructor Details

    • WarehouseResource

      public WarehouseResource()
    • WarehouseResource

      public WarehouseResource(@Nullable String warehouse, @Nullable String warehouseResource, @Nullable String userName, @Nullable BigDecimal resourceLogonDateTime)
  • Method Details

    • getType

      @Nonnull public Class<WarehouseResource> getType()
      Specified by:
      getType in class VdmObject<WarehouseResource>
    • setWarehouse

      public void setWarehouse(@Nullable String warehouse)
      (Key Field) Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: Warehouse

      Parameters:
      warehouse - Warehouse Number/Warehouse Complex
    • setWarehouseResource

      public void setWarehouseResource(@Nullable String warehouseResource)
      (Key Field) Constraints: Not nullable, Maximum length: 18

      Original property name from the Odata EDM: WarehouseResource

      Parameters:
      warehouseResource - Resource (Means of Transportation or User)
    • setUserName

      public void setUserName(@Nullable String userName)
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: UserName

      Parameters:
      userName - User Name in User Master Record
    • setResourceLogonDateTime

      public void setResourceLogonDateTime(@Nullable BigDecimal resourceLogonDateTime)
      Constraints: Not nullable, Precision: 15, Scale: 0

      Original property name from the Odata EDM: ResourceLogonDateTime

      Parameters:
      resourceLogonDateTime - The resourceLogonDateTime to set.
    • getEntityCollection

      protected String getEntityCollection()
      Specified by:
      getEntityCollection in class VdmEntity<WarehouseResource>
    • getKey

      @Nonnull protected Map<String,Object> getKey()
      Overrides:
      getKey in class VdmObject<WarehouseResource>
    • toMapOfFields

      @Nonnull protected Map<String,Object> toMapOfFields()
      Overrides:
      toMapOfFields in class VdmObject<WarehouseResource>
    • fromMap

      protected void fromMap(Map<String,Object> inputValues)
      Overrides:
      fromMap in class VdmObject<WarehouseResource>
    • field

      @Nonnull public static <T> WarehouseResourceField<T> field(@Nonnull String fieldName, @Nonnull Class<T> fieldType)
      Use with available fluent helpers to apply an extension field to query operations.
      Type Parameters:
      T - The type of the extension field when performing value comparisons.
      Parameters:
      fieldName - The name of the extension field as returned by the OData service.
      fieldType - The Java type to use for the extension field when performing value comparisons.
      Returns:
      A representation of an extension field from this entity.
    • field

      @Nonnull public static <T, DomainT> WarehouseResourceField<T> field(@Nonnull String fieldName, @Nonnull TypeConverter<T,DomainT> typeConverter)
      Use with available fluent helpers to apply an extension field to query operations.
      Type Parameters:
      T - The type of the extension field when performing value comparisons.
      DomainT - The type of the extension field as returned by the OData service.
      Parameters:
      typeConverter - A TypeConverter<T, DomainT> instance whose first generic type matches the Java type of the field
      fieldName - The name of the extension field as returned by the OData service.
      Returns:
      A representation of an extension field from this entity, holding a reference to the given TypeConverter.
    • getDestinationForFetch

      @Nullable public HttpDestinationProperties getDestinationForFetch()
      Overrides:
      getDestinationForFetch in class VdmEntity<WarehouseResource>
    • setServicePathForFetch

      protected void setServicePathForFetch(@Nullable String servicePathForFetch)
      Overrides:
      setServicePathForFetch in class VdmEntity<WarehouseResource>
    • attachToService

      public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination)
      Overrides:
      attachToService in class VdmEntity<WarehouseResource>
    • getDefaultServicePath

      protected String getDefaultServicePath()
      Overrides:
      getDefaultServicePath in class VdmEntity<WarehouseResource>
    • builder

      @Nonnull public static WarehouseResource.WarehouseResourceBuilder builder()
    • getWarehouse

      @Nullable public String getWarehouse()
      (Key Field) Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: Warehouse

      Returns:
      Warehouse Number/Warehouse Complex
    • getWarehouseResource

      @Nullable public String getWarehouseResource()
      (Key Field) Constraints: Not nullable, Maximum length: 18

      Original property name from the Odata EDM: WarehouseResource

      Returns:
      Resource (Means of Transportation or User)
    • getUserName

      @Nullable public String getUserName()
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: UserName

      Returns:
      User Name in User Master Record
    • getResourceLogonDateTime

      @Nullable public BigDecimal getResourceLogonDateTime()
      Constraints: Not nullable, Precision: 15, Scale: 0

      Original property name from the Odata EDM: ResourceLogonDateTime

      Returns:
      The resourceLogonDateTime contained in this entity.
    • toString

      @Nonnull public String toString()
      Overrides:
      toString in class VdmObject<WarehouseResource>
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class VdmEntity<WarehouseResource>
    • canEqual

      protected boolean canEqual(@Nullable Object other)
      Overrides:
      canEqual in class VdmEntity<WarehouseResource>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class VdmEntity<WarehouseResource>