Struct aws_sdk_iotfleetwise::model::attribute::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for Attribute
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn fully_qualified_name(self, input: impl Into<String>) -> Self
pub fn fully_qualified_name(self, input: impl Into<String>) -> Self
The fully qualified name of the attribute. For example, the fully qualified name of an attribute might be Vehicle.Body.Engine.Type
.
sourcepub fn set_fully_qualified_name(self, input: Option<String>) -> Self
pub fn set_fully_qualified_name(self, input: Option<String>) -> Self
The fully qualified name of the attribute. For example, the fully qualified name of an attribute might be Vehicle.Body.Engine.Type
.
sourcepub fn data_type(self, input: NodeDataType) -> Self
pub fn data_type(self, input: NodeDataType) -> Self
The specified data type of the attribute.
sourcepub fn set_data_type(self, input: Option<NodeDataType>) -> Self
pub fn set_data_type(self, input: Option<NodeDataType>) -> Self
The specified data type of the attribute.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A brief description of the attribute.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A brief description of the attribute.
sourcepub fn allowed_values(self, input: impl Into<String>) -> Self
pub fn allowed_values(self, input: impl Into<String>) -> Self
Appends an item to allowed_values
.
To override the contents of this collection use set_allowed_values
.
A list of possible values an attribute can be assigned.
sourcepub fn set_allowed_values(self, input: Option<Vec<String>>) -> Self
pub fn set_allowed_values(self, input: Option<Vec<String>>) -> Self
A list of possible values an attribute can be assigned.
sourcepub fn set_min(self, input: Option<f64>) -> Self
pub fn set_min(self, input: Option<f64>) -> Self
The specified possible minimum value of the attribute.
sourcepub fn set_max(self, input: Option<f64>) -> Self
pub fn set_max(self, input: Option<f64>) -> Self
The specified possible maximum value of the attribute.
sourcepub fn assigned_value(self, input: impl Into<String>) -> Self
👎Deprecated: assignedValue is no longer in use
pub fn assigned_value(self, input: impl Into<String>) -> Self
A specified value for the attribute.
sourcepub fn set_assigned_value(self, input: Option<String>) -> Self
👎Deprecated: assignedValue is no longer in use
pub fn set_assigned_value(self, input: Option<String>) -> Self
A specified value for the attribute.
sourcepub fn default_value(self, input: impl Into<String>) -> Self
pub fn default_value(self, input: impl Into<String>) -> Self
The default value of the attribute.
sourcepub fn set_default_value(self, input: Option<String>) -> Self
pub fn set_default_value(self, input: Option<String>) -> Self
The default value of the attribute.