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

com.pulumi.sumologic.outputs.DashboardPanelTextPanel Maven / Gradle / Ivy

The 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.sumologic.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class DashboardPanelTextPanel {
    private @Nullable String id;
    private @Nullable Boolean keepVisualSettingsConsistentWithParent;
    private String key;
    private @Nullable String text;
    /**
     * @return Title of the dashboard.
     * 
     */
    private @Nullable String title;
    private @Nullable String visualSettings;

    private DashboardPanelTextPanel() {}
    public Optional id() {
        return Optional.ofNullable(this.id);
    }
    public Optional keepVisualSettingsConsistentWithParent() {
        return Optional.ofNullable(this.keepVisualSettingsConsistentWithParent);
    }
    public String key() {
        return this.key;
    }
    public Optional text() {
        return Optional.ofNullable(this.text);
    }
    /**
     * @return Title of the dashboard.
     * 
     */
    public Optional title() {
        return Optional.ofNullable(this.title);
    }
    public Optional visualSettings() {
        return Optional.ofNullable(this.visualSettings);
    }

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

    public static Builder builder(DashboardPanelTextPanel defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String id;
        private @Nullable Boolean keepVisualSettingsConsistentWithParent;
        private String key;
        private @Nullable String text;
        private @Nullable String title;
        private @Nullable String visualSettings;
        public Builder() {}
        public Builder(DashboardPanelTextPanel defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.id = defaults.id;
    	      this.keepVisualSettingsConsistentWithParent = defaults.keepVisualSettingsConsistentWithParent;
    	      this.key = defaults.key;
    	      this.text = defaults.text;
    	      this.title = defaults.title;
    	      this.visualSettings = defaults.visualSettings;
        }

        @CustomType.Setter
        public Builder id(@Nullable String id) {

            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder keepVisualSettingsConsistentWithParent(@Nullable Boolean keepVisualSettingsConsistentWithParent) {

            this.keepVisualSettingsConsistentWithParent = keepVisualSettingsConsistentWithParent;
            return this;
        }
        @CustomType.Setter
        public Builder key(String key) {
            if (key == null) {
              throw new MissingRequiredPropertyException("DashboardPanelTextPanel", "key");
            }
            this.key = key;
            return this;
        }
        @CustomType.Setter
        public Builder text(@Nullable String text) {

            this.text = text;
            return this;
        }
        @CustomType.Setter
        public Builder title(@Nullable String title) {

            this.title = title;
            return this;
        }
        @CustomType.Setter
        public Builder visualSettings(@Nullable String visualSettings) {

            this.visualSettings = visualSettings;
            return this;
        }
        public DashboardPanelTextPanel build() {
            final var _resultValue = new DashboardPanelTextPanel();
            _resultValue.id = id;
            _resultValue.keepVisualSettingsConsistentWithParent = keepVisualSettingsConsistentWithParent;
            _resultValue.key = key;
            _resultValue.text = text;
            _resultValue.title = title;
            _resultValue.visualSettings = visualSettings;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy