Class EnvelopedAspect
- java.lang.Object
-
- io.datahubproject.openapi.generated.EnvelopedAspect
-
@Validated @Generated(value="io.swagger.codegen.v3.generators.java.SpringCodegen", date="2023-12-06T11:25:47.362934Z[Etc/UTC]") public class EnvelopedAspect extends java.lang.ObjectAn aspect, along with the metadata about it. Currently, an aspect can be either of type 'timestamp' or 'versioned'.
-
-
Constructor Summary
Constructors Constructor Description EnvelopedAspect()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EnvelopedAspectcreated(AuditStamp created)booleanequals(java.lang.Object o)@NotNull @Valid AuditStampgetCreated()Get created@NotNull java.lang.StringgetName()The name of the aspect@Valid SystemMetadatagetSystemMetadata()Get systemMetadata@Min(-9223372036854775808L) @Max(9223372036854775807L) java.lang.LonggetTimestamp()The timestamp of the aspect, only populated if type is 'TIMESTAMP' minimum: -9223372036854775808 maximum: 9223372036854775807@NotNull @Valid AspectTypegetType()Get type@NotNull OneOfEnvelopedAspectValuegetValue()Get value@Min(-9223372036854775808L) @Max(9223372036854775807L) java.lang.LonggetVersion()The version of the aspect, only populated if type is 'VERSIONED' minimum: -9223372036854775808 maximum: 9223372036854775807inthashCode()EnvelopedAspectname(java.lang.String name)voidsetCreated(AuditStamp created)voidsetName(java.lang.String name)voidsetSystemMetadata(SystemMetadata systemMetadata)voidsetTimestamp(java.lang.Long timestamp)voidsetType(AspectType type)voidsetValue(OneOfEnvelopedAspectValue value)voidsetVersion(java.lang.Long version)EnvelopedAspectsystemMetadata(SystemMetadata systemMetadata)EnvelopedAspecttimestamp(java.lang.Long timestamp)java.lang.StringtoString()EnvelopedAspecttype(AspectType type)EnvelopedAspectvalue(OneOfEnvelopedAspectValue value)EnvelopedAspectversion(java.lang.Long version)
-
-
-
Method Detail
-
name
public EnvelopedAspect name(java.lang.String name)
-
getName
@NotNull public @NotNull java.lang.String getName()
The name of the aspect- Returns:
- name
-
setName
public void setName(java.lang.String name)
-
type
public EnvelopedAspect type(AspectType type)
-
getType
@NotNull @Valid public @NotNull @Valid AspectType getType()
Get type- Returns:
- type
-
setType
public void setType(AspectType type)
-
version
public EnvelopedAspect version(java.lang.Long version)
-
getVersion
@Min(-9223372036854775808L) @Max(9223372036854775807L) public @Min(-9223372036854775808L) @Max(9223372036854775807L) java.lang.Long getVersion()
The version of the aspect, only populated if type is 'VERSIONED' minimum: -9223372036854775808 maximum: 9223372036854775807- Returns:
- version
-
setVersion
public void setVersion(java.lang.Long version)
-
timestamp
public EnvelopedAspect timestamp(java.lang.Long timestamp)
-
getTimestamp
@Min(-9223372036854775808L) @Max(9223372036854775807L) public @Min(-9223372036854775808L) @Max(9223372036854775807L) java.lang.Long getTimestamp()
The timestamp of the aspect, only populated if type is 'TIMESTAMP' minimum: -9223372036854775808 maximum: 9223372036854775807- Returns:
- timestamp
-
setTimestamp
public void setTimestamp(java.lang.Long timestamp)
-
value
public EnvelopedAspect value(OneOfEnvelopedAspectValue value)
-
getValue
@NotNull public @NotNull OneOfEnvelopedAspectValue getValue()
Get value- Returns:
- value
-
setValue
public void setValue(OneOfEnvelopedAspectValue value)
-
created
public EnvelopedAspect created(AuditStamp created)
-
getCreated
@NotNull @Valid public @NotNull @Valid AuditStamp getCreated()
Get created- Returns:
- created
-
setCreated
public void setCreated(AuditStamp created)
-
systemMetadata
public EnvelopedAspect systemMetadata(SystemMetadata systemMetadata)
-
getSystemMetadata
@Valid public @Valid SystemMetadata getSystemMetadata()
Get systemMetadata- Returns:
- systemMetadata
-
setSystemMetadata
public void setSystemMetadata(SystemMetadata systemMetadata)
-
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
-
-