Class GrantAccessData
java.lang.Object
com.azure.resourcemanager.compute.models.GrantAccessData
Data used for requesting a SAS.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccess()Get the access property: The access property.intGet the durationInSeconds property: Time duration in seconds until the SAS access expires.Get the getSecureVMGuestStateSas property: Set this flag to true to get additional SAS for VM guest state.voidvalidate()Validates the instance.withAccess(AccessLevel access) Set the access property: The access property.withDurationInSeconds(int durationInSeconds) Set the durationInSeconds property: Time duration in seconds until the SAS access expires.withGetSecureVMGuestStateSas(Boolean getSecureVMGuestStateSas) Set the getSecureVMGuestStateSas property: Set this flag to true to get additional SAS for VM guest state.
-
Constructor Details
-
GrantAccessData
public GrantAccessData()
-
-
Method Details
-
access
Get the access property: The access property.- Returns:
- the access value.
-
withAccess
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
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
Get the getSecureVMGuestStateSas property: Set this flag to true to get additional SAS for VM guest state.- Returns:
- the getSecureVMGuestStateSas value.
-
withGetSecureVMGuestStateSas
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.
-