public class SmartRuleRepresentation extends AbstractExtensibleRepresentation implements ResourceRepresentationWithId, Cloneable
Modifier and Type | Class and Description |
---|---|
static class |
SmartRuleRepresentation.SmartRuleRepresentationBuilder |
Constructor and Description |
---|
SmartRuleRepresentation() |
SmartRuleRepresentation(String ruleTemplateName,
com.cumulocity.model.idtype.GId id,
com.cumulocity.model.idtype.GId cepModuleId,
Map<String,Object> config,
List<String> enabledSources,
List<String> disabledSources,
Boolean enabled,
String type,
String name,
org.joda.time.DateTime lastUpdated,
org.joda.time.DateTime creationTime,
String body) |
Modifier and Type | Method and Description |
---|---|
static SmartRuleRepresentation.SmartRuleRepresentationBuilder |
builder() |
protected boolean |
canEqual(Object other) |
SmartRuleRepresentation |
clone() |
boolean |
equals(Object o) |
String |
getBody()
Esper module parsed body.
|
com.cumulocity.model.idtype.GId |
getCepModuleId()
Esper module managed object id or Apama scenario instance id.
|
Map<String,Object> |
getConfig() |
org.joda.time.DateTime |
getCreationTime() |
List<String> |
getDisabledSources() |
Boolean |
getEnabled() |
List<String> |
getEnabledSources() |
com.cumulocity.model.idtype.GId |
getId()
Smartrule cep module managed object id.
|
org.joda.time.DateTime |
getLastUpdated() |
String |
getName() |
String |
getRuleTemplateName()
SmartRule name (Scenario name).
|
String |
getType() |
int |
hashCode() |
void |
setBody(String body)
Esper module parsed body.
|
void |
setCepModuleId(com.cumulocity.model.idtype.GId cepModuleId)
Esper module managed object id or Apama scenario instance id.
|
void |
setConfig(Map<String,Object> config) |
void |
setCreationTime(org.joda.time.DateTime creationTime) |
void |
setDisabledSources(List<String> disabledSources) |
void |
setEnabled(Boolean enabled) |
void |
setEnabledSources(List<String> enabledSources) |
void |
setId(com.cumulocity.model.idtype.GId id)
Smartrule cep module managed object id.
|
void |
setLastUpdated(org.joda.time.DateTime lastUpdated) |
void |
setName(String name) |
void |
setRuleTemplateName(String ruleTemplateName)
SmartRule name (Scenario name).
|
void |
setType(String type) |
SmartRuleRepresentation.SmartRuleRepresentationBuilder |
toBuilder() |
String |
toString() |
SmartRuleRepresentation |
withBody(String body)
Esper module parsed body.
|
SmartRuleRepresentation |
withCepModuleId(com.cumulocity.model.idtype.GId cepModuleId)
Esper module managed object id or Apama scenario instance id.
|
SmartRuleRepresentation |
withConfig(Map<String,Object> config) |
SmartRuleRepresentation |
withCreationTime(org.joda.time.DateTime creationTime) |
SmartRuleRepresentation |
withDisabledSources(List<String> disabledSources) |
SmartRuleRepresentation |
withEnabled(Boolean enabled) |
SmartRuleRepresentation |
withEnabledSources(List<String> enabledSources) |
SmartRuleRepresentation |
withId(com.cumulocity.model.idtype.GId id)
Smartrule cep module managed object id.
|
SmartRuleRepresentation |
withLastUpdated(org.joda.time.DateTime lastUpdated) |
SmartRuleRepresentation |
withName(String name) |
SmartRuleRepresentation |
withRuleTemplateName(String ruleTemplateName)
SmartRule name (Scenario name).
|
SmartRuleRepresentation |
withType(String type) |
get, get, getAttrs, getProperty, hasProperty, propertyNames, removeProperty, set, set, set, setAttrs, setProperty
getSelf, getSelfDecoded, setSelf, toJSON
public SmartRuleRepresentation()
public SmartRuleRepresentation(String ruleTemplateName, com.cumulocity.model.idtype.GId id, com.cumulocity.model.idtype.GId cepModuleId, Map<String,Object> config, List<String> enabledSources, List<String> disabledSources, Boolean enabled, String type, String name, org.joda.time.DateTime lastUpdated, org.joda.time.DateTime creationTime, String body)
public SmartRuleRepresentation clone()
public static SmartRuleRepresentation.SmartRuleRepresentationBuilder builder()
public SmartRuleRepresentation.SmartRuleRepresentationBuilder toBuilder()
public String getRuleTemplateName()
public Boolean getEnabled()
public String getType()
public String getName()
public String getBody()
public void setRuleTemplateName(String ruleTemplateName)
public void setId(com.cumulocity.model.idtype.GId id)
setId
in interface ResourceRepresentationWithId
public void setCepModuleId(com.cumulocity.model.idtype.GId cepModuleId)
public void setEnabled(Boolean enabled)
public void setType(String type)
public void setName(String name)
public void setLastUpdated(org.joda.time.DateTime lastUpdated)
public void setCreationTime(org.joda.time.DateTime creationTime)
public void setBody(String body)
protected boolean canEqual(Object other)
public String toString()
toString
in class BaseResourceRepresentation
public SmartRuleRepresentation withRuleTemplateName(String ruleTemplateName)
this
if an identical value is passed).public SmartRuleRepresentation withId(com.cumulocity.model.idtype.GId id)
this
if an identical value is passed).public SmartRuleRepresentation withCepModuleId(com.cumulocity.model.idtype.GId cepModuleId)
this
if an identical value is passed).public SmartRuleRepresentation withConfig(Map<String,Object> config)
public SmartRuleRepresentation withEnabledSources(List<String> enabledSources)
public SmartRuleRepresentation withDisabledSources(List<String> disabledSources)
public SmartRuleRepresentation withEnabled(Boolean enabled)
public SmartRuleRepresentation withType(String type)
public SmartRuleRepresentation withName(String name)
public SmartRuleRepresentation withLastUpdated(org.joda.time.DateTime lastUpdated)
public SmartRuleRepresentation withCreationTime(org.joda.time.DateTime creationTime)
public SmartRuleRepresentation withBody(String body)
this
if an identical value is passed).@JSONConverter(type=com.cumulocity.model.IDTypeConverter.class) public com.cumulocity.model.idtype.GId getId()
@JSONConverter(type=com.cumulocity.model.IDTypeConverter.class) public com.cumulocity.model.idtype.GId getCepModuleId()
@JSONConverter(type=com.cumulocity.model.DateTimeConverter.class) public org.joda.time.DateTime getLastUpdated()
@JSONConverter(type=com.cumulocity.model.DateTimeConverter.class) public org.joda.time.DateTime getCreationTime()
Copyright © 2020 (C) Cumulocity GmbH. All rights reserved.