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

com.pulumi.keycloak.inputs.GetRealmSecurityDefense Maven / Gradle / Ivy

There is a newer version: 5.4.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.keycloak.inputs;

import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import com.pulumi.keycloak.inputs.GetRealmSecurityDefenseBruteForceDetection;
import com.pulumi.keycloak.inputs.GetRealmSecurityDefenseHeader;
import java.util.List;
import java.util.Objects;


public final class GetRealmSecurityDefense extends com.pulumi.resources.InvokeArgs {

    public static final GetRealmSecurityDefense Empty = new GetRealmSecurityDefense();

    @Import(name="bruteForceDetections", required=true)
    private List bruteForceDetections;

    public List bruteForceDetections() {
        return this.bruteForceDetections;
    }

    @Import(name="headers", required=true)
    private List headers;

    public List headers() {
        return this.headers;
    }

    private GetRealmSecurityDefense() {}

    private GetRealmSecurityDefense(GetRealmSecurityDefense $) {
        this.bruteForceDetections = $.bruteForceDetections;
        this.headers = $.headers;
    }

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

    public static final class Builder {
        private GetRealmSecurityDefense $;

        public Builder() {
            $ = new GetRealmSecurityDefense();
        }

        public Builder(GetRealmSecurityDefense defaults) {
            $ = new GetRealmSecurityDefense(Objects.requireNonNull(defaults));
        }

        public Builder bruteForceDetections(List bruteForceDetections) {
            $.bruteForceDetections = bruteForceDetections;
            return this;
        }

        public Builder bruteForceDetections(GetRealmSecurityDefenseBruteForceDetection... bruteForceDetections) {
            return bruteForceDetections(List.of(bruteForceDetections));
        }

        public Builder headers(List headers) {
            $.headers = headers;
            return this;
        }

        public Builder headers(GetRealmSecurityDefenseHeader... headers) {
            return headers(List.of(headers));
        }

        public GetRealmSecurityDefense build() {
            if ($.bruteForceDetections == null) {
                throw new MissingRequiredPropertyException("GetRealmSecurityDefense", "bruteForceDetections");
            }
            if ($.headers == null) {
                throw new MissingRequiredPropertyException("GetRealmSecurityDefense", "headers");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy