ManagedClusterPodIdentityException Class
- java.
lang. Object - com.
azure. resourcemanager. containerservice. models. ManagedClusterPodIdentityException
- com.
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 Managed |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Managed |
fromJson(JsonReader jsonReader)
Reads an instance of Managed |
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 pod |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Managed |
withName(String name)
Set the name property: The name of the pod identity exception. |
Managed |
withNamespace(String namespace)
Set the namespace property: The namespace of the pod identity exception. |
Managed |
withPodLabels(Map<String,String> podLabels)
Set the pod |
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:
Returns:
Throws:
name
public String name()
Get the name property: The name of the pod identity exception.
Returns:
namespace
public String namespace()
Get the namespace property: The namespace of the pod identity exception.
Returns:
podLabels
public Map
Get the podLabels property: The pod labels to match.
Returns:
toJson
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:
Returns:
withNamespace
public ManagedClusterPodIdentityException withNamespace(String namespace)
Set the namespace property: The namespace of the pod identity exception.
Parameters:
Returns:
withPodLabels
public ManagedClusterPodIdentityException withPodLabels(Map
Set the podLabels property: The pod labels to match.
Parameters:
Returns:
Applies to
Azure SDK for Java