java.lang.Object
com.sap.cloud.sdk.datamodel.odatav4.core.VdmObject<EntityT>
com.sap.cloud.sdk.datamodel.odatav4.core.VdmEntity<LocationAddress>
com.sap.cloud.sdk.s4hana.datamodel.odatav4.namespaces.location.LocationAddress
All Implemented Interfaces:
VdmEntitySet

public class LocationAddress extends VdmEntity<LocationAddress> implements VdmEntitySet
Location Address

Original entity name from the Odata EDM: LocationAddress_Type

  • Field Details

  • Constructor Details

    • LocationAddress

      public LocationAddress()
    • LocationAddress

      public LocationAddress(@Nullable UUID locationUUID, @Nullable String addressPersonID, @Nullable String addressRepresentationCode, @Nullable String addressID, @Nullable String addressTimeZone, @Nullable String cityName, @Nullable String postalCode, @Nullable String streetName, @Nullable String houseNumber, @Nullable String country, @Nullable String region, @Nullable String searchTerm1, @Nullable String searchTerm2, @Nullable Location to_LocationTP)
  • Method Details

    • getType

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

      public void setLocationUUID(@Nullable UUID locationUUID)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: LocationUUID

      Parameters:
      locationUUID - Internal Location Number (Customer, Supplier, or Plant)
    • setAddressPersonID

      public void setAddressPersonID(@Nullable String addressPersonID)
      (Key Field) Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: AddressPersonID

      Parameters:
      addressPersonID - Person Number
    • setAddressRepresentationCode

      public void setAddressRepresentationCode(@Nullable String addressRepresentationCode)
      (Key Field) Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: AddressRepresentationCode

      Parameters:
      addressRepresentationCode - Version ID for International Addresses
    • setAddressID

      public void setAddressID(@Nullable String addressID)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: AddressID

      Parameters:
      addressID - Address Number
    • setAddressTimeZone

      public void setAddressTimeZone(@Nullable String addressTimeZone)
      Constraints: Not nullable, Maximum length: 6

      Original property name from the Odata EDM: AddressTimeZone

      Parameters:
      addressTimeZone - Address Time Zone
    • setCityName

      public void setCityName(@Nullable String cityName)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: CityName

      Parameters:
      cityName - City
    • setPostalCode

      public void setPostalCode(@Nullable String postalCode)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: PostalCode

      Parameters:
      postalCode - City Postal Code
    • setStreetName

      public void setStreetName(@Nullable String streetName)
      Constraints: Not nullable, Maximum length: 60

      Original property name from the Odata EDM: StreetName

      Parameters:
      streetName - Street
    • setHouseNumber

      public void setHouseNumber(@Nullable String houseNumber)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: HouseNumber

      Parameters:
      houseNumber - House Number
    • setCountry

      public void setCountry(@Nullable String country)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: Country

      Parameters:
      country - Country/Region Key
    • setRegion

      public void setRegion(@Nullable String region)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: Region

      Parameters:
      region - Region (State, Province, County)
    • setSearchTerm1

      public void setSearchTerm1(@Nullable String searchTerm1)
      Constraints: Not nullable, Maximum length: 20

      Original property name from the Odata EDM: SearchTerm1

      Parameters:
      searchTerm1 - Search Term 1
    • setSearchTerm2

      public void setSearchTerm2(@Nullable String searchTerm2)
      Constraints: Not nullable, Maximum length: 20

      Original property name from the Odata EDM: SearchTerm2

      Parameters:
      searchTerm2 - Search Term 2
    • getEntityCollection

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

      @Nonnull protected ODataEntityKey getKey()
      Overrides:
      getKey in class VdmObject<LocationAddress>
    • toMapOfFields

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

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

      protected String getDefaultServicePath()
      Overrides:
      getDefaultServicePath in class VdmEntity<LocationAddress>
    • toMapOfNavigationProperties

      @Nonnull protected Map<String,Object> toMapOfNavigationProperties()
      Overrides:
      toMapOfNavigationProperties in class VdmObject<LocationAddress>
    • getLocationTPIfPresent

      @Nonnull public io.vavr.control.Option<Location> getLocationTPIfPresent()
      Retrieval of associated Location entity (one to one). This corresponds to the OData navigation property _LocationTP.

      If the navigation property for an entity LocationAddress has not been resolved yet, this method will not query further information. Instead its Option result state will be empty.

      Returns:
      If the information for navigation property _LocationTP is already loaded, the result will contain the Location entity. If not, an Option with result state empty is returned.
    • setLocationTP

      public void setLocationTP(Location value)
      Overwrites the associated Location entity for the loaded navigation property _LocationTP.
      Parameters:
      value - New Location entity.
    • builder

      @Nonnull public static LocationAddress.LocationAddressBuilder builder()
    • getLocationUUID

      @Nullable public UUID getLocationUUID()
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: LocationUUID

      Returns:
      Internal Location Number (Customer, Supplier, or Plant)
    • getAddressPersonID

      @Nullable public String getAddressPersonID()
      (Key Field) Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: AddressPersonID

      Returns:
      Person Number
    • getAddressRepresentationCode

      @Nullable public String getAddressRepresentationCode()
      (Key Field) Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: AddressRepresentationCode

      Returns:
      Version ID for International Addresses
    • getAddressID

      @Nullable public String getAddressID()
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: AddressID

      Returns:
      Address Number
    • getAddressTimeZone

      @Nullable public String getAddressTimeZone()
      Constraints: Not nullable, Maximum length: 6

      Original property name from the Odata EDM: AddressTimeZone

      Returns:
      Address Time Zone
    • getCityName

      @Nullable public String getCityName()
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: CityName

      Returns:
      City
    • getPostalCode

      @Nullable public String getPostalCode()
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: PostalCode

      Returns:
      City Postal Code
    • getStreetName

      @Nullable public String getStreetName()
      Constraints: Not nullable, Maximum length: 60

      Original property name from the Odata EDM: StreetName

      Returns:
      Street
    • getHouseNumber

      @Nullable public String getHouseNumber()
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: HouseNumber

      Returns:
      House Number
    • getCountry

      @Nullable public String getCountry()
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: Country

      Returns:
      Country/Region Key
    • getRegion

      @Nullable public String getRegion()
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: Region

      Returns:
      Region (State, Province, County)
    • getSearchTerm1

      @Nullable public String getSearchTerm1()
      Constraints: Not nullable, Maximum length: 20

      Original property name from the Odata EDM: SearchTerm1

      Returns:
      Search Term 1
    • getSearchTerm2

      @Nullable public String getSearchTerm2()
      Constraints: Not nullable, Maximum length: 20

      Original property name from the Odata EDM: SearchTerm2

      Returns:
      Search Term 2
    • toString

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

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

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

      public int hashCode()
      Overrides:
      hashCode in class VdmEntity<LocationAddress>
    • getOdataType

      public String getOdataType()
      Specified by:
      getOdataType in class VdmObject<LocationAddress>