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

import com.pulumi.aws.codebuild.inputs.ReportGroupExportConfigArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ReportGroupState Empty = new ReportGroupState();

    /**
     * The ARN of Report Group.
     * 
     */
    @Import(name="arn")
    private @Nullable Output<String> arn;

    /**
     * @return The ARN of Report Group.
     * 
     */
    public Optional<Output<String>> arn() {
        return Optional.ofNullable(this.arn);
    }

    /**
     * The date and time this Report Group was created.
     * 
     */
    @Import(name="created")
    private @Nullable Output<String> created;

    /**
     * @return The date and time this Report Group was created.
     * 
     */
    public Optional<Output<String>> created() {
        return Optional.ofNullable(this.created);
    }

    /**
     * If `true`, deletes any reports that belong to a report group before deleting the report group. If `false`, you must delete any reports in the report group before deleting it. Default value is `false`.
     * 
     */
    @Import(name="deleteReports")
    private @Nullable Output<Boolean> deleteReports;

    /**
     * @return If `true`, deletes any reports that belong to a report group before deleting the report group. If `false`, you must delete any reports in the report group before deleting it. Default value is `false`.
     * 
     */
    public Optional<Output<Boolean>> deleteReports() {
        return Optional.ofNullable(this.deleteReports);
    }

    /**
     * Information about the destination where the raw data of this Report Group is exported. see Export Config documented below.
     * 
     */
    @Import(name="exportConfig")
    private @Nullable Output<ReportGroupExportConfigArgs> exportConfig;

    /**
     * @return Information about the destination where the raw data of this Report Group is exported. see Export Config documented below.
     * 
     */
    public Optional<Output<ReportGroupExportConfigArgs>> exportConfig() {
        return Optional.ofNullable(this.exportConfig);
    }

    /**
     * The name of a Report Group.
     * 
     */
    @Import(name="name")
    private @Nullable Output<String> name;

    /**
     * @return The name of a Report Group.
     * 
     */
    public Optional<Output<String>> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Key-value mapping of resource tags. .If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     * 
     */
    @Import(name="tags")
    private @Nullable Output<Map<String,String>> tags;

    /**
     * @return Key-value mapping of resource tags. .If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     * 
     */
    public Optional<Output<Map<String,String>>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
     * 
     */
    @Import(name="tagsAll")
    private @Nullable Output<Map<String,String>> tagsAll;

    /**
     * @return A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
     * 
     */
    public Optional<Output<Map<String,String>>> tagsAll() {
        return Optional.ofNullable(this.tagsAll);
    }

    /**
     * The type of the Report Group. Valid value are `TEST` and `CODE_COVERAGE`.
     * 
     */
    @Import(name="type")
    private @Nullable Output<String> type;

    /**
     * @return The type of the Report Group. Valid value are `TEST` and `CODE_COVERAGE`.
     * 
     */
    public Optional<Output<String>> type() {
        return Optional.ofNullable(this.type);
    }

    private ReportGroupState() {}

    private ReportGroupState(ReportGroupState $) {
        this.arn = $.arn;
        this.created = $.created;
        this.deleteReports = $.deleteReports;
        this.exportConfig = $.exportConfig;
        this.name = $.name;
        this.tags = $.tags;
        this.tagsAll = $.tagsAll;
        this.type = $.type;
    }

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

    public static final class Builder {
        private ReportGroupState $;

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

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

        /**
         * @param arn The ARN of Report Group.
         * 
         * @return builder
         * 
         */
        public Builder arn(@Nullable Output<String> arn) {
            $.arn = arn;
            return this;
        }

        /**
         * @param arn The ARN of Report Group.
         * 
         * @return builder
         * 
         */
        public Builder arn(String arn) {
            return arn(Output.of(arn));
        }

        /**
         * @param created The date and time this Report Group was created.
         * 
         * @return builder
         * 
         */
        public Builder created(@Nullable Output<String> created) {
            $.created = created;
            return this;
        }

        /**
         * @param created The date and time this Report Group was created.
         * 
         * @return builder
         * 
         */
        public Builder created(String created) {
            return created(Output.of(created));
        }

        /**
         * @param deleteReports If `true`, deletes any reports that belong to a report group before deleting the report group. If `false`, you must delete any reports in the report group before deleting it. Default value is `false`.
         * 
         * @return builder
         * 
         */
        public Builder deleteReports(@Nullable Output<Boolean> deleteReports) {
            $.deleteReports = deleteReports;
            return this;
        }

        /**
         * @param deleteReports If `true`, deletes any reports that belong to a report group before deleting the report group. If `false`, you must delete any reports in the report group before deleting it. Default value is `false`.
         * 
         * @return builder
         * 
         */
        public Builder deleteReports(Boolean deleteReports) {
            return deleteReports(Output.of(deleteReports));
        }

        /**
         * @param exportConfig Information about the destination where the raw data of this Report Group is exported. see Export Config documented below.
         * 
         * @return builder
         * 
         */
        public Builder exportConfig(@Nullable Output<ReportGroupExportConfigArgs> exportConfig) {
            $.exportConfig = exportConfig;
            return this;
        }

        /**
         * @param exportConfig Information about the destination where the raw data of this Report Group is exported. see Export Config documented below.
         * 
         * @return builder
         * 
         */
        public Builder exportConfig(ReportGroupExportConfigArgs exportConfig) {
            return exportConfig(Output.of(exportConfig));
        }

        /**
         * @param name The name of a Report Group.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output<String> name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of a Report Group.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param tags Key-value mapping of resource tags. .If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output<Map<String,String>> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Key-value mapping of resource tags. .If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map<String,String> tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param tagsAll A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
         * 
         * @return builder
         * 
         */
        public Builder tagsAll(@Nullable Output<Map<String,String>> tagsAll) {
            $.tagsAll = tagsAll;
            return this;
        }

        /**
         * @param tagsAll A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
         * 
         * @return builder
         * 
         */
        public Builder tagsAll(Map<String,String> tagsAll) {
            return tagsAll(Output.of(tagsAll));
        }

        /**
         * @param type The type of the Report Group. Valid value are `TEST` and `CODE_COVERAGE`.
         * 
         * @return builder
         * 
         */
        public Builder type(@Nullable Output<String> type) {
            $.type = type;
            return this;
        }

        /**
         * @param type The type of the Report Group. Valid value are `TEST` and `CODE_COVERAGE`.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        public ReportGroupState build() {
            return $;
        }
    }

}
