
com.pulumi.azurenative.containerregistry.outputs.TimerTriggerResponse 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.containerregistry.outputs;
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 TimerTriggerResponse {
/**
* @return The name of the trigger.
*
*/
private String name;
/**
* @return The CRON expression for the task schedule
*
*/
private String schedule;
/**
* @return The current status of trigger.
*
*/
private @Nullable String status;
private TimerTriggerResponse() {}
/**
* @return The name of the trigger.
*
*/
public String name() {
return this.name;
}
/**
* @return The CRON expression for the task schedule
*
*/
public String schedule() {
return this.schedule;
}
/**
* @return The current status of trigger.
*
*/
public Optional status() {
return Optional.ofNullable(this.status);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(TimerTriggerResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String name;
private String schedule;
private @Nullable String status;
public Builder() {}
public Builder(TimerTriggerResponse defaults) {
Objects.requireNonNull(defaults);
this.name = defaults.name;
this.schedule = defaults.schedule;
this.status = defaults.status;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("TimerTriggerResponse", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder schedule(String schedule) {
if (schedule == null) {
throw new MissingRequiredPropertyException("TimerTriggerResponse", "schedule");
}
this.schedule = schedule;
return this;
}
@CustomType.Setter
public Builder status(@Nullable String status) {
this.status = status;
return this;
}
public TimerTriggerResponse build() {
final var _resultValue = new TimerTriggerResponse();
_resultValue.name = name;
_resultValue.schedule = schedule;
_resultValue.status = status;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy