Class B2EventNotificationRule
- java.lang.Object
-
- com.backblaze.b2.client.structures.B2EventNotificationRule
-
- All Implemented Interfaces:
java.lang.Comparable<B2EventNotificationRule>
public class B2EventNotificationRule extends java.lang.Object implements java.lang.Comparable<B2EventNotificationRule>
One rule about under what condition(s) to send notifications for events in a bucket.
-
-
Constructor Summary
Constructors Constructor Description B2EventNotificationRule(java.lang.String name, java.util.TreeSet<java.lang.String> eventTypes, java.lang.String objectNamePrefix, B2EventNotificationTargetConfiguration targetConfiguration, boolean isEnabled)B2EventNotificationRule(java.lang.String name, java.util.TreeSet<java.lang.String> eventTypes, java.lang.String objectNamePrefix, B2EventNotificationTargetConfiguration targetConfiguration, boolean isEnabled, java.lang.Boolean isSuspended, java.lang.String suspensionReason)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(B2EventNotificationRule r)Rules are sorted by name first, and then additional attributes if necessary.booleanequals(java.lang.Object o)java.util.TreeSet<java.lang.String>getEventTypes()java.lang.StringgetName()java.lang.StringgetObjectNamePrefix()java.lang.StringgetSuspensionReason()B2EventNotificationTargetConfigurationgetTargetConfiguration()inthashCode()booleanisEnabled()booleanisSuspended()java.lang.StringtoString()
-
-
-
Constructor Detail
-
B2EventNotificationRule
public B2EventNotificationRule(java.lang.String name, java.util.TreeSet<java.lang.String> eventTypes, java.lang.String objectNamePrefix, B2EventNotificationTargetConfiguration targetConfiguration, boolean isEnabled, java.lang.Boolean isSuspended, java.lang.String suspensionReason)
-
B2EventNotificationRule
public B2EventNotificationRule(java.lang.String name, java.util.TreeSet<java.lang.String> eventTypes, java.lang.String objectNamePrefix, B2EventNotificationTargetConfiguration targetConfiguration, boolean isEnabled)
-
-
Method Detail
-
getName
public java.lang.String getName()
-
getEventTypes
public java.util.TreeSet<java.lang.String> getEventTypes()
-
getObjectNamePrefix
public java.lang.String getObjectNamePrefix()
-
getTargetConfiguration
public B2EventNotificationTargetConfiguration getTargetConfiguration()
-
isEnabled
public boolean isEnabled()
-
isSuspended
public boolean isSuspended()
-
getSuspensionReason
public java.lang.String getSuspensionReason()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
compareTo
public int compareTo(B2EventNotificationRule r)
Rules are sorted by name first, and then additional attributes if necessary.- Specified by:
compareToin interfacejava.lang.Comparable<B2EventNotificationRule>
-
-