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

com.pulumi.azurenative.kubernetesconfiguration.outputs.HelmReleasePropertiesDefinitionResponse 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.kubernetesconfiguration.outputs;

import com.pulumi.azurenative.kubernetesconfiguration.outputs.ObjectReferenceDefinitionResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.Double;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class HelmReleasePropertiesDefinitionResponse {
    /**
     * @return Total number of times that the HelmRelease failed to install or upgrade
     * 
     */
    private @Nullable Double failureCount;
    /**
     * @return The reference to the HelmChart object used as the source to this HelmRelease
     * 
     */
    private @Nullable ObjectReferenceDefinitionResponse helmChartRef;
    /**
     * @return Number of times that the HelmRelease failed to install
     * 
     */
    private @Nullable Double installFailureCount;
    /**
     * @return The revision number of the last released object change
     * 
     */
    private @Nullable Double lastRevisionApplied;
    /**
     * @return Number of times that the HelmRelease failed to upgrade
     * 
     */
    private @Nullable Double upgradeFailureCount;

    private HelmReleasePropertiesDefinitionResponse() {}
    /**
     * @return Total number of times that the HelmRelease failed to install or upgrade
     * 
     */
    public Optional failureCount() {
        return Optional.ofNullable(this.failureCount);
    }
    /**
     * @return The reference to the HelmChart object used as the source to this HelmRelease
     * 
     */
    public Optional helmChartRef() {
        return Optional.ofNullable(this.helmChartRef);
    }
    /**
     * @return Number of times that the HelmRelease failed to install
     * 
     */
    public Optional installFailureCount() {
        return Optional.ofNullable(this.installFailureCount);
    }
    /**
     * @return The revision number of the last released object change
     * 
     */
    public Optional lastRevisionApplied() {
        return Optional.ofNullable(this.lastRevisionApplied);
    }
    /**
     * @return Number of times that the HelmRelease failed to upgrade
     * 
     */
    public Optional upgradeFailureCount() {
        return Optional.ofNullable(this.upgradeFailureCount);
    }

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

    public static Builder builder(HelmReleasePropertiesDefinitionResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Double failureCount;
        private @Nullable ObjectReferenceDefinitionResponse helmChartRef;
        private @Nullable Double installFailureCount;
        private @Nullable Double lastRevisionApplied;
        private @Nullable Double upgradeFailureCount;
        public Builder() {}
        public Builder(HelmReleasePropertiesDefinitionResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.failureCount = defaults.failureCount;
    	      this.helmChartRef = defaults.helmChartRef;
    	      this.installFailureCount = defaults.installFailureCount;
    	      this.lastRevisionApplied = defaults.lastRevisionApplied;
    	      this.upgradeFailureCount = defaults.upgradeFailureCount;
        }

        @CustomType.Setter
        public Builder failureCount(@Nullable Double failureCount) {

            this.failureCount = failureCount;
            return this;
        }
        @CustomType.Setter
        public Builder helmChartRef(@Nullable ObjectReferenceDefinitionResponse helmChartRef) {

            this.helmChartRef = helmChartRef;
            return this;
        }
        @CustomType.Setter
        public Builder installFailureCount(@Nullable Double installFailureCount) {

            this.installFailureCount = installFailureCount;
            return this;
        }
        @CustomType.Setter
        public Builder lastRevisionApplied(@Nullable Double lastRevisionApplied) {

            this.lastRevisionApplied = lastRevisionApplied;
            return this;
        }
        @CustomType.Setter
        public Builder upgradeFailureCount(@Nullable Double upgradeFailureCount) {

            this.upgradeFailureCount = upgradeFailureCount;
            return this;
        }
        public HelmReleasePropertiesDefinitionResponse build() {
            final var _resultValue = new HelmReleasePropertiesDefinitionResponse();
            _resultValue.failureCount = failureCount;
            _resultValue.helmChartRef = helmChartRef;
            _resultValue.installFailureCount = installFailureCount;
            _resultValue.lastRevisionApplied = lastRevisionApplied;
            _resultValue.upgradeFailureCount = upgradeFailureCount;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy