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

com.pulumi.azurenative.portal.outputs.DashboardPartsResponse 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.DashboardPartMetadataResponse;
import com.pulumi.azurenative.portal.outputs.DashboardPartsPositionResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class DashboardPartsResponse {
    /**
     * @return The dashboard's part metadata.
     * 
     */
    private @Nullable DashboardPartMetadataResponse metadata;
    /**
     * @return The dashboard's part position.
     * 
     */
    private DashboardPartsPositionResponse position;

    private DashboardPartsResponse() {}
    /**
     * @return The dashboard's part metadata.
     * 
     */
    public Optional metadata() {
        return Optional.ofNullable(this.metadata);
    }
    /**
     * @return The dashboard's part position.
     * 
     */
    public DashboardPartsPositionResponse position() {
        return this.position;
    }

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

    public static Builder builder(DashboardPartsResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable DashboardPartMetadataResponse metadata;
        private DashboardPartsPositionResponse position;
        public Builder() {}
        public Builder(DashboardPartsResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.metadata = defaults.metadata;
    	      this.position = defaults.position;
        }

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

            this.metadata = metadata;
            return this;
        }
        @CustomType.Setter
        public Builder position(DashboardPartsPositionResponse position) {
            if (position == null) {
              throw new MissingRequiredPropertyException("DashboardPartsResponse", "position");
            }
            this.position = position;
            return this;
        }
        public DashboardPartsResponse build() {
            final var _resultValue = new DashboardPartsResponse();
            _resultValue.metadata = metadata;
            _resultValue.position = position;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy