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

com.pulumi.aws.glue.outputs.ClassifierGrokClassifier Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.72.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.aws.glue.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 ClassifierGrokClassifier {
    /**
     * @return An identifier of the data format that the classifier matches, such as Twitter, JSON, Omniture logs, Amazon CloudWatch Logs, and so on.
     * 
     */
    private String classification;
    /**
     * @return Custom grok patterns used by this classifier.
     * 
     */
    private @Nullable String customPatterns;
    /**
     * @return The grok pattern used by this classifier.
     * 
     */
    private String grokPattern;

    private ClassifierGrokClassifier() {}
    /**
     * @return An identifier of the data format that the classifier matches, such as Twitter, JSON, Omniture logs, Amazon CloudWatch Logs, and so on.
     * 
     */
    public String classification() {
        return this.classification;
    }
    /**
     * @return Custom grok patterns used by this classifier.
     * 
     */
    public Optional customPatterns() {
        return Optional.ofNullable(this.customPatterns);
    }
    /**
     * @return The grok pattern used by this classifier.
     * 
     */
    public String grokPattern() {
        return this.grokPattern;
    }

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

    public static Builder builder(ClassifierGrokClassifier defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String classification;
        private @Nullable String customPatterns;
        private String grokPattern;
        public Builder() {}
        public Builder(ClassifierGrokClassifier defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.classification = defaults.classification;
    	      this.customPatterns = defaults.customPatterns;
    	      this.grokPattern = defaults.grokPattern;
        }

        @CustomType.Setter
        public Builder classification(String classification) {
            if (classification == null) {
              throw new MissingRequiredPropertyException("ClassifierGrokClassifier", "classification");
            }
            this.classification = classification;
            return this;
        }
        @CustomType.Setter
        public Builder customPatterns(@Nullable String customPatterns) {

            this.customPatterns = customPatterns;
            return this;
        }
        @CustomType.Setter
        public Builder grokPattern(String grokPattern) {
            if (grokPattern == null) {
              throw new MissingRequiredPropertyException("ClassifierGrokClassifier", "grokPattern");
            }
            this.grokPattern = grokPattern;
            return this;
        }
        public ClassifierGrokClassifier build() {
            final var _resultValue = new ClassifierGrokClassifier();
            _resultValue.classification = classification;
            _resultValue.customPatterns = customPatterns;
            _resultValue.grokPattern = grokPattern;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy