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

public class AddressPhoneNumber extends VdmEntity<AddressPhoneNumber>
Phone Number

Original entity name from the Odata EDM: A_AddressPhoneNumberType

  • Field Details

    • ALL_FIELDS

      public static final AddressPhoneNumberSelectable ALL_FIELDS
      Selector for all available fields of AddressPhoneNumber.
    • ADDRESS_ID

      public static final AddressPhoneNumberField<String> ADDRESS_ID
      Use with available fluent helpers to apply the AddressID field to query operations.
    • PERSON

      public static final AddressPhoneNumberField<String> PERSON
      Use with available fluent helpers to apply the Person field to query operations.
    • ORDINAL_NUMBER

      public static final AddressPhoneNumberField<String> ORDINAL_NUMBER
      Use with available fluent helpers to apply the OrdinalNumber field to query operations.
    • DESTINATION_LOCATION_COUNTRY

      public static final AddressPhoneNumberField<String> DESTINATION_LOCATION_COUNTRY
      Use with available fluent helpers to apply the DestinationLocationCountry field to query operations.
    • IS_DEFAULT_PHONE_NUMBER

      public static final AddressPhoneNumberField<Boolean> IS_DEFAULT_PHONE_NUMBER
      Use with available fluent helpers to apply the IsDefaultPhoneNumber field to query operations.
    • PHONE_NUMBER

      public static final AddressPhoneNumberField<String> PHONE_NUMBER
      Use with available fluent helpers to apply the PhoneNumber field to query operations.
    • PHONE_NUMBER_EXTENSION

      public static final AddressPhoneNumberField<String> PHONE_NUMBER_EXTENSION
      Use with available fluent helpers to apply the PhoneNumberExtension field to query operations.
    • INTERNATIONAL_PHONE_NUMBER

      public static final AddressPhoneNumberField<String> INTERNATIONAL_PHONE_NUMBER
      Use with available fluent helpers to apply the InternationalPhoneNumber field to query operations.
    • PHONE_NUMBER_TYPE

      public static final AddressPhoneNumberField<String> PHONE_NUMBER_TYPE
      Use with available fluent helpers to apply the PhoneNumberType field to query operations.
    • ADDRESS_COMMUNICATION_REMARK_TEXT

      public static final AddressPhoneNumberField<String> ADDRESS_COMMUNICATION_REMARK_TEXT
      Use with available fluent helpers to apply the AddressCommunicationRemarkText field to query operations.
  • Constructor Details

    • AddressPhoneNumber

      public AddressPhoneNumber()
    • AddressPhoneNumber

      public AddressPhoneNumber(@Nullable String addressID, @Nullable String person, @Nullable String ordinalNumber, @Nullable String destinationLocationCountry, @Nullable Boolean isDefaultPhoneNumber, @Nullable String phoneNumber, @Nullable String phoneNumberExtension, @Nullable String internationalPhoneNumber, @Nullable String phoneNumberType, @Nullable String addressCommunicationRemarkText)
  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: AddressID

      Parameters:
      addressID - Address Number
    • setPerson

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

      Original property name from the Odata EDM: Person

      Parameters:
      person - Person Number
    • setOrdinalNumber

      public void setOrdinalNumber(@Nullable String ordinalNumber)
      (Key Field) Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: OrdinalNumber

      Parameters:
      ordinalNumber - Sequence Number
    • setDestinationLocationCountry

      public void setDestinationLocationCountry(@Nullable String destinationLocationCountry)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: DestinationLocationCountry

      Parameters:
      destinationLocationCountry - Country/Region for Telephone/Fax Number
    • setIsDefaultPhoneNumber

      public void setIsDefaultPhoneNumber(@Nullable Boolean isDefaultPhoneNumber)
      Constraints: none

      Original property name from the Odata EDM: IsDefaultPhoneNumber

      Parameters:
      isDefaultPhoneNumber - Standard Sender Address in this Communication Type
    • setPhoneNumber

      public void setPhoneNumber(@Nullable String phoneNumber)
      Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: PhoneNumber

      Parameters:
      phoneNumber - Telephone No.: Dialing Code + Number
    • setPhoneNumberExtension

      public void setPhoneNumberExtension(@Nullable String phoneNumberExtension)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: PhoneNumberExtension

      Parameters:
      phoneNumberExtension - Telephone no.: Extension
    • setInternationalPhoneNumber

      public void setInternationalPhoneNumber(@Nullable String internationalPhoneNumber)
      Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: InternationalPhoneNumber

      Parameters:
      internationalPhoneNumber - Complete Number: Dialing Code+Number+Extension
    • setPhoneNumberType

      public void setPhoneNumberType(@Nullable String phoneNumberType)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: PhoneNumberType

      Parameters:
      phoneNumberType - Indicator: Telephone is a Mobile Telephone
    • setAddressCommunicationRemarkText

      public void setAddressCommunicationRemarkText(@Nullable String addressCommunicationRemarkText)
      Constraints: Not nullable, Maximum length: 50

      Original property name from the Odata EDM: AddressCommunicationRemarkText

      Parameters:
      addressCommunicationRemarkText - Communication link notes
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> AddressPhoneNumberField<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> AddressPhoneNumberField<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<AddressPhoneNumber>
    • setServicePathForFetch

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

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

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

      @Nonnull public static AddressPhoneNumber.AddressPhoneNumberBuilder builder()
    • getAddressID

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

      Original property name from the Odata EDM: AddressID

      Returns:
      Address Number
    • getPerson

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

      Original property name from the Odata EDM: Person

      Returns:
      Person Number
    • getOrdinalNumber

      @Nullable public String getOrdinalNumber()
      (Key Field) Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: OrdinalNumber

      Returns:
      Sequence Number
    • getDestinationLocationCountry

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

      Original property name from the Odata EDM: DestinationLocationCountry

      Returns:
      Country/Region for Telephone/Fax Number
    • getIsDefaultPhoneNumber

      @Nullable public Boolean getIsDefaultPhoneNumber()
      Constraints: none

      Original property name from the Odata EDM: IsDefaultPhoneNumber

      Returns:
      Standard Sender Address in this Communication Type
    • getPhoneNumber

      @Nullable public String getPhoneNumber()
      Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: PhoneNumber

      Returns:
      Telephone No.: Dialing Code + Number
    • getPhoneNumberExtension

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

      Original property name from the Odata EDM: PhoneNumberExtension

      Returns:
      Telephone no.: Extension
    • getInternationalPhoneNumber

      @Nullable public String getInternationalPhoneNumber()
      Constraints: Not nullable, Maximum length: 30

      Original property name from the Odata EDM: InternationalPhoneNumber

      Returns:
      Complete Number: Dialing Code+Number+Extension
    • getPhoneNumberType

      @Nullable public String getPhoneNumberType()
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: PhoneNumberType

      Returns:
      Indicator: Telephone is a Mobile Telephone
    • getAddressCommunicationRemarkText

      @Nullable public String getAddressCommunicationRemarkText()
      Constraints: Not nullable, Maximum length: 50

      Original property name from the Odata EDM: AddressCommunicationRemarkText

      Returns:
      Communication link notes
    • toString

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

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

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

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