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

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

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

@CustomType
public final class ComplianceStatusResponse {
    /**
     * @return The compliance state of the configuration.
     * 
     */
    private String complianceState;
    /**
     * @return Datetime the configuration was last applied.
     * 
     */
    private @Nullable String lastConfigApplied;
    /**
     * @return Message from when the configuration was applied.
     * 
     */
    private @Nullable String message;
    /**
     * @return Level of the message.
     * 
     */
    private @Nullable String messageLevel;

    private ComplianceStatusResponse() {}
    /**
     * @return The compliance state of the configuration.
     * 
     */
    public String complianceState() {
        return this.complianceState;
    }
    /**
     * @return Datetime the configuration was last applied.
     * 
     */
    public Optional lastConfigApplied() {
        return Optional.ofNullable(this.lastConfigApplied);
    }
    /**
     * @return Message from when the configuration was applied.
     * 
     */
    public Optional message() {
        return Optional.ofNullable(this.message);
    }
    /**
     * @return Level of the message.
     * 
     */
    public Optional messageLevel() {
        return Optional.ofNullable(this.messageLevel);
    }

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

    public static Builder builder(ComplianceStatusResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String complianceState;
        private @Nullable String lastConfigApplied;
        private @Nullable String message;
        private @Nullable String messageLevel;
        public Builder() {}
        public Builder(ComplianceStatusResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.complianceState = defaults.complianceState;
    	      this.lastConfigApplied = defaults.lastConfigApplied;
    	      this.message = defaults.message;
    	      this.messageLevel = defaults.messageLevel;
        }

        @CustomType.Setter
        public Builder complianceState(String complianceState) {
            if (complianceState == null) {
              throw new MissingRequiredPropertyException("ComplianceStatusResponse", "complianceState");
            }
            this.complianceState = complianceState;
            return this;
        }
        @CustomType.Setter
        public Builder lastConfigApplied(@Nullable String lastConfigApplied) {

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

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

            this.messageLevel = messageLevel;
            return this;
        }
        public ComplianceStatusResponse build() {
            final var _resultValue = new ComplianceStatusResponse();
            _resultValue.complianceState = complianceState;
            _resultValue.lastConfigApplied = lastConfigApplied;
            _resultValue.message = message;
            _resultValue.messageLevel = messageLevel;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy