com.pulumi.kubernetes.autoscaling.v2.inputs.ObjectMetricStatusArgs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kubernetes Show documentation
Show all versions of kubernetes Show documentation
A Pulumi package for creating and managing Kubernetes 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.kubernetes.autoscaling.v2.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import com.pulumi.kubernetes.autoscaling.v2.inputs.CrossVersionObjectReferenceArgs;
import com.pulumi.kubernetes.autoscaling.v2.inputs.MetricIdentifierArgs;
import com.pulumi.kubernetes.autoscaling.v2.inputs.MetricValueStatusArgs;
import java.util.Objects;
/**
* ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).
*
*/
public final class ObjectMetricStatusArgs extends com.pulumi.resources.ResourceArgs {
public static final ObjectMetricStatusArgs Empty = new ObjectMetricStatusArgs();
/**
* current contains the current value for the given metric
*
*/
@Import(name="current", required=true)
private Output current;
/**
* @return current contains the current value for the given metric
*
*/
public Output current() {
return this.current;
}
/**
* DescribedObject specifies the descriptions of a object,such as kind,name apiVersion
*
*/
@Import(name="describedObject", required=true)
private Output describedObject;
/**
* @return DescribedObject specifies the descriptions of a object,such as kind,name apiVersion
*
*/
public Output describedObject() {
return this.describedObject;
}
/**
* metric identifies the target metric by name and selector
*
*/
@Import(name="metric", required=true)
private Output metric;
/**
* @return metric identifies the target metric by name and selector
*
*/
public Output metric() {
return this.metric;
}
private ObjectMetricStatusArgs() {}
private ObjectMetricStatusArgs(ObjectMetricStatusArgs $) {
this.current = $.current;
this.describedObject = $.describedObject;
this.metric = $.metric;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ObjectMetricStatusArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private ObjectMetricStatusArgs $;
public Builder() {
$ = new ObjectMetricStatusArgs();
}
public Builder(ObjectMetricStatusArgs defaults) {
$ = new ObjectMetricStatusArgs(Objects.requireNonNull(defaults));
}
/**
* @param current current contains the current value for the given metric
*
* @return builder
*
*/
public Builder current(Output current) {
$.current = current;
return this;
}
/**
* @param current current contains the current value for the given metric
*
* @return builder
*
*/
public Builder current(MetricValueStatusArgs current) {
return current(Output.of(current));
}
/**
* @param describedObject DescribedObject specifies the descriptions of a object,such as kind,name apiVersion
*
* @return builder
*
*/
public Builder describedObject(Output describedObject) {
$.describedObject = describedObject;
return this;
}
/**
* @param describedObject DescribedObject specifies the descriptions of a object,such as kind,name apiVersion
*
* @return builder
*
*/
public Builder describedObject(CrossVersionObjectReferenceArgs describedObject) {
return describedObject(Output.of(describedObject));
}
/**
* @param metric metric identifies the target metric by name and selector
*
* @return builder
*
*/
public Builder metric(Output metric) {
$.metric = metric;
return this;
}
/**
* @param metric metric identifies the target metric by name and selector
*
* @return builder
*
*/
public Builder metric(MetricIdentifierArgs metric) {
return metric(Output.of(metric));
}
public ObjectMetricStatusArgs build() {
if ($.current == null) {
throw new MissingRequiredPropertyException("ObjectMetricStatusArgs", "current");
}
if ($.describedObject == null) {
throw new MissingRequiredPropertyException("ObjectMetricStatusArgs", "describedObject");
}
if ($.metric == null) {
throw new MissingRequiredPropertyException("ObjectMetricStatusArgs", "metric");
}
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy