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

com.pulumi.aws.cloudwatch.inputs.GetLogGroupPlainArgs Maven / Gradle / Ivy

// *** 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.aws.cloudwatch.inputs;

import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class GetLogGroupPlainArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetLogGroupPlainArgs Empty = new GetLogGroupPlainArgs();

    /**
     * Name of the Cloudwatch log group
     * 
     */
    @Import(name="name", required=true)
    private String name;

    /**
     * @return Name of the Cloudwatch log group
     * 
     */
    public String name() {
        return this.name;
    }

    /**
     * Map of tags to assign to the resource.
     * 
     */
    @Import(name="tags")
    private @Nullable Map tags;

    /**
     * @return Map of tags to assign to the resource.
     * 
     */
    public Optional> tags() {
        return Optional.ofNullable(this.tags);
    }

    private GetLogGroupPlainArgs() {}

    private GetLogGroupPlainArgs(GetLogGroupPlainArgs $) {
        this.name = $.name;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private GetLogGroupPlainArgs $;

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

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

        /**
         * @param name Name of the Cloudwatch log group
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            $.name = name;
            return this;
        }

        /**
         * @param tags Map of tags to assign to the resource.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Map tags) {
            $.tags = tags;
            return this;
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy