// *** 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.inputs;

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


/**
 * HTTPHeader describes a custom header to be used in HTTP probes
 * 
 */
public final class HTTPHeaderPatchArgs extends com.pulumi.resources.ResourceArgs {

    public static final HTTPHeaderPatchArgs Empty = new HTTPHeaderPatchArgs();

    /**
     * The header field name. This will be canonicalized upon output, so case-variant names will be understood as the same header.
     * 
     */
    @Import(name="name")
    private @Nullable Output<String> name;

    /**
     * @return The header field name. This will be canonicalized upon output, so case-variant names will be understood as the same header.
     * 
     */
    public Optional<Output<String>> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The header field value
     * 
     */
    @Import(name="value")
    private @Nullable Output<String> value;

    /**
     * @return The header field value
     * 
     */
    public Optional<Output<String>> value() {
        return Optional.ofNullable(this.value);
    }

    private HTTPHeaderPatchArgs() {}

    private HTTPHeaderPatchArgs(HTTPHeaderPatchArgs $) {
        this.name = $.name;
        this.value = $.value;
    }

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

    public static final class Builder {
        private HTTPHeaderPatchArgs $;

        public Builder() {
            $ = new HTTPHeaderPatchArgs();
        }

        public Builder(HTTPHeaderPatchArgs defaults) {
            $ = new HTTPHeaderPatchArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param name The header field name. This will be canonicalized upon output, so case-variant names will be understood as the same header.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output<String> name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The header field name. This will be canonicalized upon output, so case-variant names will be understood as the same header.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param value The header field value
         * 
         * @return builder
         * 
         */
        public Builder value(@Nullable Output<String> value) {
            $.value = value;
            return this;
        }

        /**
         * @param value The header field value
         * 
         * @return builder
         * 
         */
        public Builder value(String value) {
            return value(Output.of(value));
        }

        public HTTPHeaderPatchArgs build() {
            return $;
        }
    }

}
