# Int32OrStringV1 Properties

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

Represents a value that can be either a 32-bit integer or a string.

## Number

- Name: `Number`
- Modifiers: `nullable` `get; init`
- Returns: `int?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/Int32OrStringV1.cs)

```csharp
public int? Number { get; init; }
```

## Text

- Name: `Text`
- Modifiers: `nullable` `get; init`
- Returns: `string?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/Int32OrStringV1.cs)

```csharp
public string? Text { get; init; }
```

## Value

- Name: `Value`
- Modifiers: `nullable` `get`
- Returns: `string?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/Int32OrStringV1.cs#L39)

Gets the string value if the instance represents a string; otherwise, returns the string representation of the 32-bit integer value if the instance represents an integer.

```csharp
public string? Value { get; }
```
