Class SecurityPostureReference

java.lang.Object
com.azure.resourcemanager.compute.models.SecurityPostureReference

public final class SecurityPostureReference extends Object
Specifies the security posture to be used in the scale set. Minimum api-version: 2023-03-01.
  • Constructor Details

    • SecurityPostureReference

      public SecurityPostureReference()
      Creates an instance of SecurityPostureReference class.
  • Method Details

    • id

      public String id()
      Get the id property: The security posture reference id in the form of /CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|latest.
      Returns:
      the id value.
    • withId

      public SecurityPostureReference withId(String id)
      Set the id property: The security posture reference id in the form of /CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|latest.
      Parameters:
      id - the id value to set.
      Returns:
      the SecurityPostureReference object itself.
    • excludeExtensions

      public List<String> excludeExtensions()
      Get the excludeExtensions property: The list of virtual machine extension names to exclude when applying the security posture.
      Returns:
      the excludeExtensions value.
    • withExcludeExtensions

      public SecurityPostureReference withExcludeExtensions(List<String> excludeExtensions)
      Set the excludeExtensions property: The list of virtual machine extension names to exclude when applying the security posture.
      Parameters:
      excludeExtensions - the excludeExtensions value to set.
      Returns:
      the SecurityPostureReference object itself.
    • isOverridable

      public Boolean isOverridable()
      Get the isOverridable property: Whether the security posture can be overridden by the user.
      Returns:
      the isOverridable value.
    • withIsOverridable

      public SecurityPostureReference withIsOverridable(Boolean isOverridable)
      Set the isOverridable property: Whether the security posture can be overridden by the user.
      Parameters:
      isOverridable - the isOverridable value to set.
      Returns:
      the SecurityPostureReference object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.