ManagedClusterSecurityProfileDefenderSecurityGatingIdentity Class

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

Implements

public final class ManagedClusterSecurityProfileDefenderSecurityGatingIdentity
implements JsonSerializable<ManagedClusterSecurityProfileDefenderSecurityGatingIdentity>

Identity mapping used by Defender security gating for registry access.

Constructor Summary

Constructor Description
ManagedClusterSecurityProfileDefenderSecurityGatingIdentity()

Creates an instance of ManagedClusterSecurityProfileDefenderSecurityGatingIdentity class.

Method Summary

Modifier and Type Method and Description
String azureContainerRegistry()

Get the azureContainerRegistry property: The container registry for which the identity will be used; the identity specified here should have a federated identity credential attached to it.

static ManagedClusterSecurityProfileDefenderSecurityGatingIdentity fromJson(JsonReader jsonReader)

Reads an instance of ManagedClusterSecurityProfileDefenderSecurityGatingIdentity from the JsonReader.

UserAssignedIdentity identity()

Get the identity property: The identity object used to access the registry.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ManagedClusterSecurityProfileDefenderSecurityGatingIdentity withAzureContainerRegistry(String azureContainerRegistry)

Set the azureContainerRegistry property: The container registry for which the identity will be used; the identity specified here should have a federated identity credential attached to it.

ManagedClusterSecurityProfileDefenderSecurityGatingIdentity withIdentity(UserAssignedIdentity identity)

Set the identity property: The identity object used to access the registry.

Methods inherited from java.lang.Object

Constructor Details

ManagedClusterSecurityProfileDefenderSecurityGatingIdentity

public ManagedClusterSecurityProfileDefenderSecurityGatingIdentity()

Creates an instance of ManagedClusterSecurityProfileDefenderSecurityGatingIdentity class.

Method Details

azureContainerRegistry

public String azureContainerRegistry()

Get the azureContainerRegistry property: The container registry for which the identity will be used; the identity specified here should have a federated identity credential attached to it.

Returns:

the azureContainerRegistry value.

fromJson

public static ManagedClusterSecurityProfileDefenderSecurityGatingIdentity fromJson(JsonReader jsonReader)

Reads an instance of ManagedClusterSecurityProfileDefenderSecurityGatingIdentity from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the ManagedClusterSecurityProfileDefenderSecurityGatingIdentity.

identity

public UserAssignedIdentity identity()

Get the identity property: The identity object used to access the registry.

Returns:

the identity value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAzureContainerRegistry

public ManagedClusterSecurityProfileDefenderSecurityGatingIdentity withAzureContainerRegistry(String azureContainerRegistry)

Set the azureContainerRegistry property: The container registry for which the identity will be used; the identity specified here should have a federated identity credential attached to it.

Parameters:

azureContainerRegistry - the azureContainerRegistry value to set.

Returns:

the ManagedClusterSecurityProfileDefenderSecurityGatingIdentity object itself.

withIdentity

public ManagedClusterSecurityProfileDefenderSecurityGatingIdentity withIdentity(UserAssignedIdentity identity)

Set the identity property: The identity object used to access the registry.

Parameters:

identity - the identity value to set.

Returns:

the ManagedClusterSecurityProfileDefenderSecurityGatingIdentity object itself.

Applies to