Class UserAccessPolicy


  • public final class UserAccessPolicy
    extends Object
    Get Data Plane read only token request definition.
    • Constructor Detail

      • UserAccessPolicy

        public UserAccessPolicy()
    • Method Detail

      • permissions

        public String 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

        public UserAccessPolicy withPermissions​(String permissions)
        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

        public String 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

        public UserAccessPolicy withAccessResourcePath​(String accessResourcePath)
        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

        public String 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

        public UserAccessPolicy withProfileName​(String profileName)
        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

        public String startTime()
        Get the startTime property: Start time for the token. If not specified the current time will be used.
        Returns:
        the startTime value.
      • withStartTime

        public UserAccessPolicy withStartTime​(String startTime)
        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

        public String 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

        public UserAccessPolicy withExpireTime​(String expireTime)
        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.