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

com.pulumi.azurenative.secretsynccontroller.outputs.SecretSyncStatusResponse Maven / Gradle / Ivy

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

import com.pulumi.azurenative.secretsynccontroller.outputs.SecretSyncConditionResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;

@CustomType
public final class SecretSyncStatusResponse {
    /**
     * @return Conditions represent the status of the secret create and update processes. The status can be True, False, or Unknown with various reasons and messages explaining the state. Examples of reasons include CreateSucceeded, ProviderError, InvalidClusterSecretLabelError, InvalidClusterSecretAnnotationError, UnknownError, ValidatingAdmissionPolicyCheckFailed, UserInputValidationFailed, ControllerSpcError, ControllerInternalError, NoValueChange, and ValueChangeOrForceUpdateDetected.
     * 
     */
    private List conditions;
    /**
     * @return LastSuccessfulSyncTime represents the last time the secret was retrieved from the Provider and updated.
     * 
     */
    private String lastSuccessfulSyncTime;

    private SecretSyncStatusResponse() {}
    /**
     * @return Conditions represent the status of the secret create and update processes. The status can be True, False, or Unknown with various reasons and messages explaining the state. Examples of reasons include CreateSucceeded, ProviderError, InvalidClusterSecretLabelError, InvalidClusterSecretAnnotationError, UnknownError, ValidatingAdmissionPolicyCheckFailed, UserInputValidationFailed, ControllerSpcError, ControllerInternalError, NoValueChange, and ValueChangeOrForceUpdateDetected.
     * 
     */
    public List conditions() {
        return this.conditions;
    }
    /**
     * @return LastSuccessfulSyncTime represents the last time the secret was retrieved from the Provider and updated.
     * 
     */
    public String lastSuccessfulSyncTime() {
        return this.lastSuccessfulSyncTime;
    }

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

    public static Builder builder(SecretSyncStatusResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private List conditions;
        private String lastSuccessfulSyncTime;
        public Builder() {}
        public Builder(SecretSyncStatusResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.conditions = defaults.conditions;
    	      this.lastSuccessfulSyncTime = defaults.lastSuccessfulSyncTime;
        }

        @CustomType.Setter
        public Builder conditions(List conditions) {
            if (conditions == null) {
              throw new MissingRequiredPropertyException("SecretSyncStatusResponse", "conditions");
            }
            this.conditions = conditions;
            return this;
        }
        public Builder conditions(SecretSyncConditionResponse... conditions) {
            return conditions(List.of(conditions));
        }
        @CustomType.Setter
        public Builder lastSuccessfulSyncTime(String lastSuccessfulSyncTime) {
            if (lastSuccessfulSyncTime == null) {
              throw new MissingRequiredPropertyException("SecretSyncStatusResponse", "lastSuccessfulSyncTime");
            }
            this.lastSuccessfulSyncTime = lastSuccessfulSyncTime;
            return this;
        }
        public SecretSyncStatusResponse build() {
            final var _resultValue = new SecretSyncStatusResponse();
            _resultValue.conditions = conditions;
            _resultValue.lastSuccessfulSyncTime = lastSuccessfulSyncTime;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy