Skip to main content

aws_sdk_sagemaker/client/
list_job_schema_versions.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`ListJobSchemaVersions`](crate::operation::list_job_schema_versions::builders::ListJobSchemaVersionsFluentBuilder) operation.
4    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_job_schema_versions::builders::ListJobSchemaVersionsFluentBuilder::into_paginator).
5    ///
6    /// - The fluent builder is configurable:
7    ///   - [`job_category(JobCategory)`](crate::operation::list_job_schema_versions::builders::ListJobSchemaVersionsFluentBuilder::job_category) / [`set_job_category(Option<JobCategory>)`](crate::operation::list_job_schema_versions::builders::ListJobSchemaVersionsFluentBuilder::set_job_category):<br>required: **true**<br><p>The category of job schemas to list.</p><br>
8    ///   - [`next_token(impl Into<String>)`](crate::operation::list_job_schema_versions::builders::ListJobSchemaVersionsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_job_schema_versions::builders::ListJobSchemaVersionsFluentBuilder::set_next_token):<br>required: **false**<br><p>If the previous response was truncated, this token retrieves the next set of results.</p><br>
9    ///   - [`max_results(i32)`](crate::operation::list_job_schema_versions::builders::ListJobSchemaVersionsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_job_schema_versions::builders::ListJobSchemaVersionsFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of schema versions to return in the response. The default value is 5.</p><br>
10    /// - On success, responds with [`ListJobSchemaVersionsOutput`](crate::operation::list_job_schema_versions::ListJobSchemaVersionsOutput) with field(s):
11    ///   - [`next_token(Option<String>)`](crate::operation::list_job_schema_versions::ListJobSchemaVersionsOutput::next_token): <p>If the response is truncated, this token retrieves the next set of results.</p>
12    ///   - [`job_config_schemas(Option<Vec::<JobConfigSchemaVersionSummary>>)`](crate::operation::list_job_schema_versions::ListJobSchemaVersionsOutput::job_config_schemas): <p>An array of <code>JobConfigSchemaVersionSummary</code> objects listing the available schema versions.</p>
13    /// - On failure, responds with [`SdkError<ListJobSchemaVersionsError>`](crate::operation::list_job_schema_versions::ListJobSchemaVersionsError)
14    pub fn list_job_schema_versions(&self) -> crate::operation::list_job_schema_versions::builders::ListJobSchemaVersionsFluentBuilder {
15        crate::operation::list_job_schema_versions::builders::ListJobSchemaVersionsFluentBuilder::new(self.handle.clone())
16    }
17}