com.pulumi.kubernetes.autoscaling.v2beta2.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.v2beta2.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.kubernetes.autoscaling.v2beta2.inputs.CrossVersionObjectReferenceArgs;
import com.pulumi.kubernetes.autoscaling.v2beta2.inputs.MetricIdentifierArgs;
import com.pulumi.kubernetes.autoscaling.v2beta2.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;
}
@Import(name="describedObject", required=true)
private Output describedObject;
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));
}
public Builder describedObject(Output describedObject) {
$.describedObject = describedObject;
return this;
}
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() {
$.current = Objects.requireNonNull($.current, "expected parameter 'current' to be non-null");
$.describedObject = Objects.requireNonNull($.describedObject, "expected parameter 'describedObject' to be non-null");
$.metric = Objects.requireNonNull($.metric, "expected parameter 'metric' to be non-null");
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy