com.pulumi.azurenative.eventhub.outputs.ThrottlingPolicyResponse 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.eventhub.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Double;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class ThrottlingPolicyResponse {
/**
* @return Metric Id on which the throttle limit should be set, MetricId can be discovered by hovering over Metric in the Metrics section of Event Hub Namespace inside Azure Portal
*
*/
private String metricId;
/**
* @return The Name of this policy
*
*/
private String name;
/**
* @return The Threshold limit above which the application group will be throttled.Rate limit is always per second.
*
*/
private Double rateLimitThreshold;
/**
* @return Application Group Policy types
* Expected value is 'ThrottlingPolicy'.
*
*/
private String type;
private ThrottlingPolicyResponse() {}
/**
* @return Metric Id on which the throttle limit should be set, MetricId can be discovered by hovering over Metric in the Metrics section of Event Hub Namespace inside Azure Portal
*
*/
public String metricId() {
return this.metricId;
}
/**
* @return The Name of this policy
*
*/
public String name() {
return this.name;
}
/**
* @return The Threshold limit above which the application group will be throttled.Rate limit is always per second.
*
*/
public Double rateLimitThreshold() {
return this.rateLimitThreshold;
}
/**
* @return Application Group Policy types
* Expected value is 'ThrottlingPolicy'.
*
*/
public String type() {
return this.type;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ThrottlingPolicyResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String metricId;
private String name;
private Double rateLimitThreshold;
private String type;
public Builder() {}
public Builder(ThrottlingPolicyResponse defaults) {
Objects.requireNonNull(defaults);
this.metricId = defaults.metricId;
this.name = defaults.name;
this.rateLimitThreshold = defaults.rateLimitThreshold;
this.type = defaults.type;
}
@CustomType.Setter
public Builder metricId(String metricId) {
if (metricId == null) {
throw new MissingRequiredPropertyException("ThrottlingPolicyResponse", "metricId");
}
this.metricId = metricId;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("ThrottlingPolicyResponse", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder rateLimitThreshold(Double rateLimitThreshold) {
if (rateLimitThreshold == null) {
throw new MissingRequiredPropertyException("ThrottlingPolicyResponse", "rateLimitThreshold");
}
this.rateLimitThreshold = rateLimitThreshold;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("ThrottlingPolicyResponse", "type");
}
this.type = type;
return this;
}
public ThrottlingPolicyResponse build() {
final var _resultValue = new ThrottlingPolicyResponse();
_resultValue.metricId = metricId;
_resultValue.name = name;
_resultValue.rateLimitThreshold = rateLimitThreshold;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy