# GatewaySpecV1 Properties

- Package: [Aspire.Hosting.Kubernetes](/reference/api/csharp/aspire.hosting.kubernetes.md)
- Type: [GatewaySpecV1](/reference/api/csharp/aspire.hosting.kubernetes/gatewayspecv1.md)
- Kind: `Properties`
- Members: `2`

Represents the specification of a Gateway resource.

## GatewayClassName

- Name: `GatewayClassName`
- Modifiers: `get; set`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/GatewayV1.cs)

Gets or sets the name of the GatewayClass that this Gateway is associated with.

```csharp
public string GatewayClassName { get; set; }
```

## Listeners

- Name: `Listeners`
- Modifiers: `get`
- Returns: [List<GatewayListenerV1>](/reference/api/csharp/aspire.hosting.kubernetes/gatewaylistenerv1.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/GatewayV1.cs#L38)

Gets the listeners associated with this Gateway. Each listener defines a port, protocol, and optional TLS configuration.

```csharp
public List<GatewayListenerV1> Listeners { get; }
```
