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 int
compareTo(B2EventNotificationRule r)
Rules are sorted by name first, and then additional attributes if necessary.boolean
equals(java.lang.Object o)
java.util.TreeSet<java.lang.String>
getEventTypes()
java.lang.String
getName()
java.lang.String
getObjectNamePrefix()
java.lang.String
getSuspensionReason()
B2EventNotificationTargetConfiguration
getTargetConfiguration()
int
hashCode()
boolean
isEnabled()
boolean
isSuspended()
java.lang.String
toString()
-
-
-
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:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
compareTo
public int compareTo(B2EventNotificationRule r)
Rules are sorted by name first, and then additional attributes if necessary.- Specified by:
compareTo
in interfacejava.lang.Comparable<B2EventNotificationRule>
-
-