ManagedClusterPodIdentityException Class

  • java.lang.Object
    • com.azure.resourcemanager.containerservice.models.ManagedClusterPodIdentityException

Implements

public final class ManagedClusterPodIdentityException
implements JsonSerializable<ManagedClusterPodIdentityException>

A pod identity exception, which allows pods with certain labels to access the Azure Instance Metadata Service (IMDS) endpoint without being intercepted by the node-managed identity (NMI) server. See [disable AAD Pod Identity for a specific Pod/Application](https://azure.github.io/aad-pod-identity/docs/configure/application\_exception/) for more details.

Constructor Summary

Constructor Description
ManagedClusterPodIdentityException()

Creates an instance of ManagedClusterPodIdentityException class.

Method Summary

Modifier and Type Method and Description
static ManagedClusterPodIdentityException fromJson(JsonReader jsonReader)

Reads an instance of ManagedClusterPodIdentityException from the JsonReader.

String name()

Get the name property: The name of the pod identity exception.

String namespace()

Get the namespace property: The namespace of the pod identity exception.

Map<String,String> podLabels()

Get the podLabels property: The pod labels to match.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ManagedClusterPodIdentityException withName(String name)

Set the name property: The name of the pod identity exception.

ManagedClusterPodIdentityException withNamespace(String namespace)

Set the namespace property: The namespace of the pod identity exception.

ManagedClusterPodIdentityException withPodLabels(Map<String,String> podLabels)

Set the podLabels property: The pod labels to match.

Methods inherited from java.lang.Object

Constructor Details

ManagedClusterPodIdentityException

public ManagedClusterPodIdentityException()

Creates an instance of ManagedClusterPodIdentityException class.

Method Details

fromJson

public static ManagedClusterPodIdentityException fromJson(JsonReader jsonReader)

Reads an instance of ManagedClusterPodIdentityException from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ManagedClusterPodIdentityException if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

name

public String name()

Get the name property: The name of the pod identity exception.

Returns:

the name value.

namespace

public String namespace()

Get the namespace property: The namespace of the pod identity exception.

Returns:

the namespace value.

podLabels

public Map podLabels()

Get the podLabels property: The pod labels to match.

Returns:

the podLabels value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withName

public ManagedClusterPodIdentityException withName(String name)

Set the name property: The name of the pod identity exception.

Parameters:

name - the name value to set.

Returns:

the ManagedClusterPodIdentityException object itself.

withNamespace

public ManagedClusterPodIdentityException withNamespace(String namespace)

Set the namespace property: The namespace of the pod identity exception.

Parameters:

namespace - the namespace value to set.

Returns:

the ManagedClusterPodIdentityException object itself.

withPodLabels

public ManagedClusterPodIdentityException withPodLabels(Map podLabels)

Set the podLabels property: The pod labels to match.

Parameters:

podLabels - the podLabels value to set.

Returns:

the ManagedClusterPodIdentityException object itself.

Applies to