com.pulumi.kubernetes.autoscaling.v2.outputs.ContainerResourceMetricStatusPatch 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.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.kubernetes.autoscaling.v2.outputs.MetricValueStatusPatch;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ContainerResourceMetricStatusPatch {
/**
* @return container is the name of the container in the pods of the scaling target
*
*/
private @Nullable String container;
/**
* @return current contains the current value for the given metric
*
*/
private @Nullable MetricValueStatusPatch current;
/**
* @return name is the name of the resource in question.
*
*/
private @Nullable String name;
private ContainerResourceMetricStatusPatch() {}
/**
* @return container is the name of the container in the pods of the scaling target
*
*/
public Optional container() {
return Optional.ofNullable(this.container);
}
/**
* @return current contains the current value for the given metric
*
*/
public Optional current() {
return Optional.ofNullable(this.current);
}
/**
* @return name is the name of the resource in question.
*
*/
public Optional name() {
return Optional.ofNullable(this.name);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ContainerResourceMetricStatusPatch defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String container;
private @Nullable MetricValueStatusPatch current;
private @Nullable String name;
public Builder() {}
public Builder(ContainerResourceMetricStatusPatch defaults) {
Objects.requireNonNull(defaults);
this.container = defaults.container;
this.current = defaults.current;
this.name = defaults.name;
}
@CustomType.Setter
public Builder container(@Nullable String container) {
this.container = container;
return this;
}
@CustomType.Setter
public Builder current(@Nullable MetricValueStatusPatch current) {
this.current = current;
return this;
}
@CustomType.Setter
public Builder name(@Nullable String name) {
this.name = name;
return this;
}
public ContainerResourceMetricStatusPatch build() {
final var _resultValue = new ContainerResourceMetricStatusPatch();
_resultValue.container = container;
_resultValue.current = current;
_resultValue.name = name;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy