com.pulumi.azurenative.dataprotection.inputs.ScheduleBasedTriggerContextArgs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azurenative.dataprotection.inputs;
import com.pulumi.azurenative.dataprotection.inputs.BackupScheduleArgs;
import com.pulumi.azurenative.dataprotection.inputs.TaggingCriteriaArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
/**
* Schedule based trigger context
*
*/
public final class ScheduleBasedTriggerContextArgs extends com.pulumi.resources.ResourceArgs {
public static final ScheduleBasedTriggerContextArgs Empty = new ScheduleBasedTriggerContextArgs();
/**
* Type of the specific object - used for deserializing
* Expected value is 'ScheduleBasedTriggerContext'.
*
*/
@Import(name="objectType", required=true)
private Output objectType;
/**
* @return Type of the specific object - used for deserializing
* Expected value is 'ScheduleBasedTriggerContext'.
*
*/
public Output objectType() {
return this.objectType;
}
/**
* Schedule for this backup
*
*/
@Import(name="schedule", required=true)
private Output schedule;
/**
* @return Schedule for this backup
*
*/
public Output schedule() {
return this.schedule;
}
/**
* List of tags that can be applicable for given schedule.
*
*/
@Import(name="taggingCriteria", required=true)
private Output> taggingCriteria;
/**
* @return List of tags that can be applicable for given schedule.
*
*/
public Output> taggingCriteria() {
return this.taggingCriteria;
}
private ScheduleBasedTriggerContextArgs() {}
private ScheduleBasedTriggerContextArgs(ScheduleBasedTriggerContextArgs $) {
this.objectType = $.objectType;
this.schedule = $.schedule;
this.taggingCriteria = $.taggingCriteria;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ScheduleBasedTriggerContextArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private ScheduleBasedTriggerContextArgs $;
public Builder() {
$ = new ScheduleBasedTriggerContextArgs();
}
public Builder(ScheduleBasedTriggerContextArgs defaults) {
$ = new ScheduleBasedTriggerContextArgs(Objects.requireNonNull(defaults));
}
/**
* @param objectType Type of the specific object - used for deserializing
* Expected value is 'ScheduleBasedTriggerContext'.
*
* @return builder
*
*/
public Builder objectType(Output objectType) {
$.objectType = objectType;
return this;
}
/**
* @param objectType Type of the specific object - used for deserializing
* Expected value is 'ScheduleBasedTriggerContext'.
*
* @return builder
*
*/
public Builder objectType(String objectType) {
return objectType(Output.of(objectType));
}
/**
* @param schedule Schedule for this backup
*
* @return builder
*
*/
public Builder schedule(Output schedule) {
$.schedule = schedule;
return this;
}
/**
* @param schedule Schedule for this backup
*
* @return builder
*
*/
public Builder schedule(BackupScheduleArgs schedule) {
return schedule(Output.of(schedule));
}
/**
* @param taggingCriteria List of tags that can be applicable for given schedule.
*
* @return builder
*
*/
public Builder taggingCriteria(Output> taggingCriteria) {
$.taggingCriteria = taggingCriteria;
return this;
}
/**
* @param taggingCriteria List of tags that can be applicable for given schedule.
*
* @return builder
*
*/
public Builder taggingCriteria(List taggingCriteria) {
return taggingCriteria(Output.of(taggingCriteria));
}
/**
* @param taggingCriteria List of tags that can be applicable for given schedule.
*
* @return builder
*
*/
public Builder taggingCriteria(TaggingCriteriaArgs... taggingCriteria) {
return taggingCriteria(List.of(taggingCriteria));
}
public ScheduleBasedTriggerContextArgs build() {
$.objectType = Codegen.stringProp("objectType").output().arg($.objectType).require();
if ($.schedule == null) {
throw new MissingRequiredPropertyException("ScheduleBasedTriggerContextArgs", "schedule");
}
if ($.taggingCriteria == null) {
throw new MissingRequiredPropertyException("ScheduleBasedTriggerContextArgs", "taggingCriteria");
}
return $;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy