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

com.pulumi.azurenative.portal.outputs.DashboardLensResponse Maven / Gradle / Ivy

There is a newer version: 2.78.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.portal.outputs;

import com.pulumi.azurenative.portal.outputs.DashboardPartsResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.Object;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class DashboardLensResponse {
    /**
     * @return The dashboard len's metadata.
     * 
     */
    private @Nullable Object metadata;
    /**
     * @return The lens order.
     * 
     */
    private Integer order;
    /**
     * @return The dashboard parts.
     * 
     */
    private List parts;

    private DashboardLensResponse() {}
    /**
     * @return The dashboard len's metadata.
     * 
     */
    public Optional metadata() {
        return Optional.ofNullable(this.metadata);
    }
    /**
     * @return The lens order.
     * 
     */
    public Integer order() {
        return this.order;
    }
    /**
     * @return The dashboard parts.
     * 
     */
    public List parts() {
        return this.parts;
    }

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

    public static Builder builder(DashboardLensResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Object metadata;
        private Integer order;
        private List parts;
        public Builder() {}
        public Builder(DashboardLensResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.metadata = defaults.metadata;
    	      this.order = defaults.order;
    	      this.parts = defaults.parts;
        }

        @CustomType.Setter
        public Builder metadata(@Nullable Object metadata) {

            this.metadata = metadata;
            return this;
        }
        @CustomType.Setter
        public Builder order(Integer order) {
            if (order == null) {
              throw new MissingRequiredPropertyException("DashboardLensResponse", "order");
            }
            this.order = order;
            return this;
        }
        @CustomType.Setter
        public Builder parts(List parts) {
            if (parts == null) {
              throw new MissingRequiredPropertyException("DashboardLensResponse", "parts");
            }
            this.parts = parts;
            return this;
        }
        public Builder parts(DashboardPartsResponse... parts) {
            return parts(List.of(parts));
        }
        public DashboardLensResponse build() {
            final var _resultValue = new DashboardLensResponse();
            _resultValue.metadata = metadata;
            _resultValue.order = order;
            _resultValue.parts = parts;
            return _resultValue;
        }
    }
}