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

com.pulumi.azurenative.securityinsights.outputs.EntityMappingResponse 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.azurenative.securityinsights.outputs.FieldMappingResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class EntityMappingResponse {
    /**
     * @return The V3 type of the mapped entity
     * 
     */
    private @Nullable String entityType;
    /**
     * @return array of field mappings for the given entity mapping
     * 
     */
    private @Nullable List fieldMappings;

    private EntityMappingResponse() {}
    /**
     * @return The V3 type of the mapped entity
     * 
     */
    public Optional entityType() {
        return Optional.ofNullable(this.entityType);
    }
    /**
     * @return array of field mappings for the given entity mapping
     * 
     */
    public List fieldMappings() {
        return this.fieldMappings == null ? List.of() : this.fieldMappings;
    }

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

    public static Builder builder(EntityMappingResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String entityType;
        private @Nullable List fieldMappings;
        public Builder() {}
        public Builder(EntityMappingResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.entityType = defaults.entityType;
    	      this.fieldMappings = defaults.fieldMappings;
        }

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

            this.entityType = entityType;
            return this;
        }
        @CustomType.Setter
        public Builder fieldMappings(@Nullable List fieldMappings) {

            this.fieldMappings = fieldMappings;
            return this;
        }
        public Builder fieldMappings(FieldMappingResponse... fieldMappings) {
            return fieldMappings(List.of(fieldMappings));
        }
        public EntityMappingResponse build() {
            final var _resultValue = new EntityMappingResponse();
            _resultValue.entityType = entityType;
            _resultValue.fieldMappings = fieldMappings;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy