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

com.pulumi.azurenative.securityinsights.outputs.LockUserActionResponse 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.securityinsights.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 LockUserActionResponse {
    /**
     * @return The reason of the failure of the action. Empty if the action is successful.
     * 
     */
    private @Nullable String failureReason;
    /**
     * @return The kind of the action
     * Expected value is 'LockUser'.
     * 
     */
    private String kind;
    /**
     * @return The user to lock
     * 
     */
    private @Nullable String user;

    private LockUserActionResponse() {}
    /**
     * @return The reason of the failure of the action. Empty if the action is successful.
     * 
     */
    public Optional failureReason() {
        return Optional.ofNullable(this.failureReason);
    }
    /**
     * @return The kind of the action
     * Expected value is 'LockUser'.
     * 
     */
    public String kind() {
        return this.kind;
    }
    /**
     * @return The user to lock
     * 
     */
    public Optional user() {
        return Optional.ofNullable(this.user);
    }

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

    public static Builder builder(LockUserActionResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String failureReason;
        private String kind;
        private @Nullable String user;
        public Builder() {}
        public Builder(LockUserActionResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.failureReason = defaults.failureReason;
    	      this.kind = defaults.kind;
    	      this.user = defaults.user;
        }

        @CustomType.Setter
        public Builder failureReason(@Nullable String failureReason) {

            this.failureReason = failureReason;
            return this;
        }
        @CustomType.Setter
        public Builder kind(String kind) {
            if (kind == null) {
              throw new MissingRequiredPropertyException("LockUserActionResponse", "kind");
            }
            this.kind = kind;
            return this;
        }
        @CustomType.Setter
        public Builder user(@Nullable String user) {

            this.user = user;
            return this;
        }
        public LockUserActionResponse build() {
            final var _resultValue = new LockUserActionResponse();
            _resultValue.failureReason = failureReason;
            _resultValue.kind = kind;
            _resultValue.user = user;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy