// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.streamanalytics.models;

import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;

/**
 * Describes how data from an input is serialized or how data is serialized when written to an output in Parquet format.
 */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type")
@JsonTypeName("Parquet")
@Fluent
public final class ParquetSerialization extends Serialization {
    @JsonIgnore private final ClientLogger logger = new ClientLogger(ParquetSerialization.class);

    /*
     * The properties that are associated with the Parquet serialization type.
     * Required on PUT (CreateOrReplace) requests.
     */
    @JsonProperty(value = "properties")
    private Object properties;

    /**
     * Get the properties property: The properties that are associated with the Parquet serialization type. Required on
     * PUT (CreateOrReplace) requests.
     *
     * @return the properties value.
     */
    public Object properties() {
        return this.properties;
    }

    /**
     * Set the properties property: The properties that are associated with the Parquet serialization type. Required on
     * PUT (CreateOrReplace) requests.
     *
     * @param properties the properties value to set.
     * @return the ParquetSerialization object itself.
     */
    public ParquetSerialization withProperties(Object properties) {
        this.properties = properties;
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    @Override
    public void validate() {
        super.validate();
    }
}
