Struct aws_sdk_macie2::model::usage_statistics_sort_by::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for UsageStatisticsSortBy
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn key(self, input: UsageStatisticsSortKey) -> Self
pub fn key(self, input: UsageStatisticsSortKey) -> Self
The field to sort the results by.
sourcepub fn set_key(self, input: Option<UsageStatisticsSortKey>) -> Self
pub fn set_key(self, input: Option<UsageStatisticsSortKey>) -> Self
The field to sort the results by.
sourcepub fn order_by(self, input: OrderBy) -> Self
pub fn order_by(self, input: OrderBy) -> Self
The sort order to apply to the results, based on the value for the field specified by the key property. Valid values are: ASC, sort the results in ascending order; and, DESC, sort the results in descending order.
sourcepub fn set_order_by(self, input: Option<OrderBy>) -> Self
pub fn set_order_by(self, input: Option<OrderBy>) -> Self
The sort order to apply to the results, based on the value for the field specified by the key property. Valid values are: ASC, sort the results in ascending order; and, DESC, sort the results in descending order.
sourcepub fn build(self) -> UsageStatisticsSortBy
pub fn build(self) -> UsageStatisticsSortBy
Consumes the builder and constructs a UsageStatisticsSortBy
.