All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.dataprotection.outputs.ScheduleBasedTriggerContextResponse Maven / Gradle / Ivy

There is a newer version: 2.72.0
Show newest version
// *** 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.outputs;

import com.pulumi.azurenative.dataprotection.outputs.BackupScheduleResponse;
import com.pulumi.azurenative.dataprotection.outputs.TaggingCriteriaResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;

@CustomType
public final class ScheduleBasedTriggerContextResponse {
    /**
     * @return Type of the specific object - used for deserializing
     * Expected value is 'ScheduleBasedTriggerContext'.
     * 
     */
    private String objectType;
    /**
     * @return Schedule for this backup
     * 
     */
    private BackupScheduleResponse schedule;
    /**
     * @return List of tags that can be applicable for given schedule.
     * 
     */
    private List taggingCriteria;

    private ScheduleBasedTriggerContextResponse() {}
    /**
     * @return Type of the specific object - used for deserializing
     * Expected value is 'ScheduleBasedTriggerContext'.
     * 
     */
    public String objectType() {
        return this.objectType;
    }
    /**
     * @return Schedule for this backup
     * 
     */
    public BackupScheduleResponse schedule() {
        return this.schedule;
    }
    /**
     * @return List of tags that can be applicable for given schedule.
     * 
     */
    public List taggingCriteria() {
        return this.taggingCriteria;
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(ScheduleBasedTriggerContextResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String objectType;
        private BackupScheduleResponse schedule;
        private List taggingCriteria;
        public Builder() {}
        public Builder(ScheduleBasedTriggerContextResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.objectType = defaults.objectType;
    	      this.schedule = defaults.schedule;
    	      this.taggingCriteria = defaults.taggingCriteria;
        }

        @CustomType.Setter
        public Builder objectType(String objectType) {
            if (objectType == null) {
              throw new MissingRequiredPropertyException("ScheduleBasedTriggerContextResponse", "objectType");
            }
            this.objectType = objectType;
            return this;
        }
        @CustomType.Setter
        public Builder schedule(BackupScheduleResponse schedule) {
            if (schedule == null) {
              throw new MissingRequiredPropertyException("ScheduleBasedTriggerContextResponse", "schedule");
            }
            this.schedule = schedule;
            return this;
        }
        @CustomType.Setter
        public Builder taggingCriteria(List taggingCriteria) {
            if (taggingCriteria == null) {
              throw new MissingRequiredPropertyException("ScheduleBasedTriggerContextResponse", "taggingCriteria");
            }
            this.taggingCriteria = taggingCriteria;
            return this;
        }
        public Builder taggingCriteria(TaggingCriteriaResponse... taggingCriteria) {
            return taggingCriteria(List.of(taggingCriteria));
        }
        public ScheduleBasedTriggerContextResponse build() {
            final var _resultValue = new ScheduleBasedTriggerContextResponse();
            _resultValue.objectType = objectType;
            _resultValue.schedule = schedule;
            _resultValue.taggingCriteria = taggingCriteria;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy