Struct aws_sdk_sagemaker::input::list_hub_contents_input::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for ListHubContentsInput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn hub_name(self, input: impl Into<String>) -> Self
pub fn hub_name(self, input: impl Into<String>) -> Self
The name of the hub to list the contents of.
sourcepub fn set_hub_name(self, input: Option<String>) -> Self
pub fn set_hub_name(self, input: Option<String>) -> Self
The name of the hub to list the contents of.
sourcepub fn hub_content_type(self, input: HubContentType) -> Self
pub fn hub_content_type(self, input: HubContentType) -> Self
The type of hub content to list.
sourcepub fn set_hub_content_type(self, input: Option<HubContentType>) -> Self
pub fn set_hub_content_type(self, input: Option<HubContentType>) -> Self
The type of hub content to list.
sourcepub fn name_contains(self, input: impl Into<String>) -> Self
pub fn name_contains(self, input: impl Into<String>) -> Self
Only list hub content if the name contains the specified string.
sourcepub fn set_name_contains(self, input: Option<String>) -> Self
pub fn set_name_contains(self, input: Option<String>) -> Self
Only list hub content if the name contains the specified string.
sourcepub fn max_schema_version(self, input: impl Into<String>) -> Self
pub fn max_schema_version(self, input: impl Into<String>) -> Self
The upper bound of the hub content schema verion.
sourcepub fn set_max_schema_version(self, input: Option<String>) -> Self
pub fn set_max_schema_version(self, input: Option<String>) -> Self
The upper bound of the hub content schema verion.
sourcepub fn creation_time_before(self, input: DateTime) -> Self
pub fn creation_time_before(self, input: DateTime) -> Self
Only list hub content that was created before the time specified.
sourcepub fn set_creation_time_before(self, input: Option<DateTime>) -> Self
pub fn set_creation_time_before(self, input: Option<DateTime>) -> Self
Only list hub content that was created before the time specified.
sourcepub fn creation_time_after(self, input: DateTime) -> Self
pub fn creation_time_after(self, input: DateTime) -> Self
Only list hub content that was created after the time specified.
sourcepub fn set_creation_time_after(self, input: Option<DateTime>) -> Self
pub fn set_creation_time_after(self, input: Option<DateTime>) -> Self
Only list hub content that was created after the time specified.
sourcepub fn sort_by(self, input: HubContentSortBy) -> Self
pub fn sort_by(self, input: HubContentSortBy) -> Self
Sort hub content versions by either name or creation time.
sourcepub fn set_sort_by(self, input: Option<HubContentSortBy>) -> Self
pub fn set_sort_by(self, input: Option<HubContentSortBy>) -> Self
Sort hub content versions by either name or creation time.
sourcepub fn sort_order(self, input: SortOrder) -> Self
pub fn sort_order(self, input: SortOrder) -> Self
Sort hubs by ascending or descending order.
sourcepub fn set_sort_order(self, input: Option<SortOrder>) -> Self
pub fn set_sort_order(self, input: Option<SortOrder>) -> Self
Sort hubs by ascending or descending order.
sourcepub fn max_results(self, input: i32) -> Self
pub fn max_results(self, input: i32) -> Self
The maximum amount of hub content to list.
sourcepub fn set_max_results(self, input: Option<i32>) -> Self
pub fn set_max_results(self, input: Option<i32>) -> Self
The maximum amount of hub content to list.
sourcepub fn next_token(self, input: impl Into<String>) -> Self
pub fn next_token(self, input: impl Into<String>) -> Self
If the response to a previous ListHubContents
request was truncated, the response includes a NextToken
. To retrieve the next set of hub content, use the token in the next request.
sourcepub fn set_next_token(self, input: Option<String>) -> Self
pub fn set_next_token(self, input: Option<String>) -> Self
If the response to a previous ListHubContents
request was truncated, the response includes a NextToken
. To retrieve the next set of hub content, use the token in the next request.
sourcepub fn build(self) -> Result<ListHubContentsInput, BuildError>
pub fn build(self) -> Result<ListHubContentsInput, BuildError>
Consumes the builder and constructs a ListHubContentsInput
.