Compartilhar via


ManagedClusterSecurityProfileWorkloadIdentity Class

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

Implements

public final class ManagedClusterSecurityProfileWorkloadIdentity
implements JsonSerializable<ManagedClusterSecurityProfileWorkloadIdentity>

Workload identity settings for the security profile.

Constructor Summary

Constructor Description
ManagedClusterSecurityProfileWorkloadIdentity()

Creates an instance of ManagedClusterSecurityProfileWorkloadIdentity class.

Method Summary

Modifier and Type Method and Description
Boolean enabled()

Get the enabled property: Whether to enable workload identity.

static ManagedClusterSecurityProfileWorkloadIdentity fromJson(JsonReader jsonReader)

Reads an instance of ManagedClusterSecurityProfileWorkloadIdentity from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ManagedClusterSecurityProfileWorkloadIdentity withEnabled(Boolean enabled)

Set the enabled property: Whether to enable workload identity.

Methods inherited from java.lang.Object

Constructor Details

ManagedClusterSecurityProfileWorkloadIdentity

public ManagedClusterSecurityProfileWorkloadIdentity()

Creates an instance of ManagedClusterSecurityProfileWorkloadIdentity class.

Method Details

enabled

public Boolean enabled()

Get the enabled property: Whether to enable workload identity.

Returns:

the enabled value.

fromJson

public static ManagedClusterSecurityProfileWorkloadIdentity fromJson(JsonReader jsonReader)

Reads an instance of ManagedClusterSecurityProfileWorkloadIdentity from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ManagedClusterSecurityProfileWorkloadIdentity 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 ManagedClusterSecurityProfileWorkloadIdentity.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withEnabled

public ManagedClusterSecurityProfileWorkloadIdentity withEnabled(Boolean enabled)

Set the enabled property: Whether to enable workload identity.

Parameters:

enabled - the enabled value to set.

Returns:

the ManagedClusterSecurityProfileWorkloadIdentity object itself.

Applies to