// 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.IngressStartAtType;
import com.azure.resourcemanager.timeseriesinsights.models.IoTHubEventSourceCommonProperties;
import com.azure.resourcemanager.timeseriesinsights.models.LocalTimestamp;

/** Properties of the IoTHub event source resource. */
@Fluent
public final class IoTHubEventSourceResourceProperties extends IoTHubEventSourceCommonProperties {
    /** Creates an instance of IoTHubEventSourceResourceProperties class. */
    public IoTHubEventSourceResourceProperties() {
    }

    /** {@inheritDoc} */
    @Override
    public IoTHubEventSourceResourceProperties withIotHubName(String iotHubName) {
        super.withIotHubName(iotHubName);
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public IoTHubEventSourceResourceProperties withConsumerGroupName(String consumerGroupName) {
        super.withConsumerGroupName(consumerGroupName);
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public IoTHubEventSourceResourceProperties withKeyName(String keyName) {
        super.withKeyName(keyName);
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public IoTHubEventSourceResourceProperties withEventSourceResourceId(String eventSourceResourceId) {
        super.withEventSourceResourceId(eventSourceResourceId);
        return this;
    }

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

    /** {@inheritDoc} */
    @Override
    public IoTHubEventSourceResourceProperties withLocalTimestamp(LocalTimestamp localTimestamp) {
        super.withLocalTimestamp(localTimestamp);
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public IoTHubEventSourceResourceProperties withType(IngressStartAtType type) {
        super.withType(type);
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public IoTHubEventSourceResourceProperties withTime(String time) {
        super.withTime(time);
        return this;
    }

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