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

package com.azure.resourcemanager.paloaltonetworks.ngfw.models;

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

/** EventHub configurations. */
@Fluent
public final class EventHub {
    /*
     * Resource ID of EventHub
     */
    @JsonProperty(value = "id")
    private String id;

    /*
     * Subscription Id
     */
    @JsonProperty(value = "subscriptionId")
    private String subscriptionId;

    /*
     * EventHub name
     */
    @JsonProperty(value = "name")
    private String name;

    /*
     * EventHub namespace
     */
    @JsonProperty(value = "nameSpace")
    private String nameSpace;

    /*
     * EventHub policy name
     */
    @JsonProperty(value = "policyName")
    private String policyName;

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

    /**
     * Get the id property: Resource ID of EventHub.
     *
     * @return the id value.
     */
    public String id() {
        return this.id;
    }

    /**
     * Set the id property: Resource ID of EventHub.
     *
     * @param id the id value to set.
     * @return the EventHub object itself.
     */
    public EventHub withId(String id) {
        this.id = id;
        return this;
    }

    /**
     * Get the subscriptionId property: Subscription Id.
     *
     * @return the subscriptionId value.
     */
    public String subscriptionId() {
        return this.subscriptionId;
    }

    /**
     * Set the subscriptionId property: Subscription Id.
     *
     * @param subscriptionId the subscriptionId value to set.
     * @return the EventHub object itself.
     */
    public EventHub withSubscriptionId(String subscriptionId) {
        this.subscriptionId = subscriptionId;
        return this;
    }

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

    /**
     * Set the name property: EventHub name.
     *
     * @param name the name value to set.
     * @return the EventHub object itself.
     */
    public EventHub withName(String name) {
        this.name = name;
        return this;
    }

    /**
     * Get the nameSpace property: EventHub namespace.
     *
     * @return the nameSpace value.
     */
    public String nameSpace() {
        return this.nameSpace;
    }

    /**
     * Set the nameSpace property: EventHub namespace.
     *
     * @param nameSpace the nameSpace value to set.
     * @return the EventHub object itself.
     */
    public EventHub withNameSpace(String nameSpace) {
        this.nameSpace = nameSpace;
        return this;
    }

    /**
     * Get the policyName property: EventHub policy name.
     *
     * @return the policyName value.
     */
    public String policyName() {
        return this.policyName;
    }

    /**
     * Set the policyName property: EventHub policy name.
     *
     * @param policyName the policyName value to set.
     * @return the EventHub object itself.
     */
    public EventHub withPolicyName(String policyName) {
        this.policyName = policyName;
        return this;
    }

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