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

com.pulumi.alicloud.cs.inputs.EdgeKubernetesLogConfigArgs Maven / Gradle / Ivy

There is a newer version: 3.63.0-alpha.1727424957
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.alicloud.cs.inputs;

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;


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

    public static final EdgeKubernetesLogConfigArgs Empty = new EdgeKubernetesLogConfigArgs();

    /**
     * Log Service project name, cluster logs will output to this project.
     * 
     */
    @Import(name="project")
    private @Nullable Output project;

    /**
     * @return Log Service project name, cluster logs will output to this project.
     * 
     */
    public Optional> project() {
        return Optional.ofNullable(this.project);
    }

    /**
     * Type of collecting logs, only `SLS` are supported currently.
     * 
     */
    @Import(name="type", required=true)
    private Output type;

    /**
     * @return Type of collecting logs, only `SLS` are supported currently.
     * 
     */
    public Output type() {
        return this.type;
    }

    private EdgeKubernetesLogConfigArgs() {}

    private EdgeKubernetesLogConfigArgs(EdgeKubernetesLogConfigArgs $) {
        this.project = $.project;
        this.type = $.type;
    }

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

    public static final class Builder {
        private EdgeKubernetesLogConfigArgs $;

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

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

        /**
         * @param project Log Service project name, cluster logs will output to this project.
         * 
         * @return builder
         * 
         */
        public Builder project(@Nullable Output project) {
            $.project = project;
            return this;
        }

        /**
         * @param project Log Service project name, cluster logs will output to this project.
         * 
         * @return builder
         * 
         */
        public Builder project(String project) {
            return project(Output.of(project));
        }

        /**
         * @param type Type of collecting logs, only `SLS` are supported currently.
         * 
         * @return builder
         * 
         */
        public Builder type(Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type Type of collecting logs, only `SLS` are supported currently.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy