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

com.pulumi.azurenative.deviceregistry.outputs.AssetStatusResponse 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.azurenative.deviceregistry.outputs;

import com.pulumi.azurenative.deviceregistry.outputs.AssetStatusErrorResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.util.List;
import java.util.Objects;

@CustomType
public final class AssetStatusResponse {
    /**
     * @return Array object to transfer and persist errors that originate from the Edge.
     * 
     */
    private List errors;
    /**
     * @return A read only incremental counter indicating the number of times the configuration has been modified from the perspective of the current actual (Edge) state of the Asset. Edge would be the only writer of this value and would sync back up to the cloud. In steady state, this should equal version.
     * 
     */
    private Integer version;

    private AssetStatusResponse() {}
    /**
     * @return Array object to transfer and persist errors that originate from the Edge.
     * 
     */
    public List errors() {
        return this.errors;
    }
    /**
     * @return A read only incremental counter indicating the number of times the configuration has been modified from the perspective of the current actual (Edge) state of the Asset. Edge would be the only writer of this value and would sync back up to the cloud. In steady state, this should equal version.
     * 
     */
    public Integer version() {
        return this.version;
    }

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

    public static Builder builder(AssetStatusResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private List errors;
        private Integer version;
        public Builder() {}
        public Builder(AssetStatusResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.errors = defaults.errors;
    	      this.version = defaults.version;
        }

        @CustomType.Setter
        public Builder errors(List errors) {
            if (errors == null) {
              throw new MissingRequiredPropertyException("AssetStatusResponse", "errors");
            }
            this.errors = errors;
            return this;
        }
        public Builder errors(AssetStatusErrorResponse... errors) {
            return errors(List.of(errors));
        }
        @CustomType.Setter
        public Builder version(Integer version) {
            if (version == null) {
              throw new MissingRequiredPropertyException("AssetStatusResponse", "version");
            }
            this.version = version;
            return this;
        }
        public AssetStatusResponse build() {
            final var _resultValue = new AssetStatusResponse();
            _resultValue.errors = errors;
            _resultValue.version = version;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy