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

com.azure.messaging.eventgrid.systemevents.SignalRServiceClientConnectionDisconnectedEventData Maven / Gradle / Ivy

There is a newer version: 4.27.0
Show newest version
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.messaging.eventgrid.systemevents;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;

/**
 * Schema of the Data property of an EventGridEvent for a Microsoft.SignalRService.ClientConnectionDisconnected event.
 */
@Fluent
public final class SignalRServiceClientConnectionDisconnectedEventData {
    /*
     * The time at which the event occurred.
     */
    @JsonProperty(value = "timestamp")
    private OffsetDateTime timestamp;

    /*
     * The hub of connected client connection.
     */
    @JsonProperty(value = "hubName")
    private String hubName;

    /*
     * The connection Id of connected client connection.
     */
    @JsonProperty(value = "connectionId")
    private String connectionId;

    /*
     * The user Id of connected client connection.
     */
    @JsonProperty(value = "userId")
    private String userId;

    /*
     * The message of error that cause the client connection disconnected.
     */
    @JsonProperty(value = "errorMessage")
    private String errorMessage;

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

    /**
     * Get the timestamp property: The time at which the event occurred.
     *
     * @return the timestamp value.
     */
    public OffsetDateTime getTimestamp() {
        return this.timestamp;
    }

    /**
     * Set the timestamp property: The time at which the event occurred.
     *
     * @param timestamp the timestamp value to set.
     * @return the SignalRServiceClientConnectionDisconnectedEventData object itself.
     */
    public SignalRServiceClientConnectionDisconnectedEventData setTimestamp(OffsetDateTime timestamp) {
        this.timestamp = timestamp;
        return this;
    }

    /**
     * Get the hubName property: The hub of connected client connection.
     *
     * @return the hubName value.
     */
    public String getHubName() {
        return this.hubName;
    }

    /**
     * Set the hubName property: The hub of connected client connection.
     *
     * @param hubName the hubName value to set.
     * @return the SignalRServiceClientConnectionDisconnectedEventData object itself.
     */
    public SignalRServiceClientConnectionDisconnectedEventData setHubName(String hubName) {
        this.hubName = hubName;
        return this;
    }

    /**
     * Get the connectionId property: The connection Id of connected client connection.
     *
     * @return the connectionId value.
     */
    public String getConnectionId() {
        return this.connectionId;
    }

    /**
     * Set the connectionId property: The connection Id of connected client connection.
     *
     * @param connectionId the connectionId value to set.
     * @return the SignalRServiceClientConnectionDisconnectedEventData object itself.
     */
    public SignalRServiceClientConnectionDisconnectedEventData setConnectionId(String connectionId) {
        this.connectionId = connectionId;
        return this;
    }

    /**
     * Get the userId property: The user Id of connected client connection.
     *
     * @return the userId value.
     */
    public String getUserId() {
        return this.userId;
    }

    /**
     * Set the userId property: The user Id of connected client connection.
     *
     * @param userId the userId value to set.
     * @return the SignalRServiceClientConnectionDisconnectedEventData object itself.
     */
    public SignalRServiceClientConnectionDisconnectedEventData setUserId(String userId) {
        this.userId = userId;
        return this;
    }

    /**
     * Get the errorMessage property: The message of error that cause the client connection disconnected.
     *
     * @return the errorMessage value.
     */
    public String getErrorMessage() {
        return this.errorMessage;
    }

    /**
     * Set the errorMessage property: The message of error that cause the client connection disconnected.
     *
     * @param errorMessage the errorMessage value to set.
     * @return the SignalRServiceClientConnectionDisconnectedEventData object itself.
     */
    public SignalRServiceClientConnectionDisconnectedEventData setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
        return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy