Record Class CertificateNotificationSettings
java.lang.Object
java.lang.Record
com.suncode.pwfl.certificates.notification.CertificateNotificationSettings
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCertificateNotificationSettings(boolean enabled, boolean emailEnabled, boolean bannerEnabled, List<Integer> thresholds, List<String> users, List<String> emailGroups, List<String> emailAddresses, List<String> bannerGroups) Creates an instance of aCertificateNotificationSettingsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thebannerEnabledrecord component.Returns the value of thebannerGroupsrecord component.disabled()Returns the value of theemailAddressesrecord component.booleanReturns the value of theemailEnabledrecord component.Returns the value of theemailGroupsrecord component.booleanenabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thethresholdsrecord component.final StringtoString()Returns a string representation of this record class.users()Returns the value of theusersrecord component.
-
Field Details
-
MAX_THRESHOLD_DAYS
public static final int MAX_THRESHOLD_DAYS- See Also:
-
-
Constructor Details
-
CertificateNotificationSettings
public CertificateNotificationSettings(boolean enabled, boolean emailEnabled, boolean bannerEnabled, List<Integer> thresholds, List<String> users, List<String> emailGroups, List<String> emailAddresses, List<String> bannerGroups) Creates an instance of aCertificateNotificationSettingsrecord class.- Parameters:
enabled- the value for theenabledrecord componentemailEnabled- the value for theemailEnabledrecord componentbannerEnabled- the value for thebannerEnabledrecord componentthresholds- the value for thethresholdsrecord componentusers- the value for theusersrecord componentemailGroups- the value for theemailGroupsrecord componentemailAddresses- the value for theemailAddressesrecord componentbannerGroups- the value for thebannerGroupsrecord component
-
-
Method Details
-
disabled
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
enabled
public boolean enabled()Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-
emailEnabled
public boolean emailEnabled()Returns the value of theemailEnabledrecord component.- Returns:
- the value of the
emailEnabledrecord component
-
bannerEnabled
public boolean bannerEnabled()Returns the value of thebannerEnabledrecord component.- Returns:
- the value of the
bannerEnabledrecord component
-
thresholds
-
users
-
emailGroups
-
emailAddresses
-
bannerGroups
-