
com.pulumi.azurenative.machinelearningservices.outputs.ComputeStartStopScheduleResponse Maven / Gradle / Ivy
// *** 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.machinelearningservices.outputs;
import com.pulumi.azurenative.machinelearningservices.outputs.CronResponse;
import com.pulumi.azurenative.machinelearningservices.outputs.RecurrenceResponse;
import com.pulumi.azurenative.machinelearningservices.outputs.ScheduleBaseResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ComputeStartStopScheduleResponse {
/**
* @return [Required] The compute power action.
*
*/
private @Nullable String action;
/**
* @return Required if triggerType is Cron.
*
*/
private @Nullable CronResponse cron;
/**
* @return A system assigned id for the schedule.
*
*/
private String id;
/**
* @return The current deployment state of schedule.
*
*/
private String provisioningStatus;
/**
* @return Required if triggerType is Recurrence.
*
*/
private @Nullable RecurrenceResponse recurrence;
/**
* @return [Deprecated] Not used any more.
*
*/
private @Nullable ScheduleBaseResponse schedule;
/**
* @return Is the schedule enabled or disabled?
*
*/
private @Nullable String status;
/**
* @return [Required] The schedule trigger type.
*
*/
private @Nullable String triggerType;
private ComputeStartStopScheduleResponse() {}
/**
* @return [Required] The compute power action.
*
*/
public Optional action() {
return Optional.ofNullable(this.action);
}
/**
* @return Required if triggerType is Cron.
*
*/
public Optional cron() {
return Optional.ofNullable(this.cron);
}
/**
* @return A system assigned id for the schedule.
*
*/
public String id() {
return this.id;
}
/**
* @return The current deployment state of schedule.
*
*/
public String provisioningStatus() {
return this.provisioningStatus;
}
/**
* @return Required if triggerType is Recurrence.
*
*/
public Optional recurrence() {
return Optional.ofNullable(this.recurrence);
}
/**
* @return [Deprecated] Not used any more.
*
*/
public Optional schedule() {
return Optional.ofNullable(this.schedule);
}
/**
* @return Is the schedule enabled or disabled?
*
*/
public Optional status() {
return Optional.ofNullable(this.status);
}
/**
* @return [Required] The schedule trigger type.
*
*/
public Optional triggerType() {
return Optional.ofNullable(this.triggerType);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ComputeStartStopScheduleResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String action;
private @Nullable CronResponse cron;
private String id;
private String provisioningStatus;
private @Nullable RecurrenceResponse recurrence;
private @Nullable ScheduleBaseResponse schedule;
private @Nullable String status;
private @Nullable String triggerType;
public Builder() {}
public Builder(ComputeStartStopScheduleResponse defaults) {
Objects.requireNonNull(defaults);
this.action = defaults.action;
this.cron = defaults.cron;
this.id = defaults.id;
this.provisioningStatus = defaults.provisioningStatus;
this.recurrence = defaults.recurrence;
this.schedule = defaults.schedule;
this.status = defaults.status;
this.triggerType = defaults.triggerType;
}
@CustomType.Setter
public Builder action(@Nullable String action) {
this.action = action;
return this;
}
@CustomType.Setter
public Builder cron(@Nullable CronResponse cron) {
this.cron = cron;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("ComputeStartStopScheduleResponse", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder provisioningStatus(String provisioningStatus) {
if (provisioningStatus == null) {
throw new MissingRequiredPropertyException("ComputeStartStopScheduleResponse", "provisioningStatus");
}
this.provisioningStatus = provisioningStatus;
return this;
}
@CustomType.Setter
public Builder recurrence(@Nullable RecurrenceResponse recurrence) {
this.recurrence = recurrence;
return this;
}
@CustomType.Setter
public Builder schedule(@Nullable ScheduleBaseResponse schedule) {
this.schedule = schedule;
return this;
}
@CustomType.Setter
public Builder status(@Nullable String status) {
this.status = status;
return this;
}
@CustomType.Setter
public Builder triggerType(@Nullable String triggerType) {
this.triggerType = triggerType;
return this;
}
public ComputeStartStopScheduleResponse build() {
final var _resultValue = new ComputeStartStopScheduleResponse();
_resultValue.action = action;
_resultValue.cron = cron;
_resultValue.id = id;
_resultValue.provisioningStatus = provisioningStatus;
_resultValue.recurrence = recurrence;
_resultValue.schedule = schedule;
_resultValue.status = status;
_resultValue.triggerType = triggerType;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy