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

com.pulumi.okta.LogStreamArgs Maven / Gradle / Ivy

There is a newer version: 4.13.0-alpha.1732774005
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.okta;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import com.pulumi.okta.inputs.LogStreamSettingsArgs;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class LogStreamArgs extends com.pulumi.resources.ResourceArgs {

    public static final LogStreamArgs Empty = new LogStreamArgs();

    /**
     * Unique name for the Log Stream object
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Unique name for the Log Stream object
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    @Import(name="settings")
    private @Nullable Output settings;

    public Optional> settings() {
        return Optional.ofNullable(this.settings);
    }

    /**
     * Stream status
     * 
     */
    @Import(name="status")
    private @Nullable Output status;

    /**
     * @return Stream status
     * 
     */
    public Optional> status() {
        return Optional.ofNullable(this.status);
    }

    /**
     * Streaming provider used - 'aws*eventbridge' or 'splunk*cloud_logstreaming'
     * 
     */
    @Import(name="type", required=true)
    private Output type;

    /**
     * @return Streaming provider used - 'aws*eventbridge' or 'splunk*cloud_logstreaming'
     * 
     */
    public Output type() {
        return this.type;
    }

    private LogStreamArgs() {}

    private LogStreamArgs(LogStreamArgs $) {
        this.name = $.name;
        this.settings = $.settings;
        this.status = $.status;
        this.type = $.type;
    }

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

    public static final class Builder {
        private LogStreamArgs $;

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

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

        /**
         * @param name Unique name for the Log Stream object
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Unique name for the Log Stream object
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        public Builder settings(@Nullable Output settings) {
            $.settings = settings;
            return this;
        }

        public Builder settings(LogStreamSettingsArgs settings) {
            return settings(Output.of(settings));
        }

        /**
         * @param status Stream status
         * 
         * @return builder
         * 
         */
        public Builder status(@Nullable Output status) {
            $.status = status;
            return this;
        }

        /**
         * @param status Stream status
         * 
         * @return builder
         * 
         */
        public Builder status(String status) {
            return status(Output.of(status));
        }

        /**
         * @param type Streaming provider used - 'aws*eventbridge' or 'splunk*cloud_logstreaming'
         * 
         * @return builder
         * 
         */
        public Builder type(Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type Streaming provider used - 'aws*eventbridge' or 'splunk*cloud_logstreaming'
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy