Class CostCenter.CostCenterBuilder

java.lang.Object
com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.costcentertest.CostCenter.CostCenterBuilder
Enclosing class:
CostCenter

public static final class CostCenter.CostCenterBuilder extends Object
Helper class to allow for fluent creation of CostCenter instances.
  • Method Details

    • costCenterTexts

      @Nonnull public CostCenter.CostCenterBuilder costCenterTexts(CostCenterText... value)
      Navigation property CostCenterTexts for CostCenter to multiple CostCenterText.
      Parameters:
      value - The CostCenterTexts to build this CostCenter with.
      Returns:
      This Builder to allow for a fluent interface.
    • companyCode

      @Nonnull public CostCenter.CostCenterBuilder companyCode(@Nullable String companyCode)
      (Key Field) Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: CompanyCode

      Returns:
      this.
    • costCenterID

      @Nonnull public CostCenter.CostCenterBuilder costCenterID(@Nullable String costCenterID)
      (Key Field) Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: CostCenterID

      Returns:
      this.
    • validityEndDate

      @Nonnull public CostCenter.CostCenterBuilder validityEndDate(@Nullable LocalDateTime validityEndDate)
      (Key Field) Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: ValidityEndDate

      Returns:
      this.
    • validityStartDate

      @Nonnull public CostCenter.CostCenterBuilder validityStartDate(@Nullable LocalDateTime validityStartDate)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: ValidityStartDate

      Returns:
      this.
    • status

      @Nonnull public CostCenter.CostCenterBuilder status(@Nullable String status)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: Status

      Returns:
      this.
    • category

      @Nonnull public CostCenter.CostCenterBuilder category(@Nullable String category)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: Category

      The master data of an activity type includes one or more cost center categories. The activity type may be used only by cost centers of the appropriate categories.You define categories in Customizing. For each category, you can define default values for the "Lock" and "Record quantity" indicators, for transfer to cost center master data. Maintain these indicators only if the entry diverges from the default cost center category.In addition, you may use the categories for reports and evaluations.Production cost centerService cost centerAdministration cost center

      Returns:
      this.
    • language

      @Nonnull public CostCenter.CostCenterBuilder language(@Nullable String language)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: Language

      It corresponds to:1) All languages according to ISO 639.22) Languages assigned to specific countries or scripts1) Persian = 'FA'2) EnglishEnglish Australia = '1E'English Canada = '3E'English Ireland = '8E'English New Zealand = '1N'

      Returns:
      this.
    • costCenterName

      @Nonnull public CostCenter.CostCenterBuilder costCenterName(@Nullable String costCenterName)
      Constraints: Not nullable, Maximum length: 20

      Original property name from the Odata EDM: CostCenterName

      Returns:
      this.
    • costCenterDescription

      @Nonnull public CostCenter.CostCenterBuilder costCenterDescription(@Nullable String costCenterDescription)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: CostCenterDescription

      Returns:
      this.
    • lastChangeDateTime

      @Nonnull public CostCenter.CostCenterBuilder lastChangeDateTime(@Nullable LocalDateTime lastChangeDateTime)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: LastChangeDateTime

      To normalize local times in a UTC time stamp and make them comparable, they must be converted using their time zone and the ABAP command convert.Although the time zone for the conversion can be fetched from customizing or master data, you should save it redundantly.The internal structure of the UTC time stamp is logically divided into a date and time part in packed number format . There is also a high resolution UTC time stamp (10^-7 seconds).

      Returns:
      this.
    • build

      @Nonnull public CostCenter build()
    • toString

      @Nonnull public String toString()
      Overrides:
      toString in class Object