Class Action.Builder
- java.lang.Object
-
- org.apache.avro.data.RecordBuilderBase<T>
-
- org.apache.avro.specific.SpecificRecordBuilderBase<Action>
-
- com.redhat.cloud.notifications.ingress.Action.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Actionbuild()Action.BuilderclearAccountId()Clears the value of the 'account_id' field.Action.BuilderclearApplication()Clears the value of the 'application' field.Action.BuilderclearBundle()Clears the value of the 'bundle' field.Action.BuilderclearContext()Clears the value of the 'context' field.Action.BuilderclearEvents()Clears the value of the 'events' field.Action.BuilderclearEventType()Clears the value of the 'event_type' field.Action.BuilderclearRecipients()Clears the value of the 'recipients' field.Action.BuilderclearTimestamp()Clears the value of the 'timestamp' field.Action.BuilderclearVersion()Clears the value of the 'version' field.StringgetAccountId()Gets the value of the 'account_id' field.StringgetApplication()Gets the value of the 'application' field.StringgetBundle()Gets the value of the 'bundle' field.MapgetContext()Gets the value of the 'context' field.List<Event>getEvents()Gets the value of the 'events' field.StringgetEventType()Gets the value of the 'event_type' field.List<Recipient>getRecipients()Gets the value of the 'recipients' field.LocalDateTimegetTimestamp()Gets the value of the 'timestamp' field.StringgetVersion()Gets the value of the 'version' field.booleanhasAccountId()Checks whether the 'account_id' field has been set.booleanhasApplication()Checks whether the 'application' field has been set.booleanhasBundle()Checks whether the 'bundle' field has been set.booleanhasContext()Checks whether the 'context' field has been set.booleanhasEvents()Checks whether the 'events' field has been set.booleanhasEventType()Checks whether the 'event_type' field has been set.booleanhasRecipients()Checks whether the 'recipients' field has been set.booleanhasTimestamp()Checks whether the 'timestamp' field has been set.booleanhasVersion()Checks whether the 'version' field has been set.Action.BuildersetAccountId(String value)Sets the value of the 'account_id' field.Action.BuildersetApplication(String value)Sets the value of the 'application' field.Action.BuildersetBundle(String value)Sets the value of the 'bundle' field.Action.BuildersetContext(Map value)Sets the value of the 'context' field.Action.BuildersetEvents(List<Event> value)Sets the value of the 'events' field.Action.BuildersetEventType(String value)Sets the value of the 'event_type' field.Action.BuildersetRecipients(List<Recipient> value)Sets the value of the 'recipients' field.Action.BuildersetTimestamp(LocalDateTime value)Sets the value of the 'timestamp' field.Action.BuildersetVersion(String value)Sets the value of the 'version' field.
-
-
-
Method Detail
-
getBundle
public String getBundle()
Gets the value of the 'bundle' field.- Returns:
- The value.
-
setBundle
public Action.Builder setBundle(String value)
Sets the value of the 'bundle' field.- Parameters:
value- The value of 'bundle'.- Returns:
- This builder.
-
hasBundle
public boolean hasBundle()
Checks whether the 'bundle' field has been set.- Returns:
- True if the 'bundle' field has been set, false otherwise.
-
clearBundle
public Action.Builder clearBundle()
Clears the value of the 'bundle' field.- Returns:
- This builder.
-
getApplication
public String getApplication()
Gets the value of the 'application' field.- Returns:
- The value.
-
setApplication
public Action.Builder setApplication(String value)
Sets the value of the 'application' field.- Parameters:
value- The value of 'application'.- Returns:
- This builder.
-
hasApplication
public boolean hasApplication()
Checks whether the 'application' field has been set.- Returns:
- True if the 'application' field has been set, false otherwise.
-
clearApplication
public Action.Builder clearApplication()
Clears the value of the 'application' field.- Returns:
- This builder.
-
getEventType
public String getEventType()
Gets the value of the 'event_type' field.- Returns:
- The value.
-
setEventType
public Action.Builder setEventType(String value)
Sets the value of the 'event_type' field.- Parameters:
value- The value of 'event_type'.- Returns:
- This builder.
-
hasEventType
public boolean hasEventType()
Checks whether the 'event_type' field has been set.- Returns:
- True if the 'event_type' field has been set, false otherwise.
-
clearEventType
public Action.Builder clearEventType()
Clears the value of the 'event_type' field.- Returns:
- This builder.
-
getTimestamp
public LocalDateTime getTimestamp()
Gets the value of the 'timestamp' field.- Returns:
- The value.
-
setTimestamp
public Action.Builder setTimestamp(LocalDateTime value)
Sets the value of the 'timestamp' field.- Parameters:
value- The value of 'timestamp'.- Returns:
- This builder.
-
hasTimestamp
public boolean hasTimestamp()
Checks whether the 'timestamp' field has been set.- Returns:
- True if the 'timestamp' field has been set, false otherwise.
-
clearTimestamp
public Action.Builder clearTimestamp()
Clears the value of the 'timestamp' field.- Returns:
- This builder.
-
getAccountId
public String getAccountId()
Gets the value of the 'account_id' field.- Returns:
- The value.
-
setAccountId
public Action.Builder setAccountId(String value)
Sets the value of the 'account_id' field.- Parameters:
value- The value of 'account_id'.- Returns:
- This builder.
-
hasAccountId
public boolean hasAccountId()
Checks whether the 'account_id' field has been set.- Returns:
- True if the 'account_id' field has been set, false otherwise.
-
clearAccountId
public Action.Builder clearAccountId()
Clears the value of the 'account_id' field.- Returns:
- This builder.
-
getContext
public Map getContext()
Gets the value of the 'context' field.- Returns:
- The value.
-
setContext
public Action.Builder setContext(Map value)
Sets the value of the 'context' field.- Parameters:
value- The value of 'context'.- Returns:
- This builder.
-
hasContext
public boolean hasContext()
Checks whether the 'context' field has been set.- Returns:
- True if the 'context' field has been set, false otherwise.
-
clearContext
public Action.Builder clearContext()
Clears the value of the 'context' field.- Returns:
- This builder.
-
setEvents
public Action.Builder setEvents(List<Event> value)
Sets the value of the 'events' field.- Parameters:
value- The value of 'events'.- Returns:
- This builder.
-
hasEvents
public boolean hasEvents()
Checks whether the 'events' field has been set.- Returns:
- True if the 'events' field has been set, false otherwise.
-
clearEvents
public Action.Builder clearEvents()
Clears the value of the 'events' field.- Returns:
- This builder.
-
getVersion
public String getVersion()
Gets the value of the 'version' field.- Returns:
- The value.
-
setVersion
public Action.Builder setVersion(String value)
Sets the value of the 'version' field.- Parameters:
value- The value of 'version'.- Returns:
- This builder.
-
hasVersion
public boolean hasVersion()
Checks whether the 'version' field has been set.- Returns:
- True if the 'version' field has been set, false otherwise.
-
clearVersion
public Action.Builder clearVersion()
Clears the value of the 'version' field.- Returns:
- This builder.
-
getRecipients
public List<Recipient> getRecipients()
Gets the value of the 'recipients' field.- Returns:
- The value.
-
setRecipients
public Action.Builder setRecipients(List<Recipient> value)
Sets the value of the 'recipients' field.- Parameters:
value- The value of 'recipients'.- Returns:
- This builder.
-
hasRecipients
public boolean hasRecipients()
Checks whether the 'recipients' field has been set.- Returns:
- True if the 'recipients' field has been set, false otherwise.
-
clearRecipients
public Action.Builder clearRecipients()
Clears the value of the 'recipients' field.- Returns:
- This builder.
-
-