# AksNodePoolConfig Methods

- Package: [Aspire.Hosting.Azure.Kubernetes](/reference/api/csharp/aspire.hosting.azure.kubernetes.md)
- Type: [AksNodePoolConfig](/reference/api/csharp/aspire.hosting.azure.kubernetes/aksnodepoolconfig.md)
- Kind: `Methods`
- Members: `8`

Configuration for an AKS node pool.

## <Clone>$

- Name: `<Clone>$`
- Returns: [AksNodePoolConfig](/reference/api/csharp/aspire.hosting.azure.kubernetes/aksnodepoolconfig.md)

```csharp
public record AksNodePoolConfig
{
    public AksNodePoolConfig <Clone>$()
    {
        // ...
    }
}
```

## Deconstruct(string, string, int, int, AksNodePoolMode)

- Name: `Deconstruct(string, string, int, int, AksNodePoolMode)`

```csharp
public record AksNodePoolConfig
{
    public void Deconstruct(
        out string Name,
        out string VmSize,
        out int MinCount,
        out int MaxCount,
        out AksNodePoolMode Mode)
    {
        // ...
    }
}
```

## Parameters

- `Name` (`string`)
- `VmSize` (`string`)
- `MinCount` (`int`)
- `MaxCount` (`int`)
- `Mode` ([AksNodePoolMode](/reference/api/csharp/aspire.hosting.azure.kubernetes/aksnodepoolmode.md))

## Equals(object?)

- Name: `Equals(object?)`
- Modifiers: `override`
- Returns: `bool`

Determines whether the specified object is equal to the current object.

```csharp
public record AksNodePoolConfig
{
    public override bool Equals(
        object? obj)
    {
        // ...
    }
}
```

## Parameters

- `obj` (`object?`)
  The object to compare with the current object.

## Returns

`bool` -- `true` if the specified object is equal to the current object; otherwise, `false`.

## Equals(AksNodePoolConfig?)

- Name: `Equals(AksNodePoolConfig?)`
- Returns: `bool`

Indicates whether the current object is equal to another object of the same type.

```csharp
public record AksNodePoolConfig
{
    public bool Equals(
        AksNodePoolConfig? other)
    {
        // ...
    }
}
```

## Parameters

- `other` ([AksNodePoolConfig?](/reference/api/csharp/aspire.hosting.azure.kubernetes/aksnodepoolconfig.md))
  An object to compare with this object.

## Returns

`bool` -- `true` if the current object is equal to the `other` parameter; otherwise, `false`.

## GetHashCode

- Name: `GetHashCode`
- Modifiers: `override`
- Returns: `int`

Serves as the default hash function.

```csharp
public record AksNodePoolConfig
{
    public override int GetHashCode()
    {
        // ...
    }
}
```

## Returns

`int` -- A hash code for the current object.

## op_Equality(AksNodePoolConfig?, AksNodePoolConfig?)

- Name: `op_Equality(AksNodePoolConfig?, AksNodePoolConfig?)`
- Modifiers: `static`
- Returns: `bool`

```csharp
public record AksNodePoolConfig
{
    public static bool operator ==(
        AksNodePoolConfig? left,
        AksNodePoolConfig? right)
    {
        // ...
    }
}
```

## Parameters

- `left` ([AksNodePoolConfig?](/reference/api/csharp/aspire.hosting.azure.kubernetes/aksnodepoolconfig.md))
- `right` ([AksNodePoolConfig?](/reference/api/csharp/aspire.hosting.azure.kubernetes/aksnodepoolconfig.md))

## op_Inequality(AksNodePoolConfig?, AksNodePoolConfig?)

- Name: `op_Inequality(AksNodePoolConfig?, AksNodePoolConfig?)`
- Modifiers: `static`
- Returns: `bool`

```csharp
public record AksNodePoolConfig
{
    public static bool operator !=(
        AksNodePoolConfig? left,
        AksNodePoolConfig? right)
    {
        // ...
    }
}
```

## Parameters

- `left` ([AksNodePoolConfig?](/reference/api/csharp/aspire.hosting.azure.kubernetes/aksnodepoolconfig.md))
- `right` ([AksNodePoolConfig?](/reference/api/csharp/aspire.hosting.azure.kubernetes/aksnodepoolconfig.md))

## ToString

- Name: `ToString`
- Modifiers: `override`
- Returns: `string`

Returns a string that represents the current object.

```csharp
public record AksNodePoolConfig
{
    public override string ToString()
    {
        // ...
    }
}
```

## Returns

`string` -- A string that represents the current object.
