All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.kubernetes.autoscaling.v2beta2.outputs.ContainerResourceMetricSource Maven / Gradle / Ivy

There is a newer version: 4.19.0
Show newest version
// *** 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.kubernetes.autoscaling.v2beta2.outputs.MetricTarget;
import java.lang.String;
import java.util.Objects;

@CustomType
public final class ContainerResourceMetricSource {
    /**
     * @return container is the name of the container in the pods of the scaling target
     * 
     */
    private String container;
    /**
     * @return name is the name of the resource in question.
     * 
     */
    private String name;
    /**
     * @return target specifies the target value for the given metric
     * 
     */
    private MetricTarget target;

    private ContainerResourceMetricSource() {}
    /**
     * @return container is the name of the container in the pods of the scaling target
     * 
     */
    public String container() {
        return this.container;
    }
    /**
     * @return name is the name of the resource in question.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return target specifies the target value for the given metric
     * 
     */
    public MetricTarget target() {
        return this.target;
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(ContainerResourceMetricSource defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String container;
        private String name;
        private MetricTarget target;
        public Builder() {}
        public Builder(ContainerResourceMetricSource defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.container = defaults.container;
    	      this.name = defaults.name;
    	      this.target = defaults.target;
        }

        @CustomType.Setter
        public Builder container(String container) {
            this.container = Objects.requireNonNull(container);
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            this.name = Objects.requireNonNull(name);
            return this;
        }
        @CustomType.Setter
        public Builder target(MetricTarget target) {
            this.target = Objects.requireNonNull(target);
            return this;
        }
        public ContainerResourceMetricSource build() {
            final var o = new ContainerResourceMetricSource();
            o.container = container;
            o.name = name;
            o.target = target;
            return o;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy