Class UserAccessPolicy
java.lang.Object
com.azure.resourcemanager.datafactory.models.UserAccessPolicy
Get Data Plane read only token request definition.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the accessResourcePath property: The resource path to get access relative to factory.Get the expireTime property: Expiration time for the token.Get the permissions property: The string with permissions for Data Plane access.Get the profileName property: The name of the profile.Get the startTime property: Start time for the token.void
validate()
Validates the instance.withAccessResourcePath
(String accessResourcePath) Set the accessResourcePath property: The resource path to get access relative to factory.withExpireTime
(String expireTime) Set the expireTime property: Expiration time for the token.withPermissions
(String permissions) Set the permissions property: The string with permissions for Data Plane access.withProfileName
(String profileName) Set the profileName property: The name of the profile.withStartTime
(String startTime) Set the startTime property: Start time for the token.
-
Constructor Details
-
UserAccessPolicy
public UserAccessPolicy()Creates an instance of UserAccessPolicy class.
-
-
Method Details
-
permissions
Get the permissions property: The string with permissions for Data Plane access. Currently only 'r' is supported which grants read only access.- Returns:
- the permissions value.
-
withPermissions
Set the permissions property: The string with permissions for Data Plane access. Currently only 'r' is supported which grants read only access.- Parameters:
permissions
- the permissions value to set.- Returns:
- the UserAccessPolicy object itself.
-
accessResourcePath
Get the accessResourcePath property: The resource path to get access relative to factory. Currently only empty string is supported which corresponds to the factory resource.- Returns:
- the accessResourcePath value.
-
withAccessResourcePath
Set the accessResourcePath property: The resource path to get access relative to factory. Currently only empty string is supported which corresponds to the factory resource.- Parameters:
accessResourcePath
- the accessResourcePath value to set.- Returns:
- the UserAccessPolicy object itself.
-
profileName
Get the profileName property: The name of the profile. Currently only the default is supported. The default value is DefaultProfile.- Returns:
- the profileName value.
-
withProfileName
Set the profileName property: The name of the profile. Currently only the default is supported. The default value is DefaultProfile.- Parameters:
profileName
- the profileName value to set.- Returns:
- the UserAccessPolicy object itself.
-
startTime
Get the startTime property: Start time for the token. If not specified the current time will be used.- Returns:
- the startTime value.
-
withStartTime
Set the startTime property: Start time for the token. If not specified the current time will be used.- Parameters:
startTime
- the startTime value to set.- Returns:
- the UserAccessPolicy object itself.
-
expireTime
Get the expireTime property: Expiration time for the token. Maximum duration for the token is eight hours and by default the token will expire in eight hours.- Returns:
- the expireTime value.
-
withExpireTime
Set the expireTime property: Expiration time for the token. Maximum duration for the token is eight hours and by default the token will expire in eight hours.- Parameters:
expireTime
- the expireTime value to set.- Returns:
- the UserAccessPolicy object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-