Struct aws_sdk_dynamodb::model::attribute_definition::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for AttributeDefinition
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn attribute_name(self, input: impl Into<String>) -> Self
pub fn attribute_name(self, input: impl Into<String>) -> Self
A name for the attribute.
sourcepub fn set_attribute_name(self, input: Option<String>) -> Self
pub fn set_attribute_name(self, input: Option<String>) -> Self
A name for the attribute.
sourcepub fn attribute_type(self, input: ScalarAttributeType) -> Self
pub fn attribute_type(self, input: ScalarAttributeType) -> Self
The data type for the attribute, where:
-
S
- the attribute is of type String -
N
- the attribute is of type Number -
B
- the attribute is of type Binary
sourcepub fn set_attribute_type(self, input: Option<ScalarAttributeType>) -> Self
pub fn set_attribute_type(self, input: Option<ScalarAttributeType>) -> Self
The data type for the attribute, where:
-
S
- the attribute is of type String -
N
- the attribute is of type Number -
B
- the attribute is of type Binary
sourcepub fn build(self) -> AttributeDefinition
pub fn build(self) -> AttributeDefinition
Consumes the builder and constructs a AttributeDefinition
.