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


/**
 * EventSource contains information for an event.
 * 
 */
public final class EventSourceArgs extends com.pulumi.resources.ResourceArgs {

    public static final EventSourceArgs Empty = new EventSourceArgs();

    /**
     * Component from which the event is generated.
     * 
     */
    @Import(name="component")
    private @Nullable Output<String> component;

    /**
     * @return Component from which the event is generated.
     * 
     */
    public Optional<Output<String>> component() {
        return Optional.ofNullable(this.component);
    }

    /**
     * Node name on which the event is generated.
     * 
     */
    @Import(name="host")
    private @Nullable Output<String> host;

    /**
     * @return Node name on which the event is generated.
     * 
     */
    public Optional<Output<String>> host() {
        return Optional.ofNullable(this.host);
    }

    private EventSourceArgs() {}

    private EventSourceArgs(EventSourceArgs $) {
        this.component = $.component;
        this.host = $.host;
    }

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

    public static final class Builder {
        private EventSourceArgs $;

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

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

        /**
         * @param component Component from which the event is generated.
         * 
         * @return builder
         * 
         */
        public Builder component(@Nullable Output<String> component) {
            $.component = component;
            return this;
        }

        /**
         * @param component Component from which the event is generated.
         * 
         * @return builder
         * 
         */
        public Builder component(String component) {
            return component(Output.of(component));
        }

        /**
         * @param host Node name on which the event is generated.
         * 
         * @return builder
         * 
         */
        public Builder host(@Nullable Output<String> host) {
            $.host = host;
            return this;
        }

        /**
         * @param host Node name on which the event is generated.
         * 
         * @return builder
         * 
         */
        public Builder host(String host) {
            return host(Output.of(host));
        }

        public EventSourceArgs build() {
            return $;
        }
    }

}
