// *** 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.azure.sentinel.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 MetadataSource {
    /**
     * @return The id of the content source, the solution ID, Log Analytics Workspace name etc.
     * 
     */
    private @Nullable String id;
    /**
     * @return The kind of the content source. Possible values are `LocalWorkspace`, `Communtity`, `Solution` and `SourceRepository`.
     * 
     */
    private String kind;
    /**
     * @return The name of the content source, repo name, solution name, Log Analytics Workspace name, etc.
     * 
     */
    private @Nullable String name;

    private MetadataSource() {}
    /**
     * @return The id of the content source, the solution ID, Log Analytics Workspace name etc.
     * 
     */
    public Optional<String> id() {
        return Optional.ofNullable(this.id);
    }
    /**
     * @return The kind of the content source. Possible values are `LocalWorkspace`, `Communtity`, `Solution` and `SourceRepository`.
     * 
     */
    public String kind() {
        return this.kind;
    }
    /**
     * @return The name of the content source, repo name, solution name, Log Analytics Workspace name, etc.
     * 
     */
    public Optional<String> name() {
        return Optional.ofNullable(this.name);
    }

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

    public static Builder builder(MetadataSource defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String id;
        private String kind;
        private @Nullable String name;
        public Builder() {}
        public Builder(MetadataSource defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.id = defaults.id;
    	      this.kind = defaults.kind;
    	      this.name = defaults.name;
        }

        @CustomType.Setter
        public Builder id(@Nullable String id) {
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder kind(String kind) {
            this.kind = Objects.requireNonNull(kind);
            return this;
        }
        @CustomType.Setter
        public Builder name(@Nullable String name) {
            this.name = name;
            return this;
        }
        public MetadataSource build() {
            final var o = new MetadataSource();
            o.id = id;
            o.kind = kind;
            o.name = name;
            return o;
        }
    }
}
