Class Recurrence
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.monitoring.model.SuppressionCondition
-
- com.oracle.bmc.monitoring.model.Recurrence
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20180401") public final class Recurrence extends SuppressionCondition
Alarm suppression recurring schedule.Only one recurrence condition is supported within the list of preconditions for a suppression (suppressionConditions).
Note: Objects should always be created or deserialized using theRecurrence.Builder
. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of theRecurrence.Builder
, which maintain a set of all explicitly set fields calledRecurrence.Builder.__explicitlySet__
. ThehashCode()
andequals(Object)
methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Recurrence.Builder
-
Nested classes/interfaces inherited from class com.oracle.bmc.monitoring.model.SuppressionCondition
SuppressionCondition.ConditionType
-
-
Constructor Summary
Constructors Constructor Description Recurrence(String suppressionRecurrence, String suppressionDuration)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Recurrence.Builder
builder()
Create a new builder.boolean
equals(Object o)
String
getSuppressionDuration()
Duration of the recurring suppression.String
getSuppressionRecurrence()
Frequency and start time of the recurring suppression.int
hashCode()
Recurrence.Builder
toBuilder()
String
toString()
String
toString(boolean includeByteArrayContents)
Return a string representation of the object.
-
-
-
Constructor Detail
-
Recurrence
@Deprecated public Recurrence(String suppressionRecurrence, String suppressionDuration)
Deprecated.
-
-
Method Detail
-
builder
public static Recurrence.Builder builder()
Create a new builder.
-
toBuilder
public Recurrence.Builder toBuilder()
-
getSuppressionRecurrence
public String getSuppressionRecurrence()
Frequency and start time of the recurring suppression.The format follows the iCalendar specification (RFC 5545, section 3.3.10). Supported rule parts:
- FREQ: Frequency of the recurring suppression: WEEKLY or DAILY only.
- BYDAY: Comma separated days. Use with weekly suppressions only. Supported values: MO, TU, WE, TH, FR, SA ,SU. * BYHOUR, BYMINUTE, BYSECOND: Start time in UTC, after timeSuppressFrom value. Default is 00:00:00 UTC after timeSuppressFrom.
- Returns:
- the value
-
getSuppressionDuration
public String getSuppressionDuration()
Duration of the recurring suppression.Specified as a string in ISO 8601 format. Minimum: PT1M (1 minute). Maximum: PT24H (24 hours).
- Returns:
- the value
-
toString
public String toString()
- Overrides:
toString
in classSuppressionCondition
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Overrides:
toString
in classSuppressionCondition
- Parameters:
includeByteArrayContents
- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classSuppressionCondition
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classSuppressionCondition
-
-