com.pulumi.azurenative.chaos.inputs.DelayActionArgs 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.chaos.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
/**
* Model that represents a delay action.
*
*/
public final class DelayActionArgs extends com.pulumi.resources.ResourceArgs {
public static final DelayActionArgs Empty = new DelayActionArgs();
/**
* ISO8601 formatted string that represents a duration.
*
*/
@Import(name="duration", required=true)
private Output duration;
/**
* @return ISO8601 formatted string that represents a duration.
*
*/
public Output duration() {
return this.duration;
}
/**
* String that represents a Capability URN.
*
*/
@Import(name="name", required=true)
private Output name;
/**
* @return String that represents a Capability URN.
*
*/
public Output name() {
return this.name;
}
/**
* Enum that discriminates between action models.
* Expected value is 'delay'.
*
*/
@Import(name="type", required=true)
private Output type;
/**
* @return Enum that discriminates between action models.
* Expected value is 'delay'.
*
*/
public Output type() {
return this.type;
}
private DelayActionArgs() {}
private DelayActionArgs(DelayActionArgs $) {
this.duration = $.duration;
this.name = $.name;
this.type = $.type;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(DelayActionArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private DelayActionArgs $;
public Builder() {
$ = new DelayActionArgs();
}
public Builder(DelayActionArgs defaults) {
$ = new DelayActionArgs(Objects.requireNonNull(defaults));
}
/**
* @param duration ISO8601 formatted string that represents a duration.
*
* @return builder
*
*/
public Builder duration(Output duration) {
$.duration = duration;
return this;
}
/**
* @param duration ISO8601 formatted string that represents a duration.
*
* @return builder
*
*/
public Builder duration(String duration) {
return duration(Output.of(duration));
}
/**
* @param name String that represents a Capability URN.
*
* @return builder
*
*/
public Builder name(Output name) {
$.name = name;
return this;
}
/**
* @param name String that represents a Capability URN.
*
* @return builder
*
*/
public Builder name(String name) {
return name(Output.of(name));
}
/**
* @param type Enum that discriminates between action models.
* Expected value is 'delay'.
*
* @return builder
*
*/
public Builder type(Output type) {
$.type = type;
return this;
}
/**
* @param type Enum that discriminates between action models.
* Expected value is 'delay'.
*
* @return builder
*
*/
public Builder type(String type) {
return type(Output.of(type));
}
public DelayActionArgs build() {
if ($.duration == null) {
throw new MissingRequiredPropertyException("DelayActionArgs", "duration");
}
if ($.name == null) {
throw new MissingRequiredPropertyException("DelayActionArgs", "name");
}
$.type = Codegen.stringProp("type").output().arg($.type).require();
return $;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy