com.pulumi.azurenative.marketplace.outputs.RuleResponse 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.marketplace.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class RuleResponse {
/**
* @return Rule type
*
*/
private @Nullable String type;
private @Nullable List value;
private RuleResponse() {}
/**
* @return Rule type
*
*/
public Optional type() {
return Optional.ofNullable(this.type);
}
public List value() {
return this.value == null ? List.of() : this.value;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(RuleResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String type;
private @Nullable List value;
public Builder() {}
public Builder(RuleResponse defaults) {
Objects.requireNonNull(defaults);
this.type = defaults.type;
this.value = defaults.value;
}
@CustomType.Setter
public Builder type(@Nullable String type) {
this.type = type;
return this;
}
@CustomType.Setter
public Builder value(@Nullable List value) {
this.value = value;
return this;
}
public Builder value(String... value) {
return value(List.of(value));
}
public RuleResponse build() {
final var _resultValue = new RuleResponse();
_resultValue.type = type;
_resultValue.value = value;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy