ScheduleBasedTriggerContext Class
- java.
lang. Object - com.
azure. resourcemanager. dataprotection. models. TriggerContext - com.
azure. resourcemanager. dataprotection. models. ScheduleBasedTriggerContext
- com.
- com.
public final class ScheduleBasedTriggerContext
extends TriggerContext
Schedule based trigger context.
Constructor Summary
| Constructor | Description |
|---|---|
| ScheduleBasedTriggerContext() |
Creates an instance of Schedule |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Schedule |
fromJson(JsonReader jsonReader)
Reads an instance of Schedule |
| String |
objectType()
Get the object |
|
Backup |
schedule()
Get the schedule property: Schedule for this backup. |
|
List<Tagging |
taggingCriteria()
Get the tagging |
|
Json |
toJson(JsonWriter jsonWriter) |
|
Schedule |
withSchedule(BackupSchedule schedule)
Set the schedule property: Schedule for this backup. |
|
Schedule |
withTaggingCriteria(List<TaggingCriteria> taggingCriteria)
Set the tagging |
Methods inherited from TriggerContext
Methods inherited from java.lang.Object
Constructor Details
ScheduleBasedTriggerContext
public ScheduleBasedTriggerContext()
Creates an instance of ScheduleBasedTriggerContext class.
Method Details
fromJson
public static ScheduleBasedTriggerContext fromJson(JsonReader jsonReader)
Reads an instance of ScheduleBasedTriggerContext from the JsonReader.
Parameters:
Returns:
Throws:
objectType
public String objectType()
Get the objectType property: Type of the specific object - used for deserializing.
Overrides:
ScheduleBasedTriggerContext.objectType()Returns:
schedule
public BackupSchedule schedule()
Get the schedule property: Schedule for this backup.
Returns:
taggingCriteria
public List<TaggingCriteria> taggingCriteria()
Get the taggingCriteria property: List of tags that can be applicable for given schedule.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
ScheduleBasedTriggerContext.toJson(JsonWriter jsonWriter)Parameters:
Throws:
withSchedule
public ScheduleBasedTriggerContext withSchedule(BackupSchedule schedule)
Set the schedule property: Schedule for this backup.
Parameters:
Returns:
withTaggingCriteria
public ScheduleBasedTriggerContext withTaggingCriteria(List<TaggingCriteria> taggingCriteria)
Set the taggingCriteria property: List of tags that can be applicable for given schedule.
Parameters:
Returns: