Class ManagedClusterSecurityProfile
java.lang.Object
com.azure.resourcemanager.containerservice.models.ManagedClusterSecurityProfile
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ManagedClusterSecurityProfile>
public final class ManagedClusterSecurityProfile
extends Object
implements com.azure.json.JsonSerializable<ManagedClusterSecurityProfile>
Security profile for the container service cluster.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ManagedClusterSecurityProfile class. -
Method Summary
Modifier and TypeMethodDescriptionGet the azureKeyVaultKms property: Azure Key Vault [key management service](https://kubernetes.io/docs/tasks/administer-cluster/kms-provider/) settings for the security profile.defender()Get the defender property: Microsoft Defender settings for the security profile.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ManagedClusterSecurityProfile from the JsonReader.Get the imageCleaner property: Image Cleaner settings for the security profile.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAzureKeyVaultKms(AzureKeyVaultKms azureKeyVaultKms) Set the azureKeyVaultKms property: Azure Key Vault [key management service](https://kubernetes.io/docs/tasks/administer-cluster/kms-provider/) settings for the security profile.Set the defender property: Microsoft Defender settings for the security profile.withImageCleaner(ManagedClusterSecurityProfileImageCleaner imageCleaner) Set the imageCleaner property: Image Cleaner settings for the security profile.withWorkloadIdentity(ManagedClusterSecurityProfileWorkloadIdentity workloadIdentity) Set the workloadIdentity property: Workload identity settings for the security profile.Get the workloadIdentity property: Workload identity settings for the security profile.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ManagedClusterSecurityProfile
public ManagedClusterSecurityProfile()Creates an instance of ManagedClusterSecurityProfile class.
-
-
Method Details
-
defender
Get the defender property: Microsoft Defender settings for the security profile.- Returns:
- the defender value.
-
withDefender
Set the defender property: Microsoft Defender settings for the security profile.- Parameters:
defender- the defender value to set.- Returns:
- the ManagedClusterSecurityProfile object itself.
-
azureKeyVaultKms
Get the azureKeyVaultKms property: Azure Key Vault [key management service](https://kubernetes.io/docs/tasks/administer-cluster/kms-provider/) settings for the security profile.- Returns:
- the azureKeyVaultKms value.
-
withAzureKeyVaultKms
Set the azureKeyVaultKms property: Azure Key Vault [key management service](https://kubernetes.io/docs/tasks/administer-cluster/kms-provider/) settings for the security profile.- Parameters:
azureKeyVaultKms- the azureKeyVaultKms value to set.- Returns:
- the ManagedClusterSecurityProfile object itself.
-
workloadIdentity
Get the workloadIdentity property: Workload identity settings for the security profile. Workload identity enables Kubernetes applications to access Azure cloud resources securely with Azure AD. See https://aka.ms/aks/wi for more details.- Returns:
- the workloadIdentity value.
-
withWorkloadIdentity
public ManagedClusterSecurityProfile withWorkloadIdentity(ManagedClusterSecurityProfileWorkloadIdentity workloadIdentity) Set the workloadIdentity property: Workload identity settings for the security profile. Workload identity enables Kubernetes applications to access Azure cloud resources securely with Azure AD. See https://aka.ms/aks/wi for more details.- Parameters:
workloadIdentity- the workloadIdentity value to set.- Returns:
- the ManagedClusterSecurityProfile object itself.
-
imageCleaner
Get the imageCleaner property: Image Cleaner settings for the security profile.- Returns:
- the imageCleaner value.
-
withImageCleaner
public ManagedClusterSecurityProfile withImageCleaner(ManagedClusterSecurityProfileImageCleaner imageCleaner) Set the imageCleaner property: Image Cleaner settings for the security profile.- Parameters:
imageCleaner- the imageCleaner value to set.- Returns:
- the ManagedClusterSecurityProfile object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ManagedClusterSecurityProfile>- Throws:
IOException
-
fromJson
public static ManagedClusterSecurityProfile fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ManagedClusterSecurityProfile from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ManagedClusterSecurityProfile 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 ManagedClusterSecurityProfile.
-