com.pulumi.kubernetes.autoscaling.v2beta2.outputs.ObjectMetricStatus 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.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import com.pulumi.kubernetes.autoscaling.v2beta2.outputs.CrossVersionObjectReference;
import com.pulumi.kubernetes.autoscaling.v2beta2.outputs.MetricIdentifier;
import com.pulumi.kubernetes.autoscaling.v2beta2.outputs.MetricValueStatus;
import java.util.Objects;
@CustomType
public final class ObjectMetricStatus {
/**
* @return current contains the current value for the given metric
*
*/
private MetricValueStatus current;
private CrossVersionObjectReference describedObject;
/**
* @return metric identifies the target metric by name and selector
*
*/
private MetricIdentifier metric;
private ObjectMetricStatus() {}
/**
* @return current contains the current value for the given metric
*
*/
public MetricValueStatus current() {
return this.current;
}
public CrossVersionObjectReference describedObject() {
return this.describedObject;
}
/**
* @return metric identifies the target metric by name and selector
*
*/
public MetricIdentifier metric() {
return this.metric;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ObjectMetricStatus defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private MetricValueStatus current;
private CrossVersionObjectReference describedObject;
private MetricIdentifier metric;
public Builder() {}
public Builder(ObjectMetricStatus defaults) {
Objects.requireNonNull(defaults);
this.current = defaults.current;
this.describedObject = defaults.describedObject;
this.metric = defaults.metric;
}
@CustomType.Setter
public Builder current(MetricValueStatus current) {
if (current == null) {
throw new MissingRequiredPropertyException("ObjectMetricStatus", "current");
}
this.current = current;
return this;
}
@CustomType.Setter
public Builder describedObject(CrossVersionObjectReference describedObject) {
if (describedObject == null) {
throw new MissingRequiredPropertyException("ObjectMetricStatus", "describedObject");
}
this.describedObject = describedObject;
return this;
}
@CustomType.Setter
public Builder metric(MetricIdentifier metric) {
if (metric == null) {
throw new MissingRequiredPropertyException("ObjectMetricStatus", "metric");
}
this.metric = metric;
return this;
}
public ObjectMetricStatus build() {
final var _resultValue = new ObjectMetricStatus();
_resultValue.current = current;
_resultValue.describedObject = describedObject;
_resultValue.metric = metric;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy