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

com.pulumi.googlenative.migrationcenter.v1alpha1.ReportArgs 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.googlenative.migrationcenter.v1alpha1;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.googlenative.migrationcenter.v1alpha1.enums.ReportState;
import com.pulumi.googlenative.migrationcenter.v1alpha1.enums.ReportType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ReportArgs Empty = new ReportArgs();

    /**
     * Free-text description.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return Free-text description.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * User-friendly display name. Maximum length is 63 characters.
     * 
     */
    @Import(name="displayName")
    private @Nullable Output displayName;

    /**
     * @return User-friendly display name. Maximum length is 63 characters.
     * 
     */
    public Optional> displayName() {
        return Optional.ofNullable(this.displayName);
    }

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

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

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

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

    @Import(name="reportConfigId", required=true)
    private Output reportConfigId;

    public Output reportConfigId() {
        return this.reportConfigId;
    }

    /**
     * Required. User specified id for the report. It will become the last component of the report name. The id must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. The id must match the regular expression: [a-z]([a-z0-9-]{0,61}[a-z0-9])?.
     * 
     */
    @Import(name="reportId", required=true)
    private Output reportId;

    /**
     * @return Required. User specified id for the report. It will become the last component of the report name. The id must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. The id must match the regular expression: [a-z]([a-z0-9-]{0,61}[a-z0-9])?.
     * 
     */
    public Output reportId() {
        return this.reportId;
    }

    /**
     * Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
     * 
     */
    @Import(name="requestId")
    private @Nullable Output requestId;

    /**
     * @return Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
     * 
     */
    public Optional> requestId() {
        return Optional.ofNullable(this.requestId);
    }

    /**
     * Report creation state.
     * 
     */
    @Import(name="state")
    private @Nullable Output state;

    /**
     * @return Report creation state.
     * 
     */
    public Optional> state() {
        return Optional.ofNullable(this.state);
    }

    /**
     * Report type.
     * 
     */
    @Import(name="type")
    private @Nullable Output type;

    /**
     * @return Report type.
     * 
     */
    public Optional> type() {
        return Optional.ofNullable(this.type);
    }

    private ReportArgs() {}

    private ReportArgs(ReportArgs $) {
        this.description = $.description;
        this.displayName = $.displayName;
        this.location = $.location;
        this.project = $.project;
        this.reportConfigId = $.reportConfigId;
        this.reportId = $.reportId;
        this.requestId = $.requestId;
        this.state = $.state;
        this.type = $.type;
    }

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

    public static final class Builder {
        private ReportArgs $;

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

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

        /**
         * @param description Free-text description.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description Free-text description.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param displayName User-friendly display name. Maximum length is 63 characters.
         * 
         * @return builder
         * 
         */
        public Builder displayName(@Nullable Output displayName) {
            $.displayName = displayName;
            return this;
        }

        /**
         * @param displayName User-friendly display name. Maximum length is 63 characters.
         * 
         * @return builder
         * 
         */
        public Builder displayName(String displayName) {
            return displayName(Output.of(displayName));
        }

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

        public Builder location(String location) {
            return location(Output.of(location));
        }

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

        public Builder project(String project) {
            return project(Output.of(project));
        }

        public Builder reportConfigId(Output reportConfigId) {
            $.reportConfigId = reportConfigId;
            return this;
        }

        public Builder reportConfigId(String reportConfigId) {
            return reportConfigId(Output.of(reportConfigId));
        }

        /**
         * @param reportId Required. User specified id for the report. It will become the last component of the report name. The id must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. The id must match the regular expression: [a-z]([a-z0-9-]{0,61}[a-z0-9])?.
         * 
         * @return builder
         * 
         */
        public Builder reportId(Output reportId) {
            $.reportId = reportId;
            return this;
        }

        /**
         * @param reportId Required. User specified id for the report. It will become the last component of the report name. The id must be unique within the project, must conform with RFC-1034, is restricted to lower-cased letters, and has a maximum length of 63 characters. The id must match the regular expression: [a-z]([a-z0-9-]{0,61}[a-z0-9])?.
         * 
         * @return builder
         * 
         */
        public Builder reportId(String reportId) {
            return reportId(Output.of(reportId));
        }

        /**
         * @param requestId Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
         * 
         * @return builder
         * 
         */
        public Builder requestId(@Nullable Output requestId) {
            $.requestId = requestId;
            return this;
        }

        /**
         * @param requestId Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
         * 
         * @return builder
         * 
         */
        public Builder requestId(String requestId) {
            return requestId(Output.of(requestId));
        }

        /**
         * @param state Report creation state.
         * 
         * @return builder
         * 
         */
        public Builder state(@Nullable Output state) {
            $.state = state;
            return this;
        }

        /**
         * @param state Report creation state.
         * 
         * @return builder
         * 
         */
        public Builder state(ReportState state) {
            return state(Output.of(state));
        }

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

        /**
         * @param type Report type.
         * 
         * @return builder
         * 
         */
        public Builder type(ReportType type) {
            return type(Output.of(type));
        }

        public ReportArgs build() {
            $.reportConfigId = Objects.requireNonNull($.reportConfigId, "expected parameter 'reportConfigId' to be non-null");
            $.reportId = Objects.requireNonNull($.reportId, "expected parameter 'reportId' to be non-null");
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy