// *** 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.azure.sentinel.outputs;

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 ThreatIntelligenceIndicatorGranularMarking {
    /**
     * @return The language of granular marking of the Threat Intelligence Indicator.
     * 
     */
    private @Nullable String language;
    /**
     * @return The reference of the granular marking of the Threat Intelligence Indicator.
     * 
     */
    private @Nullable String markingRef;
    /**
     * @return A list of selectors of the granular marking of the Threat Intelligence Indicator.
     * 
     */
    private @Nullable List<String> selectors;

    private ThreatIntelligenceIndicatorGranularMarking() {}
    /**
     * @return The language of granular marking of the Threat Intelligence Indicator.
     * 
     */
    public Optional<String> language() {
        return Optional.ofNullable(this.language);
    }
    /**
     * @return The reference of the granular marking of the Threat Intelligence Indicator.
     * 
     */
    public Optional<String> markingRef() {
        return Optional.ofNullable(this.markingRef);
    }
    /**
     * @return A list of selectors of the granular marking of the Threat Intelligence Indicator.
     * 
     */
    public List<String> selectors() {
        return this.selectors == null ? List.of() : this.selectors;
    }

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

    public static Builder builder(ThreatIntelligenceIndicatorGranularMarking defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String language;
        private @Nullable String markingRef;
        private @Nullable List<String> selectors;
        public Builder() {}
        public Builder(ThreatIntelligenceIndicatorGranularMarking defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.language = defaults.language;
    	      this.markingRef = defaults.markingRef;
    	      this.selectors = defaults.selectors;
        }

        @CustomType.Setter
        public Builder language(@Nullable String language) {
            this.language = language;
            return this;
        }
        @CustomType.Setter
        public Builder markingRef(@Nullable String markingRef) {
            this.markingRef = markingRef;
            return this;
        }
        @CustomType.Setter
        public Builder selectors(@Nullable List<String> selectors) {
            this.selectors = selectors;
            return this;
        }
        public Builder selectors(String... selectors) {
            return selectors(List.of(selectors));
        }
        public ThreatIntelligenceIndicatorGranularMarking build() {
            final var o = new ThreatIntelligenceIndicatorGranularMarking();
            o.language = language;
            o.markingRef = markingRef;
            o.selectors = selectors;
            return o;
        }
    }
}
