# NatsClientSettings

- Kind: `class`
- Package: [Aspire.NATS.Net](/reference/api/csharp/aspire.nats.net.md)
- Version: `13.4.0`
- Namespace: `Aspire.NATS.Net`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Components/Aspire.NATS.Net/NatsClientSettings.cs)

Provides the client configuration settings for connecting to a NATS cluster.

## Definition

```csharp
namespace Aspire.NATS.Net;

public sealed class NatsClientSettings
{
    // ...
}
```

## Constructors

- [NatsClientSettings](/reference/api/csharp/aspire.nats.net/natsclientsettings/constructors.md#constructor)

## Properties

- [ConnectionString](/reference/api/csharp/aspire.nats.net/natsclientsettings/properties.md#connectionstring) : `string?` `get; set` -- Gets or sets the connection string of the NATS cluster to connect to.
- [DisableHealthChecks](/reference/api/csharp/aspire.nats.net/natsclientsettings/properties.md#disablehealthchecks) : `bool` `get; set` -- Gets or sets a boolean value that indicates whether the NATS health check is disabled or not.
- [DisableTracing](/reference/api/csharp/aspire.nats.net/natsclientsettings/properties.md#disabletracing) : `bool` `get; set` -- Gets or sets a boolean value that indicates whether the OpenTelemetry tracing is disabled or not.
