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

com.pulumi.azurenative.securityinsights.inputs.MetadataSourceArgs Maven / Gradle / Ivy

There is a newer version: 2.72.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.azurenative.securityinsights.inputs;

import com.pulumi.azurenative.securityinsights.enums.SourceKind;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * The original source of the content item, where it comes from.
 * 
 */
public final class MetadataSourceArgs extends com.pulumi.resources.ResourceArgs {

    public static final MetadataSourceArgs Empty = new MetadataSourceArgs();

    /**
     * Source type of the content
     * 
     */
    @Import(name="kind", required=true)
    private Output> kind;

    /**
     * @return Source type of the content
     * 
     */
    public Output> kind() {
        return this.kind;
    }

    /**
     * Name of the content source.  The repo name, solution name, LA workspace name etc.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Name of the content source.  The repo name, solution name, LA workspace name etc.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * ID of the content source.  The solution ID, workspace ID, etc
     * 
     */
    @Import(name="sourceId")
    private @Nullable Output sourceId;

    /**
     * @return ID of the content source.  The solution ID, workspace ID, etc
     * 
     */
    public Optional> sourceId() {
        return Optional.ofNullable(this.sourceId);
    }

    private MetadataSourceArgs() {}

    private MetadataSourceArgs(MetadataSourceArgs $) {
        this.kind = $.kind;
        this.name = $.name;
        this.sourceId = $.sourceId;
    }

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

    public static final class Builder {
        private MetadataSourceArgs $;

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

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

        /**
         * @param kind Source type of the content
         * 
         * @return builder
         * 
         */
        public Builder kind(Output> kind) {
            $.kind = kind;
            return this;
        }

        /**
         * @param kind Source type of the content
         * 
         * @return builder
         * 
         */
        public Builder kind(Either kind) {
            return kind(Output.of(kind));
        }

        /**
         * @param kind Source type of the content
         * 
         * @return builder
         * 
         */
        public Builder kind(String kind) {
            return kind(Either.ofLeft(kind));
        }

        /**
         * @param kind Source type of the content
         * 
         * @return builder
         * 
         */
        public Builder kind(SourceKind kind) {
            return kind(Either.ofRight(kind));
        }

        /**
         * @param name Name of the content source.  The repo name, solution name, LA workspace name etc.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Name of the content source.  The repo name, solution name, LA workspace name etc.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param sourceId ID of the content source.  The solution ID, workspace ID, etc
         * 
         * @return builder
         * 
         */
        public Builder sourceId(@Nullable Output sourceId) {
            $.sourceId = sourceId;
            return this;
        }

        /**
         * @param sourceId ID of the content source.  The solution ID, workspace ID, etc
         * 
         * @return builder
         * 
         */
        public Builder sourceId(String sourceId) {
            return sourceId(Output.of(sourceId));
        }

        public MetadataSourceArgs build() {
            if ($.kind == null) {
                throw new MissingRequiredPropertyException("MetadataSourceArgs", "kind");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy