@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen") @Beta public class Rule extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Rule.ExpressionLanguageVersionEnum
It represents 1.0 or 2.0 expression language based Rule.
|
static class |
Rule.TypeEnum
Type of the rule.
|
Constructor and Description |
---|
Rule() |
Modifier and Type | Method and Description |
---|---|
Rule |
addAnnotationsItem(Object annotationsItem)
Add one Annotations instance to this
Rule . |
Rule |
addDescriptionItem(Object descriptionItem)
Add one Description instance to this
Rule . |
Rule |
addLabelItem(Object labelItem)
Add one Label instance to this
Rule . |
Rule |
annotations(List<Object> annotations)
Set the annotations of this
Rule instance and return the same instance. |
Rule |
changedBy(String changedBy)
Set the changedBy of this
Rule instance and return the same instance. |
Rule |
changedOn(OffsetDateTime changedOn)
Set the changedOn of this
Rule instance and return the same instance. |
Rule |
description(List<Object> description)
Set the description of this
Rule instance and return the same instance. |
boolean |
equals(Object o) |
Rule |
expressionLanguageVersion(Rule.ExpressionLanguageVersionEnum expressionLanguageVersion)
Set the expressionLanguageVersion of this
Rule instance and return the same instance. |
List<Object> |
getAnnotations()
Annotations belonging to entity.
|
String |
getChangedBy()
The id of the user who performed the last update
|
OffsetDateTime |
getChangedOn()
The last updated time of the version
|
List<Object> |
getDescription()
Description of the entity
|
Rule.ExpressionLanguageVersionEnum |
getExpressionLanguageVersion()
It represents 1.0 or 2.0 expression language based Rule.
|
String |
getId()
ID of the entity(UUID)
|
List<Object> |
getLabel()
Label of the entity
|
String |
getName()
Name of the entity
|
String |
getProject()
ID of the Project(UUID) that this entity belongs to
|
RuleAllOfResult |
getResult()
Get result
|
Rule.TypeEnum |
getType()
Type of the rule.
|
int |
hashCode() |
Rule |
id(String id)
Set the id of this
Rule instance and return the same instance. |
Rule |
label(List<Object> label)
Set the label of this
Rule instance and return the same instance. |
Rule |
name(String name)
Set the name of this
Rule instance and return the same instance. |
Rule |
project(String project)
Set the project of this
Rule instance and return the same instance. |
Rule |
result(RuleAllOfResult result)
Set the result of this
Rule instance and return the same instance. |
void |
setAnnotations(List<Object> annotations)
Set the annotations of this
Rule instance. |
void |
setChangedBy(String changedBy)
Set the changedBy of this
Rule instance. |
void |
setChangedOn(OffsetDateTime changedOn)
Set the changedOn of this
Rule instance. |
void |
setDescription(List<Object> description)
Set the description of this
Rule instance. |
void |
setExpressionLanguageVersion(Rule.ExpressionLanguageVersionEnum expressionLanguageVersion)
Set the expressionLanguageVersion of this
Rule instance. |
void |
setId(String id)
Set the id of this
Rule instance. |
void |
setLabel(List<Object> label)
Set the label of this
Rule instance. |
void |
setName(String name)
Set the name of this
Rule instance. |
void |
setProject(String project)
Set the project of this
Rule instance. |
void |
setResult(RuleAllOfResult result)
Set the result of this
Rule instance. |
void |
setType(Rule.TypeEnum type)
Set the type of this
Rule instance. |
String |
toString() |
Rule |
type(Rule.TypeEnum type)
Set the type of this
Rule instance and return the same instance. |
@Nonnull public Rule id(@Nonnull String id)
Rule
instance and return the same instance.id
- ID of the entity(UUID)Rule
class@Nonnull public String getId()
Rule
instance.public void setId(@Nonnull String id)
Rule
instance.id
- ID of the entity(UUID)@Nonnull public Rule project(@Nonnull String project)
Rule
instance and return the same instance.project
- ID of the Project(UUID) that this entity belongs toRule
class@Nonnull public String getProject()
Rule
instance.public void setProject(@Nonnull String project)
Rule
instance.project
- ID of the Project(UUID) that this entity belongs to@Nonnull public Rule name(@Nonnull String name)
Rule
instance and return the same instance.name
- Name of the entityRule
class@Nonnull public String getName()
Rule
instance.public void setName(@Nonnull String name)
Rule
instance.name
- Name of the entity@Nonnull public Rule description(@Nonnull List<Object> description)
Rule
instance and return the same instance.description
- Description of the entityRule
class@Nonnull public Rule addDescriptionItem(@Nonnull Object descriptionItem)
Rule
.descriptionItem
- The Description that should be addedRule
@Nonnull public List<Object> getDescription()
Rule
instance.public void setDescription(@Nonnull List<Object> description)
Rule
instance.description
- Description of the entity@Nonnull public Rule changedOn(@Nonnull OffsetDateTime changedOn)
Rule
instance and return the same instance.changedOn
- The last updated time of the versionRule
class@Nonnull public OffsetDateTime getChangedOn()
Rule
instance.public void setChangedOn(@Nonnull OffsetDateTime changedOn)
Rule
instance.changedOn
- The last updated time of the version@Nonnull public Rule changedBy(@Nonnull String changedBy)
Rule
instance and return the same instance.changedBy
- The id of the user who performed the last updateRule
class@Nonnull public String getChangedBy()
Rule
instance.public void setChangedBy(@Nonnull String changedBy)
Rule
instance.changedBy
- The id of the user who performed the last update@Nonnull public Rule label(@Nonnull List<Object> label)
Rule
instance and return the same instance.label
- Label of the entityRule
class@Nonnull public Rule addLabelItem(@Nonnull Object labelItem)
Rule
.labelItem
- The Label that should be addedRule
@Nonnull public List<Object> getLabel()
Rule
instance.public void setLabel(@Nonnull List<Object> label)
Rule
instance.label
- Label of the entity@Nonnull public Rule annotations(@Nonnull List<Object> annotations)
Rule
instance and return the same instance.annotations
- Annotations belonging to entity.Rule
class@Nonnull public Rule addAnnotationsItem(@Nonnull Object annotationsItem)
Rule
.annotationsItem
- The Annotations that should be addedRule
@Nonnull public List<Object> getAnnotations()
Rule
instance.public void setAnnotations(@Nonnull List<Object> annotations)
Rule
instance.annotations
- Annotations belonging to entity.@Nonnull public Rule expressionLanguageVersion(@Nonnull Rule.ExpressionLanguageVersionEnum expressionLanguageVersion)
Rule
instance and return the same instance.expressionLanguageVersion
- It represents 1.0 or 2.0 expression language based Rule. It defaults to the expression language of the
projectRule
class@Nonnull public Rule.ExpressionLanguageVersionEnum getExpressionLanguageVersion()
Rule
instance.public void setExpressionLanguageVersion(@Nonnull Rule.ExpressionLanguageVersionEnum expressionLanguageVersion)
Rule
instance.expressionLanguageVersion
- It represents 1.0 or 2.0 expression language based Rule. It defaults to the expression language of the
project@Nonnull public Rule type(@Nonnull Rule.TypeEnum type)
Rule
instance and return the same instance.type
- Type of the rule. Rules can be of two types namely Decision Table(DT) and Text Rule(TR).Rule
class@Nonnull public Rule.TypeEnum getType()
Rule
instance.public void setType(@Nonnull Rule.TypeEnum type)
Rule
instance.type
- Type of the rule. Rules can be of two types namely Decision Table(DT) and Text Rule(TR).@Nonnull public Rule result(@Nonnull RuleAllOfResult result)
Rule
instance and return the same instance.@Nonnull public RuleAllOfResult getResult()
Rule
instance.public void setResult(@Nonnull RuleAllOfResult result)
Rule
instance.result
- The result of this Rule
Copyright © 2021 SAP SE. All rights reserved.