Struct aws_sdk_dynamodb::types::builders::ProjectionBuilder
source · #[non_exhaustive]pub struct ProjectionBuilder { /* private fields */ }
Expand description
A builder for Projection
.
Implementations§
source§impl ProjectionBuilder
impl ProjectionBuilder
sourcepub fn projection_type(self, input: ProjectionType) -> Self
pub fn projection_type(self, input: ProjectionType) -> Self
The set of attributes that are projected into the index:
-
KEYS_ONLY
- Only the index and primary keys are projected into the index. -
INCLUDE
- In addition to the attributes described inKEYS_ONLY
, the secondary index will include other non-key attributes that you specify. -
ALL
- All of the table attributes are projected into the index.
sourcepub fn set_projection_type(self, input: Option<ProjectionType>) -> Self
pub fn set_projection_type(self, input: Option<ProjectionType>) -> Self
The set of attributes that are projected into the index:
-
KEYS_ONLY
- Only the index and primary keys are projected into the index. -
INCLUDE
- In addition to the attributes described inKEYS_ONLY
, the secondary index will include other non-key attributes that you specify. -
ALL
- All of the table attributes are projected into the index.
sourcepub fn get_projection_type(&self) -> &Option<ProjectionType>
pub fn get_projection_type(&self) -> &Option<ProjectionType>
The set of attributes that are projected into the index:
-
KEYS_ONLY
- Only the index and primary keys are projected into the index. -
INCLUDE
- In addition to the attributes described inKEYS_ONLY
, the secondary index will include other non-key attributes that you specify. -
ALL
- All of the table attributes are projected into the index.
sourcepub fn non_key_attributes(self, input: impl Into<String>) -> Self
pub fn non_key_attributes(self, input: impl Into<String>) -> Self
Appends an item to non_key_attributes
.
To override the contents of this collection use set_non_key_attributes
.
Represents the non-key attribute names which will be projected into the index.
For local secondary indexes, the total count of NonKeyAttributes
summed across all of the local secondary indexes, must not exceed 100. If you project the same attribute into two different indexes, this counts as two distinct attributes when determining the total.
sourcepub fn set_non_key_attributes(self, input: Option<Vec<String>>) -> Self
pub fn set_non_key_attributes(self, input: Option<Vec<String>>) -> Self
Represents the non-key attribute names which will be projected into the index.
For local secondary indexes, the total count of NonKeyAttributes
summed across all of the local secondary indexes, must not exceed 100. If you project the same attribute into two different indexes, this counts as two distinct attributes when determining the total.
sourcepub fn get_non_key_attributes(&self) -> &Option<Vec<String>>
pub fn get_non_key_attributes(&self) -> &Option<Vec<String>>
Represents the non-key attribute names which will be projected into the index.
For local secondary indexes, the total count of NonKeyAttributes
summed across all of the local secondary indexes, must not exceed 100. If you project the same attribute into two different indexes, this counts as two distinct attributes when determining the total.
sourcepub fn build(self) -> Projection
pub fn build(self) -> Projection
Consumes the builder and constructs a Projection
.
Trait Implementations§
source§impl Clone for ProjectionBuilder
impl Clone for ProjectionBuilder
source§fn clone(&self) -> ProjectionBuilder
fn clone(&self) -> ProjectionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ProjectionBuilder
impl Debug for ProjectionBuilder
source§impl Default for ProjectionBuilder
impl Default for ProjectionBuilder
source§fn default() -> ProjectionBuilder
fn default() -> ProjectionBuilder
source§impl PartialEq for ProjectionBuilder
impl PartialEq for ProjectionBuilder
source§fn eq(&self, other: &ProjectionBuilder) -> bool
fn eq(&self, other: &ProjectionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.