com.pulumi.azurenative.providerhub.outputs.ThrottlingRuleResponse 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.providerhub.outputs;
import com.pulumi.azurenative.providerhub.outputs.ThrottlingMetricResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;
@CustomType
public final class ThrottlingRuleResponse {
private String action;
private List metrics;
private @Nullable List requiredFeatures;
private ThrottlingRuleResponse() {}
public String action() {
return this.action;
}
public List metrics() {
return this.metrics;
}
public List requiredFeatures() {
return this.requiredFeatures == null ? List.of() : this.requiredFeatures;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ThrottlingRuleResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String action;
private List metrics;
private @Nullable List requiredFeatures;
public Builder() {}
public Builder(ThrottlingRuleResponse defaults) {
Objects.requireNonNull(defaults);
this.action = defaults.action;
this.metrics = defaults.metrics;
this.requiredFeatures = defaults.requiredFeatures;
}
@CustomType.Setter
public Builder action(String action) {
if (action == null) {
throw new MissingRequiredPropertyException("ThrottlingRuleResponse", "action");
}
this.action = action;
return this;
}
@CustomType.Setter
public Builder metrics(List metrics) {
if (metrics == null) {
throw new MissingRequiredPropertyException("ThrottlingRuleResponse", "metrics");
}
this.metrics = metrics;
return this;
}
public Builder metrics(ThrottlingMetricResponse... metrics) {
return metrics(List.of(metrics));
}
@CustomType.Setter
public Builder requiredFeatures(@Nullable List requiredFeatures) {
this.requiredFeatures = requiredFeatures;
return this;
}
public Builder requiredFeatures(String... requiredFeatures) {
return requiredFeatures(List.of(requiredFeatures));
}
public ThrottlingRuleResponse build() {
final var _resultValue = new ThrottlingRuleResponse();
_resultValue.action = action;
_resultValue.metrics = metrics;
_resultValue.requiredFeatures = requiredFeatures;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy