// *** 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.core.v1.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class ResourceFieldSelectorPatch {
    /**
     * @return Container name: required for volumes, optional for env vars
     * 
     */
    private @Nullable String containerName;
    /**
     * @return Specifies the output format of the exposed resources, defaults to &#34;1&#34;
     * 
     */
    private @Nullable String divisor;
    /**
     * @return Required: resource to select
     * 
     */
    private @Nullable String resource;

    private ResourceFieldSelectorPatch() {}
    /**
     * @return Container name: required for volumes, optional for env vars
     * 
     */
    public Optional<String> containerName() {
        return Optional.ofNullable(this.containerName);
    }
    /**
     * @return Specifies the output format of the exposed resources, defaults to &#34;1&#34;
     * 
     */
    public Optional<String> divisor() {
        return Optional.ofNullable(this.divisor);
    }
    /**
     * @return Required: resource to select
     * 
     */
    public Optional<String> resource() {
        return Optional.ofNullable(this.resource);
    }

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

    public static Builder builder(ResourceFieldSelectorPatch defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String containerName;
        private @Nullable String divisor;
        private @Nullable String resource;
        public Builder() {}
        public Builder(ResourceFieldSelectorPatch defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.containerName = defaults.containerName;
    	      this.divisor = defaults.divisor;
    	      this.resource = defaults.resource;
        }

        @CustomType.Setter
        public Builder containerName(@Nullable String containerName) {
            this.containerName = containerName;
            return this;
        }
        @CustomType.Setter
        public Builder divisor(@Nullable String divisor) {
            this.divisor = divisor;
            return this;
        }
        @CustomType.Setter
        public Builder resource(@Nullable String resource) {
            this.resource = resource;
            return this;
        }
        public ResourceFieldSelectorPatch build() {
            final var o = new ResourceFieldSelectorPatch();
            o.containerName = containerName;
            o.divisor = divisor;
            o.resource = resource;
            return o;
        }
    }
}
