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

com.pulumi.azurenative.iotfirmwaredefense.FirmwareArgs Maven / Gradle / Ivy

There is a newer version: 2.72.0
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.azurenative.iotfirmwaredefense;

import com.pulumi.azurenative.iotfirmwaredefense.enums.Status;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Double;
import java.lang.Object;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final FirmwareArgs Empty = new FirmwareArgs();

    /**
     * User-specified description of the firmware.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return User-specified description of the firmware.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * File name for a firmware that user uploaded.
     * 
     */
    @Import(name="fileName")
    private @Nullable Output fileName;

    /**
     * @return File name for a firmware that user uploaded.
     * 
     */
    public Optional> fileName() {
        return Optional.ofNullable(this.fileName);
    }

    /**
     * File size of the uploaded firmware image.
     * 
     */
    @Import(name="fileSize")
    private @Nullable Output fileSize;

    /**
     * @return File size of the uploaded firmware image.
     * 
     */
    public Optional> fileSize() {
        return Optional.ofNullable(this.fileSize);
    }

    /**
     * The id of the firmware.
     * 
     */
    @Import(name="firmwareId")
    private @Nullable Output firmwareId;

    /**
     * @return The id of the firmware.
     * 
     */
    public Optional> firmwareId() {
        return Optional.ofNullable(this.firmwareId);
    }

    /**
     * Firmware model.
     * 
     */
    @Import(name="model")
    private @Nullable Output model;

    /**
     * @return Firmware model.
     * 
     */
    public Optional> model() {
        return Optional.ofNullable(this.model);
    }

    /**
     * The name of the resource group. The name is case insensitive.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group. The name is case insensitive.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * The status of firmware scan.
     * 
     */
    @Import(name="status")
    private @Nullable Output> status;

    /**
     * @return The status of firmware scan.
     * 
     */
    public Optional>> status() {
        return Optional.ofNullable(this.status);
    }

    /**
     * A list of errors or other messages generated during firmware analysis
     * 
     */
    @Import(name="statusMessages")
    private @Nullable Output> statusMessages;

    /**
     * @return A list of errors or other messages generated during firmware analysis
     * 
     */
    public Optional>> statusMessages() {
        return Optional.ofNullable(this.statusMessages);
    }

    /**
     * Firmware vendor.
     * 
     */
    @Import(name="vendor")
    private @Nullable Output vendor;

    /**
     * @return Firmware vendor.
     * 
     */
    public Optional> vendor() {
        return Optional.ofNullable(this.vendor);
    }

    /**
     * Firmware version.
     * 
     */
    @Import(name="version")
    private @Nullable Output version;

    /**
     * @return Firmware version.
     * 
     */
    public Optional> version() {
        return Optional.ofNullable(this.version);
    }

    /**
     * The name of the firmware analysis workspace.
     * 
     */
    @Import(name="workspaceName", required=true)
    private Output workspaceName;

    /**
     * @return The name of the firmware analysis workspace.
     * 
     */
    public Output workspaceName() {
        return this.workspaceName;
    }

    private FirmwareArgs() {}

    private FirmwareArgs(FirmwareArgs $) {
        this.description = $.description;
        this.fileName = $.fileName;
        this.fileSize = $.fileSize;
        this.firmwareId = $.firmwareId;
        this.model = $.model;
        this.resourceGroupName = $.resourceGroupName;
        this.status = $.status;
        this.statusMessages = $.statusMessages;
        this.vendor = $.vendor;
        this.version = $.version;
        this.workspaceName = $.workspaceName;
    }

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

    public static final class Builder {
        private FirmwareArgs $;

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

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

        /**
         * @param description User-specified description of the firmware.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description User-specified description of the firmware.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param fileName File name for a firmware that user uploaded.
         * 
         * @return builder
         * 
         */
        public Builder fileName(@Nullable Output fileName) {
            $.fileName = fileName;
            return this;
        }

        /**
         * @param fileName File name for a firmware that user uploaded.
         * 
         * @return builder
         * 
         */
        public Builder fileName(String fileName) {
            return fileName(Output.of(fileName));
        }

        /**
         * @param fileSize File size of the uploaded firmware image.
         * 
         * @return builder
         * 
         */
        public Builder fileSize(@Nullable Output fileSize) {
            $.fileSize = fileSize;
            return this;
        }

        /**
         * @param fileSize File size of the uploaded firmware image.
         * 
         * @return builder
         * 
         */
        public Builder fileSize(Double fileSize) {
            return fileSize(Output.of(fileSize));
        }

        /**
         * @param firmwareId The id of the firmware.
         * 
         * @return builder
         * 
         */
        public Builder firmwareId(@Nullable Output firmwareId) {
            $.firmwareId = firmwareId;
            return this;
        }

        /**
         * @param firmwareId The id of the firmware.
         * 
         * @return builder
         * 
         */
        public Builder firmwareId(String firmwareId) {
            return firmwareId(Output.of(firmwareId));
        }

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

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

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param status The status of firmware scan.
         * 
         * @return builder
         * 
         */
        public Builder status(@Nullable Output> status) {
            $.status = status;
            return this;
        }

        /**
         * @param status The status of firmware scan.
         * 
         * @return builder
         * 
         */
        public Builder status(Either status) {
            return status(Output.of(status));
        }

        /**
         * @param status The status of firmware scan.
         * 
         * @return builder
         * 
         */
        public Builder status(String status) {
            return status(Either.ofLeft(status));
        }

        /**
         * @param status The status of firmware scan.
         * 
         * @return builder
         * 
         */
        public Builder status(Status status) {
            return status(Either.ofRight(status));
        }

        /**
         * @param statusMessages A list of errors or other messages generated during firmware analysis
         * 
         * @return builder
         * 
         */
        public Builder statusMessages(@Nullable Output> statusMessages) {
            $.statusMessages = statusMessages;
            return this;
        }

        /**
         * @param statusMessages A list of errors or other messages generated during firmware analysis
         * 
         * @return builder
         * 
         */
        public Builder statusMessages(List statusMessages) {
            return statusMessages(Output.of(statusMessages));
        }

        /**
         * @param statusMessages A list of errors or other messages generated during firmware analysis
         * 
         * @return builder
         * 
         */
        public Builder statusMessages(Object... statusMessages) {
            return statusMessages(List.of(statusMessages));
        }

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

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

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

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

        /**
         * @param workspaceName The name of the firmware analysis workspace.
         * 
         * @return builder
         * 
         */
        public Builder workspaceName(Output workspaceName) {
            $.workspaceName = workspaceName;
            return this;
        }

        /**
         * @param workspaceName The name of the firmware analysis workspace.
         * 
         * @return builder
         * 
         */
        public Builder workspaceName(String workspaceName) {
            return workspaceName(Output.of(workspaceName));
        }

        public FirmwareArgs build() {
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("FirmwareArgs", "resourceGroupName");
            }
            $.status = Codegen.stringProp("status").left(Status.class).output().arg($.status).def("Pending").getNullable();
            if ($.workspaceName == null) {
                throw new MissingRequiredPropertyException("FirmwareArgs", "workspaceName");
            }
            return $;
        }
    }

}