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

package com.azure.media.videoanalyzer.edge.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Retrieves properties and media profiles of an ONVIF device. */
@Fluent
public final class OnvifDeviceGetRequest extends MethodRequest {
    /*
     * Base class for endpoints.
     */
    @JsonProperty(value = "endpoint", required = true)
    private EndpointBase endpoint;

    /*
     * method name
     */
    @JsonProperty(value = "methodName", required = true, access = JsonProperty.Access.WRITE_ONLY)
    private String methodName;

    /**
     * Creates an instance of OnvifDeviceGetRequest class.
     *
     * @param endpoint the endpoint value to set.
     */
    @JsonCreator
    public OnvifDeviceGetRequest(@JsonProperty(value = "endpoint", required = true) EndpointBase endpoint) {
        methodName = "onvifDeviceGet";
        this.endpoint = endpoint;
    }

    /**
     * Get the endpoint property: Base class for endpoints.
     *
     * @return the endpoint value.
     */
    public EndpointBase getEndpoint() {
        return this.endpoint;
    }

    /**
     * Get the methodName property: method name.
     *
     * @return the methodName value.
     */
    public String getMethodName() {
        return this.methodName;
    }
}
