Class Recipient.Builder
- java.lang.Object
-
- org.apache.avro.data.RecordBuilderBase<T>
-
- org.apache.avro.specific.SpecificRecordBuilderBase<Recipient>
-
- com.redhat.cloud.notifications.ingress.Recipient.Builder
-
- All Implemented Interfaces:
org.apache.avro.data.RecordBuilder<Recipient>
- Enclosing class:
- Recipient
public static class Recipient.Builder extends org.apache.avro.specific.SpecificRecordBuilderBase<Recipient> implements org.apache.avro.data.RecordBuilder<Recipient>
RecordBuilder for Recipient instances.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Recipientbuild()Recipient.BuilderclearIgnoreUserPreferences()Clears the value of the 'ignore_user_preferences' field.Recipient.BuilderclearOnlyAdmins()Clears the value of the 'only_admins' field.Recipient.BuilderclearUsers()Clears the value of the 'users' field.booleangetIgnoreUserPreferences()Gets the value of the 'ignore_user_preferences' field.booleangetOnlyAdmins()Gets the value of the 'only_admins' field.List<String>getUsers()Gets the value of the 'users' field.booleanhasIgnoreUserPreferences()Checks whether the 'ignore_user_preferences' field has been set.booleanhasOnlyAdmins()Checks whether the 'only_admins' field has been set.booleanhasUsers()Checks whether the 'users' field has been set.Recipient.BuildersetIgnoreUserPreferences(boolean value)Sets the value of the 'ignore_user_preferences' field.Recipient.BuildersetOnlyAdmins(boolean value)Sets the value of the 'only_admins' field.Recipient.BuildersetUsers(List<String> value)Sets the value of the 'users' field.
-
-
-
Method Detail
-
getOnlyAdmins
public boolean getOnlyAdmins()
Gets the value of the 'only_admins' field.- Returns:
- The value.
-
setOnlyAdmins
public Recipient.Builder setOnlyAdmins(boolean value)
Sets the value of the 'only_admins' field.- Parameters:
value- The value of 'only_admins'.- Returns:
- This builder.
-
hasOnlyAdmins
public boolean hasOnlyAdmins()
Checks whether the 'only_admins' field has been set.- Returns:
- True if the 'only_admins' field has been set, false otherwise.
-
clearOnlyAdmins
public Recipient.Builder clearOnlyAdmins()
Clears the value of the 'only_admins' field.- Returns:
- This builder.
-
getIgnoreUserPreferences
public boolean getIgnoreUserPreferences()
Gets the value of the 'ignore_user_preferences' field.- Returns:
- The value.
-
setIgnoreUserPreferences
public Recipient.Builder setIgnoreUserPreferences(boolean value)
Sets the value of the 'ignore_user_preferences' field.- Parameters:
value- The value of 'ignore_user_preferences'.- Returns:
- This builder.
-
hasIgnoreUserPreferences
public boolean hasIgnoreUserPreferences()
Checks whether the 'ignore_user_preferences' field has been set.- Returns:
- True if the 'ignore_user_preferences' field has been set, false otherwise.
-
clearIgnoreUserPreferences
public Recipient.Builder clearIgnoreUserPreferences()
Clears the value of the 'ignore_user_preferences' field.- Returns:
- This builder.
-
setUsers
public Recipient.Builder setUsers(List<String> value)
Sets the value of the 'users' field.- Parameters:
value- The value of 'users'.- Returns:
- This builder.
-
hasUsers
public boolean hasUsers()
Checks whether the 'users' field has been set.- Returns:
- True if the 'users' field has been set, false otherwise.
-
clearUsers
public Recipient.Builder clearUsers()
Clears the value of the 'users' field.- Returns:
- This builder.
-
-