Package com.bakdata.kafka
Class DeadLetter.Builder
- java.lang.Object
-
- org.apache.avro.data.RecordBuilderBase<T>
-
- org.apache.avro.specific.SpecificRecordBuilderBase<DeadLetter>
-
- com.bakdata.kafka.DeadLetter.Builder
-
- All Implemented Interfaces:
org.apache.avro.data.RecordBuilder<DeadLetter>
- Enclosing class:
- DeadLetter
public static class DeadLetter.Builder extends org.apache.avro.specific.SpecificRecordBuilderBase<DeadLetter> implements org.apache.avro.data.RecordBuilder<DeadLetter>
RecordBuilder for DeadLetter instances.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeadLetterbuild()DeadLetter.BuilderclearCause()Clears the value of the 'cause' field.DeadLetter.BuilderclearDescription()Clears the value of the 'description' field.DeadLetter.BuilderclearInputValue()Clears the value of the 'input_value' field.DeadLetter.BuilderclearOffset()Clears the value of the 'offset' field.DeadLetter.BuilderclearPartition()Clears the value of the 'partition' field.DeadLetter.BuilderclearTopic()Clears the value of the 'topic' field.ErrorDescriptiongetCause()Gets the value of the 'cause' field.ErrorDescription.BuildergetCauseBuilder()Gets the Builder instance for the 'cause' field and creates one if it doesn't exist yet.java.lang.StringgetDescription()Gets the value of the 'description' field.java.lang.StringgetInputValue()Gets the value of the 'input_value' field.java.lang.LonggetOffset()Gets the value of the 'offset' field.java.lang.IntegergetPartition()Gets the value of the 'partition' field.java.lang.StringgetTopic()Gets the value of the 'topic' field.booleanhasCause()Checks whether the 'cause' field has been set.booleanhasCauseBuilder()Checks whether the 'cause' field has an active Builder instancebooleanhasDescription()Checks whether the 'description' field has been set.booleanhasInputValue()Checks whether the 'input_value' field has been set.booleanhasOffset()Checks whether the 'offset' field has been set.booleanhasPartition()Checks whether the 'partition' field has been set.booleanhasTopic()Checks whether the 'topic' field has been set.DeadLetter.BuildersetCause(ErrorDescription value)Sets the value of the 'cause' field.DeadLetter.BuildersetCauseBuilder(ErrorDescription.Builder value)Sets the Builder instance for the 'cause' fieldDeadLetter.BuildersetDescription(java.lang.String value)Sets the value of the 'description' field.DeadLetter.BuildersetInputValue(java.lang.String value)Sets the value of the 'input_value' field.DeadLetter.BuildersetOffset(java.lang.Long value)Sets the value of the 'offset' field.DeadLetter.BuildersetPartition(java.lang.Integer value)Sets the value of the 'partition' field.DeadLetter.BuildersetTopic(java.lang.String value)Sets the value of the 'topic' field.
-
-
-
Method Detail
-
getInputValue
public java.lang.String getInputValue()
Gets the value of the 'input_value' field.- Returns:
- The value.
-
setInputValue
public DeadLetter.Builder setInputValue(java.lang.String value)
Sets the value of the 'input_value' field.- Parameters:
value- The value of 'input_value'.- Returns:
- This builder.
-
hasInputValue
public boolean hasInputValue()
Checks whether the 'input_value' field has been set.- Returns:
- True if the 'input_value' field has been set, false otherwise.
-
clearInputValue
public DeadLetter.Builder clearInputValue()
Clears the value of the 'input_value' field.- Returns:
- This builder.
-
getTopic
public java.lang.String getTopic()
Gets the value of the 'topic' field.- Returns:
- The value.
-
setTopic
public DeadLetter.Builder setTopic(java.lang.String value)
Sets the value of the 'topic' field.- Parameters:
value- The value of 'topic'.- Returns:
- This builder.
-
hasTopic
public boolean hasTopic()
Checks whether the 'topic' field has been set.- Returns:
- True if the 'topic' field has been set, false otherwise.
-
clearTopic
public DeadLetter.Builder clearTopic()
Clears the value of the 'topic' field.- Returns:
- This builder.
-
getPartition
public java.lang.Integer getPartition()
Gets the value of the 'partition' field.- Returns:
- The value.
-
setPartition
public DeadLetter.Builder setPartition(java.lang.Integer value)
Sets the value of the 'partition' field.- Parameters:
value- The value of 'partition'.- Returns:
- This builder.
-
hasPartition
public boolean hasPartition()
Checks whether the 'partition' field has been set.- Returns:
- True if the 'partition' field has been set, false otherwise.
-
clearPartition
public DeadLetter.Builder clearPartition()
Clears the value of the 'partition' field.- Returns:
- This builder.
-
getOffset
public java.lang.Long getOffset()
Gets the value of the 'offset' field.- Returns:
- The value.
-
setOffset
public DeadLetter.Builder setOffset(java.lang.Long value)
Sets the value of the 'offset' field.- Parameters:
value- The value of 'offset'.- Returns:
- This builder.
-
hasOffset
public boolean hasOffset()
Checks whether the 'offset' field has been set.- Returns:
- True if the 'offset' field has been set, false otherwise.
-
clearOffset
public DeadLetter.Builder clearOffset()
Clears the value of the 'offset' field.- Returns:
- This builder.
-
getDescription
public java.lang.String getDescription()
Gets the value of the 'description' field.- Returns:
- The value.
-
setDescription
public DeadLetter.Builder setDescription(java.lang.String value)
Sets the value of the 'description' field.- Parameters:
value- The value of 'description'.- Returns:
- This builder.
-
hasDescription
public boolean hasDescription()
Checks whether the 'description' field has been set.- Returns:
- True if the 'description' field has been set, false otherwise.
-
clearDescription
public DeadLetter.Builder clearDescription()
Clears the value of the 'description' field.- Returns:
- This builder.
-
getCause
public ErrorDescription getCause()
Gets the value of the 'cause' field.- Returns:
- The value.
-
setCause
public DeadLetter.Builder setCause(ErrorDescription value)
Sets the value of the 'cause' field.- Parameters:
value- The value of 'cause'.- Returns:
- This builder.
-
hasCause
public boolean hasCause()
Checks whether the 'cause' field has been set.- Returns:
- True if the 'cause' field has been set, false otherwise.
-
getCauseBuilder
public ErrorDescription.Builder getCauseBuilder()
Gets the Builder instance for the 'cause' field and creates one if it doesn't exist yet.- Returns:
- This builder.
-
setCauseBuilder
public DeadLetter.Builder setCauseBuilder(ErrorDescription.Builder value)
Sets the Builder instance for the 'cause' field- Parameters:
value- The builder instance that must be set.- Returns:
- This builder.
-
hasCauseBuilder
public boolean hasCauseBuilder()
Checks whether the 'cause' field has an active Builder instance- Returns:
- True if the 'cause' field has an active Builder instance
-
clearCause
public DeadLetter.Builder clearCause()
Clears the value of the 'cause' field.- Returns:
- This builder.
-
build
public DeadLetter build()
- Specified by:
buildin interfaceorg.apache.avro.data.RecordBuilder<DeadLetter>
-
-