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

com.pulumi.azurenative.dbforpostgresql.outputs.GetConfigurationResult Maven / Gradle / Ivy

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

import com.pulumi.azurenative.dbforpostgresql.outputs.SystemDataResponse;
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 GetConfigurationResult {
    /**
     * @return Allowed values of the configuration.
     * 
     */
    private String allowedValues;
    /**
     * @return Data type of the configuration.
     * 
     */
    private String dataType;
    /**
     * @return Default value of the configuration.
     * 
     */
    private String defaultValue;
    /**
     * @return Description of the configuration.
     * 
     */
    private String description;
    /**
     * @return Configuration documentation link.
     * 
     */
    private String documentationLink;
    /**
     * @return Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
     * 
     */
    private String id;
    /**
     * @return Configuration is pending restart or not.
     * 
     */
    private Boolean isConfigPendingRestart;
    /**
     * @return Configuration dynamic or static.
     * 
     */
    private Boolean isDynamicConfig;
    /**
     * @return Configuration read-only or not.
     * 
     */
    private Boolean isReadOnly;
    /**
     * @return The name of the resource
     * 
     */
    private String name;
    /**
     * @return Source of the configuration. Required to update the configuration.
     * 
     */
    private @Nullable String source;
    /**
     * @return Azure Resource Manager metadata containing createdBy and modifiedBy information.
     * 
     */
    private SystemDataResponse systemData;
    /**
     * @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
     * 
     */
    private String type;
    /**
     * @return Configuration unit.
     * 
     */
    private String unit;
    /**
     * @return Value of the configuration. Required to update the configuration.
     * 
     */
    private @Nullable String value;

    private GetConfigurationResult() {}
    /**
     * @return Allowed values of the configuration.
     * 
     */
    public String allowedValues() {
        return this.allowedValues;
    }
    /**
     * @return Data type of the configuration.
     * 
     */
    public String dataType() {
        return this.dataType;
    }
    /**
     * @return Default value of the configuration.
     * 
     */
    public String defaultValue() {
        return this.defaultValue;
    }
    /**
     * @return Description of the configuration.
     * 
     */
    public String description() {
        return this.description;
    }
    /**
     * @return Configuration documentation link.
     * 
     */
    public String documentationLink() {
        return this.documentationLink;
    }
    /**
     * @return Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return Configuration is pending restart or not.
     * 
     */
    public Boolean isConfigPendingRestart() {
        return this.isConfigPendingRestart;
    }
    /**
     * @return Configuration dynamic or static.
     * 
     */
    public Boolean isDynamicConfig() {
        return this.isDynamicConfig;
    }
    /**
     * @return Configuration read-only or not.
     * 
     */
    public Boolean isReadOnly() {
        return this.isReadOnly;
    }
    /**
     * @return The name of the resource
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return Source of the configuration. Required to update the configuration.
     * 
     */
    public Optional source() {
        return Optional.ofNullable(this.source);
    }
    /**
     * @return Azure Resource Manager metadata containing createdBy and modifiedBy information.
     * 
     */
    public SystemDataResponse systemData() {
        return this.systemData;
    }
    /**
     * @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
     * 
     */
    public String type() {
        return this.type;
    }
    /**
     * @return Configuration unit.
     * 
     */
    public String unit() {
        return this.unit;
    }
    /**
     * @return Value of the configuration. Required to update the configuration.
     * 
     */
    public Optional value() {
        return Optional.ofNullable(this.value);
    }

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

    public static Builder builder(GetConfigurationResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String allowedValues;
        private String dataType;
        private String defaultValue;
        private String description;
        private String documentationLink;
        private String id;
        private Boolean isConfigPendingRestart;
        private Boolean isDynamicConfig;
        private Boolean isReadOnly;
        private String name;
        private @Nullable String source;
        private SystemDataResponse systemData;
        private String type;
        private String unit;
        private @Nullable String value;
        public Builder() {}
        public Builder(GetConfigurationResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.allowedValues = defaults.allowedValues;
    	      this.dataType = defaults.dataType;
    	      this.defaultValue = defaults.defaultValue;
    	      this.description = defaults.description;
    	      this.documentationLink = defaults.documentationLink;
    	      this.id = defaults.id;
    	      this.isConfigPendingRestart = defaults.isConfigPendingRestart;
    	      this.isDynamicConfig = defaults.isDynamicConfig;
    	      this.isReadOnly = defaults.isReadOnly;
    	      this.name = defaults.name;
    	      this.source = defaults.source;
    	      this.systemData = defaults.systemData;
    	      this.type = defaults.type;
    	      this.unit = defaults.unit;
    	      this.value = defaults.value;
        }

        @CustomType.Setter
        public Builder allowedValues(String allowedValues) {
            if (allowedValues == null) {
              throw new MissingRequiredPropertyException("GetConfigurationResult", "allowedValues");
            }
            this.allowedValues = allowedValues;
            return this;
        }
        @CustomType.Setter
        public Builder dataType(String dataType) {
            if (dataType == null) {
              throw new MissingRequiredPropertyException("GetConfigurationResult", "dataType");
            }
            this.dataType = dataType;
            return this;
        }
        @CustomType.Setter
        public Builder defaultValue(String defaultValue) {
            if (defaultValue == null) {
              throw new MissingRequiredPropertyException("GetConfigurationResult", "defaultValue");
            }
            this.defaultValue = defaultValue;
            return this;
        }
        @CustomType.Setter
        public Builder description(String description) {
            if (description == null) {
              throw new MissingRequiredPropertyException("GetConfigurationResult", "description");
            }
            this.description = description;
            return this;
        }
        @CustomType.Setter
        public Builder documentationLink(String documentationLink) {
            if (documentationLink == null) {
              throw new MissingRequiredPropertyException("GetConfigurationResult", "documentationLink");
            }
            this.documentationLink = documentationLink;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetConfigurationResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder isConfigPendingRestart(Boolean isConfigPendingRestart) {
            if (isConfigPendingRestart == null) {
              throw new MissingRequiredPropertyException("GetConfigurationResult", "isConfigPendingRestart");
            }
            this.isConfigPendingRestart = isConfigPendingRestart;
            return this;
        }
        @CustomType.Setter
        public Builder isDynamicConfig(Boolean isDynamicConfig) {
            if (isDynamicConfig == null) {
              throw new MissingRequiredPropertyException("GetConfigurationResult", "isDynamicConfig");
            }
            this.isDynamicConfig = isDynamicConfig;
            return this;
        }
        @CustomType.Setter
        public Builder isReadOnly(Boolean isReadOnly) {
            if (isReadOnly == null) {
              throw new MissingRequiredPropertyException("GetConfigurationResult", "isReadOnly");
            }
            this.isReadOnly = isReadOnly;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetConfigurationResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder source(@Nullable String source) {

            this.source = source;
            return this;
        }
        @CustomType.Setter
        public Builder systemData(SystemDataResponse systemData) {
            if (systemData == null) {
              throw new MissingRequiredPropertyException("GetConfigurationResult", "systemData");
            }
            this.systemData = systemData;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetConfigurationResult", "type");
            }
            this.type = type;
            return this;
        }
        @CustomType.Setter
        public Builder unit(String unit) {
            if (unit == null) {
              throw new MissingRequiredPropertyException("GetConfigurationResult", "unit");
            }
            this.unit = unit;
            return this;
        }
        @CustomType.Setter
        public Builder value(@Nullable String value) {

            this.value = value;
            return this;
        }
        public GetConfigurationResult build() {
            final var _resultValue = new GetConfigurationResult();
            _resultValue.allowedValues = allowedValues;
            _resultValue.dataType = dataType;
            _resultValue.defaultValue = defaultValue;
            _resultValue.description = description;
            _resultValue.documentationLink = documentationLink;
            _resultValue.id = id;
            _resultValue.isConfigPendingRestart = isConfigPendingRestart;
            _resultValue.isDynamicConfig = isDynamicConfig;
            _resultValue.isReadOnly = isReadOnly;
            _resultValue.name = name;
            _resultValue.source = source;
            _resultValue.systemData = systemData;
            _resultValue.type = type;
            _resultValue.unit = unit;
            _resultValue.value = value;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy