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

com.pulumi.azurenative.elastic.outputs.MonitorPropertiesResponse 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.elastic.outputs;

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

@CustomType
public final class MonitorPropertiesResponse {
    /**
     * @return Elastic cloud properties.
     * 
     */
    private @Nullable ElasticPropertiesResponse elasticProperties;
    /**
     * @return Flag to determine if User API Key has to be generated and shared.
     * 
     */
    private @Nullable Boolean generateApiKey;
    private String liftrResourceCategory;
    /**
     * @return The priority of the resource.
     * 
     */
    private Integer liftrResourcePreference;
    /**
     * @return Flag specifying if the resource monitoring is enabled or disabled.
     * 
     */
    private @Nullable String monitoringStatus;
    /**
     * @return Provisioning state of the monitor resource.
     * 
     */
    private @Nullable String provisioningState;
    /**
     * @return Version of elastic of the monitor resource
     * 
     */
    private @Nullable String version;

    private MonitorPropertiesResponse() {}
    /**
     * @return Elastic cloud properties.
     * 
     */
    public Optional elasticProperties() {
        return Optional.ofNullable(this.elasticProperties);
    }
    /**
     * @return Flag to determine if User API Key has to be generated and shared.
     * 
     */
    public Optional generateApiKey() {
        return Optional.ofNullable(this.generateApiKey);
    }
    public String liftrResourceCategory() {
        return this.liftrResourceCategory;
    }
    /**
     * @return The priority of the resource.
     * 
     */
    public Integer liftrResourcePreference() {
        return this.liftrResourcePreference;
    }
    /**
     * @return Flag specifying if the resource monitoring is enabled or disabled.
     * 
     */
    public Optional monitoringStatus() {
        return Optional.ofNullable(this.monitoringStatus);
    }
    /**
     * @return Provisioning state of the monitor resource.
     * 
     */
    public Optional provisioningState() {
        return Optional.ofNullable(this.provisioningState);
    }
    /**
     * @return Version of elastic of the monitor resource
     * 
     */
    public Optional version() {
        return Optional.ofNullable(this.version);
    }

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

    public static Builder builder(MonitorPropertiesResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable ElasticPropertiesResponse elasticProperties;
        private @Nullable Boolean generateApiKey;
        private String liftrResourceCategory;
        private Integer liftrResourcePreference;
        private @Nullable String monitoringStatus;
        private @Nullable String provisioningState;
        private @Nullable String version;
        public Builder() {}
        public Builder(MonitorPropertiesResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.elasticProperties = defaults.elasticProperties;
    	      this.generateApiKey = defaults.generateApiKey;
    	      this.liftrResourceCategory = defaults.liftrResourceCategory;
    	      this.liftrResourcePreference = defaults.liftrResourcePreference;
    	      this.monitoringStatus = defaults.monitoringStatus;
    	      this.provisioningState = defaults.provisioningState;
    	      this.version = defaults.version;
        }

        @CustomType.Setter
        public Builder elasticProperties(@Nullable ElasticPropertiesResponse elasticProperties) {

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

            this.generateApiKey = generateApiKey;
            return this;
        }
        @CustomType.Setter
        public Builder liftrResourceCategory(String liftrResourceCategory) {
            if (liftrResourceCategory == null) {
              throw new MissingRequiredPropertyException("MonitorPropertiesResponse", "liftrResourceCategory");
            }
            this.liftrResourceCategory = liftrResourceCategory;
            return this;
        }
        @CustomType.Setter
        public Builder liftrResourcePreference(Integer liftrResourcePreference) {
            if (liftrResourcePreference == null) {
              throw new MissingRequiredPropertyException("MonitorPropertiesResponse", "liftrResourcePreference");
            }
            this.liftrResourcePreference = liftrResourcePreference;
            return this;
        }
        @CustomType.Setter
        public Builder monitoringStatus(@Nullable String monitoringStatus) {

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

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

            this.version = version;
            return this;
        }
        public MonitorPropertiesResponse build() {
            final var _resultValue = new MonitorPropertiesResponse();
            _resultValue.elasticProperties = elasticProperties;
            _resultValue.generateApiKey = generateApiKey;
            _resultValue.liftrResourceCategory = liftrResourceCategory;
            _resultValue.liftrResourcePreference = liftrResourcePreference;
            _resultValue.monitoringStatus = monitoringStatus;
            _resultValue.provisioningState = provisioningState;
            _resultValue.version = version;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy