com.pulumi.azurenative.chaos.inputs.DiscreteActionArgs 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.azurenative.chaos.inputs.KeyValuePairArgs;
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.List;
import java.util.Objects;
/**
* Model that represents a discrete action.
*
*/
public final class DiscreteActionArgs extends com.pulumi.resources.ResourceArgs {
public static final DiscreteActionArgs Empty = new DiscreteActionArgs();
/**
* 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;
}
/**
* List of key value pairs.
*
*/
@Import(name="parameters", required=true)
private Output> parameters;
/**
* @return List of key value pairs.
*
*/
public Output> parameters() {
return this.parameters;
}
/**
* String that represents a selector.
*
*/
@Import(name="selectorId", required=true)
private Output selectorId;
/**
* @return String that represents a selector.
*
*/
public Output selectorId() {
return this.selectorId;
}
/**
* Enum that discriminates between action models.
* Expected value is 'discrete'.
*
*/
@Import(name="type", required=true)
private Output type;
/**
* @return Enum that discriminates between action models.
* Expected value is 'discrete'.
*
*/
public Output type() {
return this.type;
}
private DiscreteActionArgs() {}
private DiscreteActionArgs(DiscreteActionArgs $) {
this.name = $.name;
this.parameters = $.parameters;
this.selectorId = $.selectorId;
this.type = $.type;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(DiscreteActionArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private DiscreteActionArgs $;
public Builder() {
$ = new DiscreteActionArgs();
}
public Builder(DiscreteActionArgs defaults) {
$ = new DiscreteActionArgs(Objects.requireNonNull(defaults));
}
/**
* @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 parameters List of key value pairs.
*
* @return builder
*
*/
public Builder parameters(Output> parameters) {
$.parameters = parameters;
return this;
}
/**
* @param parameters List of key value pairs.
*
* @return builder
*
*/
public Builder parameters(List parameters) {
return parameters(Output.of(parameters));
}
/**
* @param parameters List of key value pairs.
*
* @return builder
*
*/
public Builder parameters(KeyValuePairArgs... parameters) {
return parameters(List.of(parameters));
}
/**
* @param selectorId String that represents a selector.
*
* @return builder
*
*/
public Builder selectorId(Output selectorId) {
$.selectorId = selectorId;
return this;
}
/**
* @param selectorId String that represents a selector.
*
* @return builder
*
*/
public Builder selectorId(String selectorId) {
return selectorId(Output.of(selectorId));
}
/**
* @param type Enum that discriminates between action models.
* Expected value is 'discrete'.
*
* @return builder
*
*/
public Builder type(Output type) {
$.type = type;
return this;
}
/**
* @param type Enum that discriminates between action models.
* Expected value is 'discrete'.
*
* @return builder
*
*/
public Builder type(String type) {
return type(Output.of(type));
}
public DiscreteActionArgs build() {
if ($.name == null) {
throw new MissingRequiredPropertyException("DiscreteActionArgs", "name");
}
if ($.parameters == null) {
throw new MissingRequiredPropertyException("DiscreteActionArgs", "parameters");
}
if ($.selectorId == null) {
throw new MissingRequiredPropertyException("DiscreteActionArgs", "selectorId");
}
$.type = Codegen.stringProp("type").output().arg($.type).require();
return $;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy