Class RowLevelPermissionDataSet

    • Method Detail

      • namespace

        public final String namespace()

        The namespace associated with the dataset that contains permissions for RLS.

        Returns:
        The namespace associated with the dataset that contains permissions for RLS.
      • arn

        public final String arn()

        The Amazon Resource Name (ARN) of the dataset that contains permissions for RLS.

        Returns:
        The Amazon Resource Name (ARN) of the dataset that contains permissions for RLS.
      • permissionPolicyAsString

        public final String permissionPolicyAsString()

        The type of permissions to use when interpreting the permissions for RLS. DENY_ACCESS is included for backward compatibility only.

        If the service returns an enum value that is not available in the current SDK version, permissionPolicy will return RowLevelPermissionPolicy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from permissionPolicyAsString().

        Returns:
        The type of permissions to use when interpreting the permissions for RLS. DENY_ACCESS is included for backward compatibility only.
        See Also:
        RowLevelPermissionPolicy
      • formatVersion

        public final RowLevelPermissionFormatVersion formatVersion()

        The user or group rules associated with the dataset that contains permissions for RLS.

        By default, FormatVersion is VERSION_1. When FormatVersion is VERSION_1, UserName and GroupName are required. When FormatVersion is VERSION_2, UserARN and GroupARN are required, and Namespace must not exist.

        If the service returns an enum value that is not available in the current SDK version, formatVersion will return RowLevelPermissionFormatVersion.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from formatVersionAsString().

        Returns:
        The user or group rules associated with the dataset that contains permissions for RLS.

        By default, FormatVersion is VERSION_1. When FormatVersion is VERSION_1, UserName and GroupName are required. When FormatVersion is VERSION_2, UserARN and GroupARN are required, and Namespace must not exist.

        See Also:
        RowLevelPermissionFormatVersion
      • formatVersionAsString

        public final String formatVersionAsString()

        The user or group rules associated with the dataset that contains permissions for RLS.

        By default, FormatVersion is VERSION_1. When FormatVersion is VERSION_1, UserName and GroupName are required. When FormatVersion is VERSION_2, UserARN and GroupARN are required, and Namespace must not exist.

        If the service returns an enum value that is not available in the current SDK version, formatVersion will return RowLevelPermissionFormatVersion.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from formatVersionAsString().

        Returns:
        The user or group rules associated with the dataset that contains permissions for RLS.

        By default, FormatVersion is VERSION_1. When FormatVersion is VERSION_1, UserName and GroupName are required. When FormatVersion is VERSION_2, UserARN and GroupARN are required, and Namespace must not exist.

        See Also:
        RowLevelPermissionFormatVersion
      • status

        public final Status status()

        The status of the row-level security permission dataset. If enabled, the status is ENABLED. If disabled, the status is DISABLED.

        If the service returns an enum value that is not available in the current SDK version, status will return Status.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from statusAsString().

        Returns:
        The status of the row-level security permission dataset. If enabled, the status is ENABLED. If disabled, the status is DISABLED.
        See Also:
        Status
      • statusAsString

        public final String statusAsString()

        The status of the row-level security permission dataset. If enabled, the status is ENABLED. If disabled, the status is DISABLED.

        If the service returns an enum value that is not available in the current SDK version, status will return Status.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from statusAsString().

        Returns:
        The status of the row-level security permission dataset. If enabled, the status is ENABLED. If disabled, the status is DISABLED.
        See Also:
        Status
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)