Class CanaryScheduleInput
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<CanaryScheduleInput.Builder,CanaryScheduleInput>
This structure specifies how often a canary is to make runs and the date and time when it should stop making runs.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic CanaryScheduleInput.Builderbuilder()final LongHow long, in seconds, for the canary to continue making regular runs according to the schedule in theExpressionvalue.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final StringArateexpression or acronexpression that defines how often the canary is to run.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final RetryConfigInputA structure that contains the retry configuration for a canarystatic Class<? extends CanaryScheduleInput.Builder> Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
expression
A
rateexpression or acronexpression that defines how often the canary is to run.For a rate expression, The syntax is
rate(number unit). unit can beminute,minutes, orhour.For example,
rate(1 minute)runs the canary once a minute,rate(10 minutes)runs it once every 10 minutes, andrate(1 hour)runs it once every hour. You can specify a frequency betweenrate(1 minute)andrate(1 hour).Specifying
rate(0 minute)orrate(0 hour)is a special value that causes the canary to run only once when it is started.Use
cron(expression)to specify a cron expression. You can't schedule a canary to wait for more than a year before running. For information about the syntax for cron expressions, see Scheduling canary runs using cron.- Returns:
- A
rateexpression or acronexpression that defines how often the canary is to run.For a rate expression, The syntax is
rate(number unit). unit can beminute,minutes, orhour.For example,
rate(1 minute)runs the canary once a minute,rate(10 minutes)runs it once every 10 minutes, andrate(1 hour)runs it once every hour. You can specify a frequency betweenrate(1 minute)andrate(1 hour).Specifying
rate(0 minute)orrate(0 hour)is a special value that causes the canary to run only once when it is started.Use
cron(expression)to specify a cron expression. You can't schedule a canary to wait for more than a year before running. For information about the syntax for cron expressions, see Scheduling canary runs using cron.
-
durationInSeconds
How long, in seconds, for the canary to continue making regular runs according to the schedule in the
Expressionvalue. If you specify 0, the canary continues making runs until you stop it. If you omit this field, the default of 0 is used.- Returns:
- How long, in seconds, for the canary to continue making regular runs according to the schedule in the
Expressionvalue. If you specify 0, the canary continues making runs until you stop it. If you omit this field, the default of 0 is used.
-
retryConfig
A structure that contains the retry configuration for a canary
- Returns:
- A structure that contains the retry configuration for a canary
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<CanaryScheduleInput.Builder,CanaryScheduleInput> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-