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.BuilderclearEventType()Clears the value of the 'event_type' field.Action.BuilderclearPayload()Clears the value of the 'payload' field.Action.BuilderclearTimestamp()Clears the value of the 'timestamp' 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.StringgetEventType()Gets the value of the 'event_type' field.MapgetPayload()Gets the value of the 'payload' field.LocalDateTimegetTimestamp()Gets the value of the 'timestamp' 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.booleanhasEventType()Checks whether the 'event_type' field has been set.booleanhasPayload()Checks whether the 'payload' field has been set.booleanhasTimestamp()Checks whether the 'timestamp' 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.BuildersetEventType(String value)Sets the value of the 'event_type' field.Action.BuildersetPayload(Map value)Sets the value of the 'payload' field.Action.BuildersetTimestamp(LocalDateTime value)Sets the value of the 'timestamp' 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.
-
getPayload
public Map getPayload()
Gets the value of the 'payload' field.- Returns:
- The value.
-
setPayload
public Action.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 Action.Builder clearPayload()
Clears the value of the 'payload' field.- Returns:
- This builder.
-
-