com.pulumi.kubernetes.autoscaling.v2.outputs.PodsMetricSourcePatch 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.MetricIdentifierPatch;
import com.pulumi.kubernetes.autoscaling.v2.outputs.MetricTargetPatch;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class PodsMetricSourcePatch {
/**
* @return metric identifies the target metric by name and selector
*
*/
private @Nullable MetricIdentifierPatch metric;
/**
* @return target specifies the target value for the given metric
*
*/
private @Nullable MetricTargetPatch target;
private PodsMetricSourcePatch() {}
/**
* @return metric identifies the target metric by name and selector
*
*/
public Optional metric() {
return Optional.ofNullable(this.metric);
}
/**
* @return target specifies the target value for the given metric
*
*/
public Optional target() {
return Optional.ofNullable(this.target);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(PodsMetricSourcePatch defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable MetricIdentifierPatch metric;
private @Nullable MetricTargetPatch target;
public Builder() {}
public Builder(PodsMetricSourcePatch defaults) {
Objects.requireNonNull(defaults);
this.metric = defaults.metric;
this.target = defaults.target;
}
@CustomType.Setter
public Builder metric(@Nullable MetricIdentifierPatch metric) {
this.metric = metric;
return this;
}
@CustomType.Setter
public Builder target(@Nullable MetricTargetPatch target) {
this.target = target;
return this;
}
public PodsMetricSourcePatch build() {
final var o = new PodsMetricSourcePatch();
o.metric = metric;
o.target = target;
return o;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy