com.pulumi.azurenative.automation.outputs.GetJobScheduleResult 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.automation.outputs;
import com.pulumi.azurenative.automation.outputs.RunbookAssociationPropertyResponse;
import com.pulumi.azurenative.automation.outputs.ScheduleAssociationPropertyResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetJobScheduleResult {
/**
* @return Gets the id of the resource.
*
*/
private String id;
/**
* @return Gets or sets the id of job schedule.
*
*/
private @Nullable String jobScheduleId;
/**
* @return Gets the name of the variable.
*
*/
private String name;
/**
* @return Gets or sets the parameters of the job schedule.
*
*/
private @Nullable Map parameters;
/**
* @return Gets or sets the hybrid worker group that the scheduled job should run on.
*
*/
private @Nullable String runOn;
/**
* @return Gets or sets the runbook.
*
*/
private @Nullable RunbookAssociationPropertyResponse runbook;
/**
* @return Gets or sets the schedule.
*
*/
private @Nullable ScheduleAssociationPropertyResponse schedule;
/**
* @return Resource type
*
*/
private String type;
private GetJobScheduleResult() {}
/**
* @return Gets the id of the resource.
*
*/
public String id() {
return this.id;
}
/**
* @return Gets or sets the id of job schedule.
*
*/
public Optional jobScheduleId() {
return Optional.ofNullable(this.jobScheduleId);
}
/**
* @return Gets the name of the variable.
*
*/
public String name() {
return this.name;
}
/**
* @return Gets or sets the parameters of the job schedule.
*
*/
public Map parameters() {
return this.parameters == null ? Map.of() : this.parameters;
}
/**
* @return Gets or sets the hybrid worker group that the scheduled job should run on.
*
*/
public Optional runOn() {
return Optional.ofNullable(this.runOn);
}
/**
* @return Gets or sets the runbook.
*
*/
public Optional runbook() {
return Optional.ofNullable(this.runbook);
}
/**
* @return Gets or sets the schedule.
*
*/
public Optional schedule() {
return Optional.ofNullable(this.schedule);
}
/**
* @return Resource type
*
*/
public String type() {
return this.type;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetJobScheduleResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String id;
private @Nullable String jobScheduleId;
private String name;
private @Nullable Map parameters;
private @Nullable String runOn;
private @Nullable RunbookAssociationPropertyResponse runbook;
private @Nullable ScheduleAssociationPropertyResponse schedule;
private String type;
public Builder() {}
public Builder(GetJobScheduleResult defaults) {
Objects.requireNonNull(defaults);
this.id = defaults.id;
this.jobScheduleId = defaults.jobScheduleId;
this.name = defaults.name;
this.parameters = defaults.parameters;
this.runOn = defaults.runOn;
this.runbook = defaults.runbook;
this.schedule = defaults.schedule;
this.type = defaults.type;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetJobScheduleResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder jobScheduleId(@Nullable String jobScheduleId) {
this.jobScheduleId = jobScheduleId;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetJobScheduleResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder parameters(@Nullable Map parameters) {
this.parameters = parameters;
return this;
}
@CustomType.Setter
public Builder runOn(@Nullable String runOn) {
this.runOn = runOn;
return this;
}
@CustomType.Setter
public Builder runbook(@Nullable RunbookAssociationPropertyResponse runbook) {
this.runbook = runbook;
return this;
}
@CustomType.Setter
public Builder schedule(@Nullable ScheduleAssociationPropertyResponse schedule) {
this.schedule = schedule;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetJobScheduleResult", "type");
}
this.type = type;
return this;
}
public GetJobScheduleResult build() {
final var _resultValue = new GetJobScheduleResult();
_resultValue.id = id;
_resultValue.jobScheduleId = jobScheduleId;
_resultValue.name = name;
_resultValue.parameters = parameters;
_resultValue.runOn = runOn;
_resultValue.runbook = runbook;
_resultValue.schedule = schedule;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy