#[non_exhaustive]pub struct RowLevelPermissionDataSetBuilder { /* private fields */ }
Expand description
A builder for RowLevelPermissionDataSet
.
Implementations§
source§impl RowLevelPermissionDataSetBuilder
impl RowLevelPermissionDataSetBuilder
sourcepub fn namespace(self, input: impl Into<String>) -> Self
pub fn namespace(self, input: impl Into<String>) -> Self
The namespace associated with the dataset that contains permissions for RLS.
sourcepub fn set_namespace(self, input: Option<String>) -> Self
pub fn set_namespace(self, input: Option<String>) -> Self
The namespace associated with the dataset that contains permissions for RLS.
sourcepub fn get_namespace(&self) -> &Option<String>
pub fn get_namespace(&self) -> &Option<String>
The namespace associated with the dataset that contains permissions for RLS.
sourcepub fn arn(self, input: impl Into<String>) -> Self
pub fn arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the dataset that contains permissions for RLS.
This field is required.sourcepub fn set_arn(self, input: Option<String>) -> Self
pub fn set_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the dataset that contains permissions for RLS.
sourcepub fn get_arn(&self) -> &Option<String>
pub fn get_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the dataset that contains permissions for RLS.
sourcepub fn permission_policy(self, input: RowLevelPermissionPolicy) -> Self
pub fn permission_policy(self, input: RowLevelPermissionPolicy) -> Self
The type of permissions to use when interpreting the permissions for RLS. DENY_ACCESS
is included for backward compatibility only.
sourcepub fn set_permission_policy(
self,
input: Option<RowLevelPermissionPolicy>,
) -> Self
pub fn set_permission_policy( self, input: Option<RowLevelPermissionPolicy>, ) -> Self
The type of permissions to use when interpreting the permissions for RLS. DENY_ACCESS
is included for backward compatibility only.
sourcepub fn get_permission_policy(&self) -> &Option<RowLevelPermissionPolicy>
pub fn get_permission_policy(&self) -> &Option<RowLevelPermissionPolicy>
The type of permissions to use when interpreting the permissions for RLS. DENY_ACCESS
is included for backward compatibility only.
sourcepub fn format_version(self, input: RowLevelPermissionFormatVersion) -> Self
pub fn format_version(self, input: RowLevelPermissionFormatVersion) -> Self
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.
sourcepub fn set_format_version(
self,
input: Option<RowLevelPermissionFormatVersion>,
) -> Self
pub fn set_format_version( self, input: Option<RowLevelPermissionFormatVersion>, ) -> Self
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.
sourcepub fn get_format_version(&self) -> &Option<RowLevelPermissionFormatVersion>
pub fn get_format_version(&self) -> &Option<RowLevelPermissionFormatVersion>
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.
sourcepub fn status(self, input: Status) -> Self
pub fn status(self, input: Status) -> Self
The status of the row-level security permission dataset. If enabled, the status is ENABLED
. If disabled, the status is DISABLED
.
sourcepub fn set_status(self, input: Option<Status>) -> Self
pub fn set_status(self, input: Option<Status>) -> Self
The status of the row-level security permission dataset. If enabled, the status is ENABLED
. If disabled, the status is DISABLED
.
sourcepub fn get_status(&self) -> &Option<Status>
pub fn get_status(&self) -> &Option<Status>
The status of the row-level security permission dataset. If enabled, the status is ENABLED
. If disabled, the status is DISABLED
.
sourcepub fn build(self) -> Result<RowLevelPermissionDataSet, BuildError>
pub fn build(self) -> Result<RowLevelPermissionDataSet, BuildError>
Consumes the builder and constructs a RowLevelPermissionDataSet
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for RowLevelPermissionDataSetBuilder
impl Clone for RowLevelPermissionDataSetBuilder
source§fn clone(&self) -> RowLevelPermissionDataSetBuilder
fn clone(&self) -> RowLevelPermissionDataSetBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for RowLevelPermissionDataSetBuilder
impl Default for RowLevelPermissionDataSetBuilder
source§fn default() -> RowLevelPermissionDataSetBuilder
fn default() -> RowLevelPermissionDataSetBuilder
source§impl PartialEq for RowLevelPermissionDataSetBuilder
impl PartialEq for RowLevelPermissionDataSetBuilder
source§fn eq(&self, other: &RowLevelPermissionDataSetBuilder) -> bool
fn eq(&self, other: &RowLevelPermissionDataSetBuilder) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for RowLevelPermissionDataSetBuilder
Auto Trait Implementations§
impl Freeze for RowLevelPermissionDataSetBuilder
impl RefUnwindSafe for RowLevelPermissionDataSetBuilder
impl Send for RowLevelPermissionDataSetBuilder
impl Sync for RowLevelPermissionDataSetBuilder
impl Unpin for RowLevelPermissionDataSetBuilder
impl UnwindSafe for RowLevelPermissionDataSetBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more