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

package com.azure.resourcemanager.timeseriesinsights.fluent.models;

import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.timeseriesinsights.models.EventSourceMutableProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

/** An object that represents a set of mutable EventHub event source resource properties. */
@Fluent
public final class EventHubEventSourceMutableProperties extends EventSourceMutableProperties {
    /*
     * The value of the shared access key that grants the Time Series Insights service read access to the event hub.
     * This property is not shown in event source responses.
     */
    @JsonProperty(value = "sharedAccessKey")
    private String sharedAccessKey;

    /** Creates an instance of EventHubEventSourceMutableProperties class. */
    public EventHubEventSourceMutableProperties() {
    }

    /**
     * Get the sharedAccessKey property: The value of the shared access key that grants the Time Series Insights service
     * read access to the event hub. This property is not shown in event source responses.
     *
     * @return the sharedAccessKey value.
     */
    public String sharedAccessKey() {
        return this.sharedAccessKey;
    }

    /**
     * Set the sharedAccessKey property: The value of the shared access key that grants the Time Series Insights service
     * read access to the event hub. This property is not shown in event source responses.
     *
     * @param sharedAccessKey the sharedAccessKey value to set.
     * @return the EventHubEventSourceMutableProperties object itself.
     */
    public EventHubEventSourceMutableProperties withSharedAccessKey(String sharedAccessKey) {
        this.sharedAccessKey = sharedAccessKey;
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public EventHubEventSourceMutableProperties withTimestampPropertyName(String timestampPropertyName) {
        super.withTimestampPropertyName(timestampPropertyName);
        return this;
    }

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