Class GrantAccessData

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

public final class GrantAccessData extends Object
Data used for requesting a SAS.
  • Constructor Details

    • GrantAccessData

      public GrantAccessData()
  • Method Details

    • access

      public AccessLevel access()
      Get the access property: The access property.
      Returns:
      the access value.
    • withAccess

      public GrantAccessData withAccess(AccessLevel access)
      Set the access property: The access property.
      Parameters:
      access - the access value to set.
      Returns:
      the GrantAccessData object itself.
    • durationInSeconds

      public int durationInSeconds()
      Get the durationInSeconds property: Time duration in seconds until the SAS access expires.
      Returns:
      the durationInSeconds value.
    • withDurationInSeconds

      public GrantAccessData withDurationInSeconds(int durationInSeconds)
      Set the durationInSeconds property: Time duration in seconds until the SAS access expires.
      Parameters:
      durationInSeconds - the durationInSeconds value to set.
      Returns:
      the GrantAccessData object itself.
    • getSecureVMGuestStateSas

      public Boolean getSecureVMGuestStateSas()
      Get the getSecureVMGuestStateSas property: Set this flag to true to get additional SAS for VM guest state.
      Returns:
      the getSecureVMGuestStateSas value.
    • withGetSecureVMGuestStateSas

      public GrantAccessData withGetSecureVMGuestStateSas(Boolean getSecureVMGuestStateSas)
      Set the getSecureVMGuestStateSas property: Set this flag to true to get additional SAS for VM guest state.
      Parameters:
      getSecureVMGuestStateSas - the getSecureVMGuestStateSas value to set.
      Returns:
      the GrantAccessData object itself.
    • validate

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