Class Event.Builder
- java.lang.Object
-
- org.apache.avro.data.RecordBuilderBase<T>
-
- org.apache.avro.specific.SpecificRecordBuilderBase<Event>
-
- com.redhat.cloud.notifications.ingress.Event.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Eventbuild()Event.BuilderclearMetadata()Clears the value of the 'metadata' field.Event.BuilderclearPayload()Clears the value of the 'payload' field.MetadatagetMetadata()Gets the value of the 'metadata' field.Metadata.BuildergetMetadataBuilder()Gets the Builder instance for the 'metadata' field and creates one if it doesn't exist yet.MapgetPayload()Gets the value of the 'payload' field.booleanhasMetadata()Checks whether the 'metadata' field has been set.booleanhasMetadataBuilder()Checks whether the 'metadata' field has an active Builder instancebooleanhasPayload()Checks whether the 'payload' field has been set.Event.BuildersetMetadata(Metadata value)Sets the value of the 'metadata' field.Event.BuildersetMetadataBuilder(Metadata.Builder value)Sets the Builder instance for the 'metadata' fieldEvent.BuildersetPayload(Map value)Sets the value of the 'payload' field.
-
-
-
Method Detail
-
getMetadata
public Metadata getMetadata()
Gets the value of the 'metadata' field.- Returns:
- The value.
-
setMetadata
public Event.Builder setMetadata(Metadata value)
Sets the value of the 'metadata' field.- Parameters:
value- The value of 'metadata'.- Returns:
- This builder.
-
hasMetadata
public boolean hasMetadata()
Checks whether the 'metadata' field has been set.- Returns:
- True if the 'metadata' field has been set, false otherwise.
-
getMetadataBuilder
public Metadata.Builder getMetadataBuilder()
Gets the Builder instance for the 'metadata' field and creates one if it doesn't exist yet.- Returns:
- This builder.
-
setMetadataBuilder
public Event.Builder setMetadataBuilder(Metadata.Builder value)
Sets the Builder instance for the 'metadata' field- Parameters:
value- The builder instance that must be set.- Returns:
- This builder.
-
hasMetadataBuilder
public boolean hasMetadataBuilder()
Checks whether the 'metadata' field has an active Builder instance- Returns:
- True if the 'metadata' field has an active Builder instance
-
clearMetadata
public Event.Builder clearMetadata()
Clears the value of the 'metadata' field.- Returns:
- This builder.
-
getPayload
public Map getPayload()
Gets the value of the 'payload' field.- Returns:
- The value.
-
setPayload
public Event.Builder setPayload(Map value)
Sets the value of the 'payload' field.- Parameters:
value- The value of 'payload'.- Returns:
- This builder.
-
hasPayload
public boolean hasPayload()
Checks whether the 'payload' field has been set.- Returns:
- True if the 'payload' field has been set, false otherwise.
-
clearPayload
public Event.Builder clearPayload()
Clears the value of the 'payload' field.- Returns:
- This builder.
-
-