Class Incident.IncidentBuilder
java.lang.Object
com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.ehsincidentcreate.Incident.IncidentBuilder
- Enclosing class:
- Incident
Helper class to allow for fluent creation of Incident instances.
-
Method Summary
Modifier and TypeMethodDescriptionattachments(Attachment... value) Navigation property to_Attachments for Incident to multiple Attachment.build()eHSLocationUUID(UUID eHSLocationUUID) Constraints: nonefilterByCurrentUser(Boolean filterByCurrentUser) Constraints: noneincidentCategory(String incidentCategory) Constraints: Not nullable, Maximum length: 3incidentDescriptionOfEvents(String incidentDescriptionOfEvents) Constraints: Not nullable, Maximum length: 999999incidentID(String incidentID) Constraints: Not nullable, Maximum length: 20incidentLocationDescription(String incidentLocationDescription) Constraints: Not nullable, Maximum length: 80incidentStatus(String incidentStatus) Constraints: Not nullable, Maximum length: 40incidentTitle(String incidentTitle) Constraints: Not nullable, Maximum length: 255incidentUTCDateTime(ZonedDateTime incidentUTCDateTime) Constraints: Not nullable, Precision: 0incidentUUID(UUID incidentUUID) (Key Field) Constraints: Not nullableNavigation property to_Location for Incident to single Location.Navigation property to_Persons for Incident to multiple Person.toString()
-
Method Details
-
location
Navigation property to_Location for Incident to single Location.- Parameters:
value- The Location to build this Incident with.- Returns:
- This Builder to allow for a fluent interface.
-
persons
Navigation property to_Persons for Incident to multiple Person.- Parameters:
value- The Persons to build this Incident with.- Returns:
- This Builder to allow for a fluent interface.
-
attachments
Navigation property to_Attachments for Incident to multiple Attachment.- Parameters:
value- The Attachments to build this Incident with.- Returns:
- This Builder to allow for a fluent interface.
-
incidentID
Constraints: Not nullable, Maximum length: 20Original property name from the Odata EDM: IncidentID
- Returns:
this.
-
filterByCurrentUser
Constraints: noneOriginal property name from the Odata EDM: FilterByCurrentUser
- Returns:
this.
-
incidentUUID
(Key Field) Constraints: Not nullableOriginal property name from the Odata EDM: IncidentUUID
- Returns:
this.
-
incidentUTCDateTime
@Nonnull public Incident.IncidentBuilder incidentUTCDateTime(@Nullable ZonedDateTime incidentUTCDateTime) Constraints: Not nullable, Precision: 0Original property name from the Odata EDM: IncidentUTCDateTime
- Returns:
this.
-
incidentTitle
Constraints: Not nullable, Maximum length: 255Original property name from the Odata EDM: IncidentTitle
- Returns:
this.
-
incidentStatus
Constraints: Not nullable, Maximum length: 40Original property name from the Odata EDM: IncidentStatus
- Returns:
this.
-
incidentLocationDescription
@Nonnull public Incident.IncidentBuilder incidentLocationDescription(@Nullable String incidentLocationDescription) Constraints: Not nullable, Maximum length: 80Original property name from the Odata EDM: IncidentLocationDescription
- Returns:
this.
-
incidentDescriptionOfEvents
@Nonnull public Incident.IncidentBuilder incidentDescriptionOfEvents(@Nullable String incidentDescriptionOfEvents) Constraints: Not nullable, Maximum length: 999999Original property name from the Odata EDM: IncidentDescriptionOfEvents
- Returns:
this.
-
incidentCategory
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: IncidentCategory
- Returns:
this.
-
eHSLocationUUID
Constraints: noneOriginal property name from the Odata EDM: EHSLocationUUID
- Returns:
this.
-
build
-
toString
-