com.pulumi.azurenative.solutions.inputs.JitSchedulingPolicyArgs 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.solutions.inputs;
import com.pulumi.azurenative.solutions.enums.JitSchedulingType;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
/**
* The JIT scheduling policies.
*
*/
public final class JitSchedulingPolicyArgs extends com.pulumi.resources.ResourceArgs {
public static final JitSchedulingPolicyArgs Empty = new JitSchedulingPolicyArgs();
@Import(name="duration", required=true)
private Output duration;
public Output duration() {
return this.duration;
}
/**
* The start time of the request.
*
*/
@Import(name="startTime", required=true)
private Output startTime;
/**
* @return The start time of the request.
*
*/
public Output startTime() {
return this.startTime;
}
/**
* The type of JIT schedule.
*
*/
@Import(name="type", required=true)
private Output> type;
/**
* @return The type of JIT schedule.
*
*/
public Output> type() {
return this.type;
}
private JitSchedulingPolicyArgs() {}
private JitSchedulingPolicyArgs(JitSchedulingPolicyArgs $) {
this.duration = $.duration;
this.startTime = $.startTime;
this.type = $.type;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(JitSchedulingPolicyArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private JitSchedulingPolicyArgs $;
public Builder() {
$ = new JitSchedulingPolicyArgs();
}
public Builder(JitSchedulingPolicyArgs defaults) {
$ = new JitSchedulingPolicyArgs(Objects.requireNonNull(defaults));
}
public Builder duration(Output duration) {
$.duration = duration;
return this;
}
public Builder duration(String duration) {
return duration(Output.of(duration));
}
/**
* @param startTime The start time of the request.
*
* @return builder
*
*/
public Builder startTime(Output startTime) {
$.startTime = startTime;
return this;
}
/**
* @param startTime The start time of the request.
*
* @return builder
*
*/
public Builder startTime(String startTime) {
return startTime(Output.of(startTime));
}
/**
* @param type The type of JIT schedule.
*
* @return builder
*
*/
public Builder type(Output> type) {
$.type = type;
return this;
}
/**
* @param type The type of JIT schedule.
*
* @return builder
*
*/
public Builder type(Either type) {
return type(Output.of(type));
}
/**
* @param type The type of JIT schedule.
*
* @return builder
*
*/
public Builder type(String type) {
return type(Either.ofLeft(type));
}
/**
* @param type The type of JIT schedule.
*
* @return builder
*
*/
public Builder type(JitSchedulingType type) {
return type(Either.ofRight(type));
}
public JitSchedulingPolicyArgs build() {
if ($.duration == null) {
throw new MissingRequiredPropertyException("JitSchedulingPolicyArgs", "duration");
}
if ($.startTime == null) {
throw new MissingRequiredPropertyException("JitSchedulingPolicyArgs", "startTime");
}
if ($.type == null) {
throw new MissingRequiredPropertyException("JitSchedulingPolicyArgs", "type");
}
return $;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy