com.pulumi.aws.servicequotas.outputs.ServiceQuotaUsageMetric Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud 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.aws.servicequotas.outputs;
import com.pulumi.aws.servicequotas.outputs.ServiceQuotaUsageMetricMetricDimension;
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 ServiceQuotaUsageMetric {
/**
* @return The metric dimensions.
*
*/
private @Nullable List metricDimensions;
/**
* @return The name of the metric.
*
*/
private @Nullable String metricName;
/**
* @return The namespace of the metric.
*
*/
private @Nullable String metricNamespace;
/**
* @return The metric statistic that AWS recommend you use when determining quota usage.
*
*/
private @Nullable String metricStatisticRecommendation;
private ServiceQuotaUsageMetric() {}
/**
* @return The metric dimensions.
*
*/
public List metricDimensions() {
return this.metricDimensions == null ? List.of() : this.metricDimensions;
}
/**
* @return The name of the metric.
*
*/
public Optional metricName() {
return Optional.ofNullable(this.metricName);
}
/**
* @return The namespace of the metric.
*
*/
public Optional metricNamespace() {
return Optional.ofNullable(this.metricNamespace);
}
/**
* @return The metric statistic that AWS recommend you use when determining quota usage.
*
*/
public Optional metricStatisticRecommendation() {
return Optional.ofNullable(this.metricStatisticRecommendation);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ServiceQuotaUsageMetric defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List metricDimensions;
private @Nullable String metricName;
private @Nullable String metricNamespace;
private @Nullable String metricStatisticRecommendation;
public Builder() {}
public Builder(ServiceQuotaUsageMetric defaults) {
Objects.requireNonNull(defaults);
this.metricDimensions = defaults.metricDimensions;
this.metricName = defaults.metricName;
this.metricNamespace = defaults.metricNamespace;
this.metricStatisticRecommendation = defaults.metricStatisticRecommendation;
}
@CustomType.Setter
public Builder metricDimensions(@Nullable List metricDimensions) {
this.metricDimensions = metricDimensions;
return this;
}
public Builder metricDimensions(ServiceQuotaUsageMetricMetricDimension... metricDimensions) {
return metricDimensions(List.of(metricDimensions));
}
@CustomType.Setter
public Builder metricName(@Nullable String metricName) {
this.metricName = metricName;
return this;
}
@CustomType.Setter
public Builder metricNamespace(@Nullable String metricNamespace) {
this.metricNamespace = metricNamespace;
return this;
}
@CustomType.Setter
public Builder metricStatisticRecommendation(@Nullable String metricStatisticRecommendation) {
this.metricStatisticRecommendation = metricStatisticRecommendation;
return this;
}
public ServiceQuotaUsageMetric build() {
final var _resultValue = new ServiceQuotaUsageMetric();
_resultValue.metricDimensions = metricDimensions;
_resultValue.metricName = metricName;
_resultValue.metricNamespace = metricNamespace;
_resultValue.metricStatisticRecommendation = metricStatisticRecommendation;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy