aws_sdk_clouddirectory/client/
get_schema_as_json.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 [`GetSchemaAsJson`](crate::operation::get_schema_as_json::builders::GetSchemaAsJsonFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`schema_arn(impl Into<String>)`](crate::operation::get_schema_as_json::builders::GetSchemaAsJsonFluentBuilder::schema_arn) / [`set_schema_arn(Option<String>)`](crate::operation::get_schema_as_json::builders::GetSchemaAsJsonFluentBuilder::set_schema_arn):<br>required: **true**<br><p>The ARN of the schema to retrieve.</p><br>
7    /// - On success, responds with [`GetSchemaAsJsonOutput`](crate::operation::get_schema_as_json::GetSchemaAsJsonOutput) with field(s):
8    ///   - [`name(Option<String>)`](crate::operation::get_schema_as_json::GetSchemaAsJsonOutput::name): <p>The name of the retrieved schema.</p>
9    ///   - [`document(Option<String>)`](crate::operation::get_schema_as_json::GetSchemaAsJsonOutput::document): <p>The JSON representation of the schema document.</p>
10    /// - On failure, responds with [`SdkError<GetSchemaAsJsonError>`](crate::operation::get_schema_as_json::GetSchemaAsJsonError)
11    pub fn get_schema_as_json(&self) -> crate::operation::get_schema_as_json::builders::GetSchemaAsJsonFluentBuilder {
12        crate::operation::get_schema_as_json::builders::GetSchemaAsJsonFluentBuilder::new(self.handle.clone())
13    }
14}