Class GrantAccessData
- java.lang.Object
-
- com.azure.resourcemanager.compute.models.GrantAccessData
-
public final class GrantAccessData extends Object
Data used for requesting a SAS.
-
-
Constructor Summary
Constructors Constructor Description GrantAccessData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccessLevelaccess()Get the access property: The access property.intdurationInSeconds()Get the durationInSeconds property: Time duration in seconds until the SAS access expires.BooleangetSecureVMGuestStateSas()Get the getSecureVMGuestStateSas property: Set this flag to true to get additional SAS for VM guest state.voidvalidate()Validates the instance.GrantAccessDatawithAccess(AccessLevel access)Set the access property: The access property.GrantAccessDatawithDurationInSeconds(int durationInSeconds)Set the durationInSeconds property: Time duration in seconds until the SAS access expires.GrantAccessDatawithGetSecureVMGuestStateSas(Boolean getSecureVMGuestStateSas)Set the getSecureVMGuestStateSas property: Set this flag to true to get additional SAS for VM guest state.
-
-
-
Method Detail
-
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.
-
-