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

com.pulumi.azurenative.securityinsights.inputs.EntityMappingArgs Maven / Gradle / Ivy

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

import com.pulumi.azurenative.securityinsights.enums.EntityMappingType;
import com.pulumi.azurenative.securityinsights.inputs.FieldMappingArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Single entity mapping for the alert rule
 * 
 */
public final class EntityMappingArgs extends com.pulumi.resources.ResourceArgs {

    public static final EntityMappingArgs Empty = new EntityMappingArgs();

    /**
     * The V3 type of the mapped entity
     * 
     */
    @Import(name="entityType")
    private @Nullable Output> entityType;

    /**
     * @return The V3 type of the mapped entity
     * 
     */
    public Optional>> entityType() {
        return Optional.ofNullable(this.entityType);
    }

    /**
     * array of field mappings for the given entity mapping
     * 
     */
    @Import(name="fieldMappings")
    private @Nullable Output> fieldMappings;

    /**
     * @return array of field mappings for the given entity mapping
     * 
     */
    public Optional>> fieldMappings() {
        return Optional.ofNullable(this.fieldMappings);
    }

    private EntityMappingArgs() {}

    private EntityMappingArgs(EntityMappingArgs $) {
        this.entityType = $.entityType;
        this.fieldMappings = $.fieldMappings;
    }

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

    public static final class Builder {
        private EntityMappingArgs $;

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

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

        /**
         * @param entityType The V3 type of the mapped entity
         * 
         * @return builder
         * 
         */
        public Builder entityType(@Nullable Output> entityType) {
            $.entityType = entityType;
            return this;
        }

        /**
         * @param entityType The V3 type of the mapped entity
         * 
         * @return builder
         * 
         */
        public Builder entityType(Either entityType) {
            return entityType(Output.of(entityType));
        }

        /**
         * @param entityType The V3 type of the mapped entity
         * 
         * @return builder
         * 
         */
        public Builder entityType(String entityType) {
            return entityType(Either.ofLeft(entityType));
        }

        /**
         * @param entityType The V3 type of the mapped entity
         * 
         * @return builder
         * 
         */
        public Builder entityType(EntityMappingType entityType) {
            return entityType(Either.ofRight(entityType));
        }

        /**
         * @param fieldMappings array of field mappings for the given entity mapping
         * 
         * @return builder
         * 
         */
        public Builder fieldMappings(@Nullable Output> fieldMappings) {
            $.fieldMappings = fieldMappings;
            return this;
        }

        /**
         * @param fieldMappings array of field mappings for the given entity mapping
         * 
         * @return builder
         * 
         */
        public Builder fieldMappings(List fieldMappings) {
            return fieldMappings(Output.of(fieldMappings));
        }

        /**
         * @param fieldMappings array of field mappings for the given entity mapping
         * 
         * @return builder
         * 
         */
        public Builder fieldMappings(FieldMappingArgs... fieldMappings) {
            return fieldMappings(List.of(fieldMappings));
        }

        public EntityMappingArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy