1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CheckSchemaVersionValidity`](crate::operation::check_schema_version_validity::builders::CheckSchemaVersionValidityFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`data_format(DataFormat)`](crate::operation::check_schema_version_validity::builders::CheckSchemaVersionValidityFluentBuilder::data_format) / [`set_data_format(Option<DataFormat>)`](crate::operation::check_schema_version_validity::builders::CheckSchemaVersionValidityFluentBuilder::set_data_format):<br>required: **true**<br><p>The data format of the schema definition. Currently <code>AVRO</code>, <code>JSON</code> and <code>PROTOBUF</code> are supported.</p><br>
    ///   - [`schema_definition(impl Into<String>)`](crate::operation::check_schema_version_validity::builders::CheckSchemaVersionValidityFluentBuilder::schema_definition) / [`set_schema_definition(Option<String>)`](crate::operation::check_schema_version_validity::builders::CheckSchemaVersionValidityFluentBuilder::set_schema_definition):<br>required: **true**<br><p>The definition of the schema that has to be validated.</p><br>
    /// - On success, responds with [`CheckSchemaVersionValidityOutput`](crate::operation::check_schema_version_validity::CheckSchemaVersionValidityOutput) with field(s):
    ///   - [`valid(bool)`](crate::operation::check_schema_version_validity::CheckSchemaVersionValidityOutput::valid): <p>Return true, if the schema is valid and false otherwise.</p>
    ///   - [`error(Option<String>)`](crate::operation::check_schema_version_validity::CheckSchemaVersionValidityOutput::error): <p>A validation failure error message.</p>
    /// - On failure, responds with [`SdkError<CheckSchemaVersionValidityError>`](crate::operation::check_schema_version_validity::CheckSchemaVersionValidityError)
    pub fn check_schema_version_validity(
        &self,
    ) -> crate::operation::check_schema_version_validity::builders::CheckSchemaVersionValidityFluentBuilder {
        crate::operation::check_schema_version_validity::builders::CheckSchemaVersionValidityFluentBuilder::new(self.handle.clone())
    }
}