Class Operation
- java.lang.Object
-
- io.datahubproject.openapi.generated.Operation
-
- All Implemented Interfaces:
OneOfEnvelopedAspectValue,OneOfGenericAspectValue
@Validated @Generated(value="io.swagger.codegen.v3.generators.java.SpringCodegen", date="2023-12-06T11:25:47.362934Z[Etc/UTC]") public class Operation extends java.lang.Object implements OneOfEnvelopedAspectValue, OneOfGenericAspectValueOperational info for an entity.
-
-
Constructor Summary
Constructors Constructor Description Operation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Operationactor(java.lang.String actor)OperationaddAffectedDatasetsItem(java.lang.String affectedDatasetsItem)OperationaffectedDatasets(java.util.List<java.lang.String> affectedDatasets)OperationcustomOperationType(java.lang.String customOperationType)OperationcustomProperties(java.util.Map<java.lang.String,java.lang.String> customProperties)booleanequals(java.lang.Object o)OperationeventGranularity(TimeWindowSize eventGranularity)@NotNull java.lang.Stringget__type()Name of this subclass in SimpleClassName formatjava.lang.StringgetActor()Actor who issued this operation.java.util.List<java.lang.String>getAffectedDatasets()Which other datasets were affected by this operation.java.lang.StringgetCustomOperationType()A custom type of operation.java.util.Map<java.lang.String,java.lang.String>getCustomProperties()Custom properties@Valid TimeWindowSizegetEventGranularity()Get eventGranularity@NotNull @Min(-9223372036854775808L) @Max(9223372036854775807L) java.lang.LonggetLastUpdatedTimestamp()The time at which the operation occurred.java.lang.StringgetMessageId()The optional messageId, if provided serves as a custom user-defined unique identifier for an aspect value.@Min(-9223372036854775808L) @Max(9223372036854775807L) java.lang.LonggetNumAffectedRows()How many rows were affected by this operation.@NotNull @Valid OperationTypegetOperationType()Get operationType@NotNull @Valid PartitionSpecgetPartitionSpec()Get partitionSpec@Valid OperationSourceTypegetSourceType()Get sourceType@NotNull @Min(-9223372036854775808L) @Max(9223372036854775807L) java.lang.LonggetTimestampMillis()The event timestamp field as epoch at UTC in milli seconds.inthashCode()OperationlastUpdatedTimestamp(java.lang.Long lastUpdatedTimestamp)OperationmessageId(java.lang.String messageId)OperationnumAffectedRows(java.lang.Long numAffectedRows)OperationoperationType(OperationType operationType)OperationpartitionSpec(PartitionSpec partitionSpec)OperationputCustomPropertiesItem(java.lang.String key, java.lang.String customPropertiesItem)voidsetActor(java.lang.String actor)voidsetAffectedDatasets(java.util.List<java.lang.String> affectedDatasets)voidsetCustomOperationType(java.lang.String customOperationType)voidsetCustomProperties(java.util.Map<java.lang.String,java.lang.String> customProperties)voidsetEventGranularity(TimeWindowSize eventGranularity)voidsetLastUpdatedTimestamp(java.lang.Long lastUpdatedTimestamp)voidsetMessageId(java.lang.String messageId)voidsetNumAffectedRows(java.lang.Long numAffectedRows)voidsetOperationType(OperationType operationType)voidsetPartitionSpec(PartitionSpec partitionSpec)voidsetSourceType(OperationSourceType sourceType)voidsetTimestampMillis(java.lang.Long timestampMillis)OperationsourceType(OperationSourceType sourceType)OperationtimestampMillis(java.lang.Long timestampMillis)java.lang.StringtoString()
-
-
-
Method Detail
-
get__type
@NotNull public @NotNull java.lang.String get__type()
Name of this subclass in SimpleClassName format- Returns:
- __type
-
timestampMillis
public Operation timestampMillis(java.lang.Long timestampMillis)
-
getTimestampMillis
@NotNull @Min(-9223372036854775808L) @Max(9223372036854775807L) public @NotNull @Min(-9223372036854775808L) @Max(9223372036854775807L) java.lang.Long getTimestampMillis()
The event timestamp field as epoch at UTC in milli seconds. minimum: -9223372036854775808 maximum: 9223372036854775807- Returns:
- timestampMillis
-
setTimestampMillis
public void setTimestampMillis(java.lang.Long timestampMillis)
-
eventGranularity
public Operation eventGranularity(TimeWindowSize eventGranularity)
-
getEventGranularity
@Valid public @Valid TimeWindowSize getEventGranularity()
Get eventGranularity- Returns:
- eventGranularity
-
setEventGranularity
public void setEventGranularity(TimeWindowSize eventGranularity)
-
partitionSpec
public Operation partitionSpec(PartitionSpec partitionSpec)
-
getPartitionSpec
@NotNull @Valid public @NotNull @Valid PartitionSpec getPartitionSpec()
Get partitionSpec- Returns:
- partitionSpec
-
setPartitionSpec
public void setPartitionSpec(PartitionSpec partitionSpec)
-
messageId
public Operation messageId(java.lang.String messageId)
-
getMessageId
public java.lang.String getMessageId()
The optional messageId, if provided serves as a custom user-defined unique identifier for an aspect value.- Returns:
- messageId
-
setMessageId
public void setMessageId(java.lang.String messageId)
-
actor
public Operation actor(java.lang.String actor)
-
getActor
public java.lang.String getActor()
Actor who issued this operation.- Returns:
- actor
-
setActor
public void setActor(java.lang.String actor)
-
operationType
public Operation operationType(OperationType operationType)
-
getOperationType
@NotNull @Valid public @NotNull @Valid OperationType getOperationType()
Get operationType- Returns:
- operationType
-
setOperationType
public void setOperationType(OperationType operationType)
-
customOperationType
public Operation customOperationType(java.lang.String customOperationType)
-
getCustomOperationType
public java.lang.String getCustomOperationType()
A custom type of operation. Required if operationType is CUSTOM.- Returns:
- customOperationType
-
setCustomOperationType
public void setCustomOperationType(java.lang.String customOperationType)
-
numAffectedRows
public Operation numAffectedRows(java.lang.Long numAffectedRows)
-
getNumAffectedRows
@Min(-9223372036854775808L) @Max(9223372036854775807L) public @Min(-9223372036854775808L) @Max(9223372036854775807L) java.lang.Long getNumAffectedRows()
How many rows were affected by this operation. minimum: -9223372036854775808 maximum: 9223372036854775807- Returns:
- numAffectedRows
-
setNumAffectedRows
public void setNumAffectedRows(java.lang.Long numAffectedRows)
-
affectedDatasets
public Operation affectedDatasets(java.util.List<java.lang.String> affectedDatasets)
-
addAffectedDatasetsItem
public Operation addAffectedDatasetsItem(java.lang.String affectedDatasetsItem)
-
getAffectedDatasets
public java.util.List<java.lang.String> getAffectedDatasets()
Which other datasets were affected by this operation.- Returns:
- affectedDatasets
-
setAffectedDatasets
public void setAffectedDatasets(java.util.List<java.lang.String> affectedDatasets)
-
sourceType
public Operation sourceType(OperationSourceType sourceType)
-
getSourceType
@Valid public @Valid OperationSourceType getSourceType()
Get sourceType- Returns:
- sourceType
-
setSourceType
public void setSourceType(OperationSourceType sourceType)
-
customProperties
public Operation customProperties(java.util.Map<java.lang.String,java.lang.String> customProperties)
-
putCustomPropertiesItem
public Operation putCustomPropertiesItem(java.lang.String key, java.lang.String customPropertiesItem)
-
getCustomProperties
public java.util.Map<java.lang.String,java.lang.String> getCustomProperties()
Custom properties- Returns:
- customProperties
-
setCustomProperties
public void setCustomProperties(java.util.Map<java.lang.String,java.lang.String> customProperties)
-
lastUpdatedTimestamp
public Operation lastUpdatedTimestamp(java.lang.Long lastUpdatedTimestamp)
-
getLastUpdatedTimestamp
@NotNull @Min(-9223372036854775808L) @Max(9223372036854775807L) public @NotNull @Min(-9223372036854775808L) @Max(9223372036854775807L) java.lang.Long getLastUpdatedTimestamp()
The time at which the operation occurred. Would be better named 'operationTime' minimum: -9223372036854775808 maximum: 9223372036854775807- Returns:
- lastUpdatedTimestamp
-
setLastUpdatedTimestamp
public void setLastUpdatedTimestamp(java.lang.Long lastUpdatedTimestamp)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-