aws_sdk_robomaker/client/
create_world_template.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 [`CreateWorldTemplate`](crate::operation::create_world_template::builders::CreateWorldTemplateFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`client_request_token(impl Into<String>)`](crate::operation::create_world_template::builders::CreateWorldTemplateFluentBuilder::client_request_token) / [`set_client_request_token(Option<String>)`](crate::operation::create_world_template::builders::CreateWorldTemplateFluentBuilder::set_client_request_token):<br>required: **false**<br><p>Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.</p><br>
7    ///   - [`name(impl Into<String>)`](crate::operation::create_world_template::builders::CreateWorldTemplateFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_world_template::builders::CreateWorldTemplateFluentBuilder::set_name):<br>required: **false**<br><p>The name of the world template.</p><br>
8    ///   - [`template_body(impl Into<String>)`](crate::operation::create_world_template::builders::CreateWorldTemplateFluentBuilder::template_body) / [`set_template_body(Option<String>)`](crate::operation::create_world_template::builders::CreateWorldTemplateFluentBuilder::set_template_body):<br>required: **false**<br><p>The world template body.</p><br>
9    ///   - [`template_location(TemplateLocation)`](crate::operation::create_world_template::builders::CreateWorldTemplateFluentBuilder::template_location) / [`set_template_location(Option<TemplateLocation>)`](crate::operation::create_world_template::builders::CreateWorldTemplateFluentBuilder::set_template_location):<br>required: **false**<br><p>The location of the world template.</p><br>
10    ///   - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_world_template::builders::CreateWorldTemplateFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_world_template::builders::CreateWorldTemplateFluentBuilder::set_tags):<br>required: **false**<br><p>A map that contains tag keys and tag values that are attached to the world template.</p><br>
11    /// - On success, responds with [`CreateWorldTemplateOutput`](crate::operation::create_world_template::CreateWorldTemplateOutput) with field(s):
12    ///   - [`arn(Option<String>)`](crate::operation::create_world_template::CreateWorldTemplateOutput::arn): <p>The Amazon Resource Name (ARN) of the world template.</p>
13    ///   - [`client_request_token(Option<String>)`](crate::operation::create_world_template::CreateWorldTemplateOutput::client_request_token): <p>Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.</p>
14    ///   - [`created_at(Option<DateTime>)`](crate::operation::create_world_template::CreateWorldTemplateOutput::created_at): <p>The time, in milliseconds since the epoch, when the world template was created.</p>
15    ///   - [`name(Option<String>)`](crate::operation::create_world_template::CreateWorldTemplateOutput::name): <p>The name of the world template.</p>
16    ///   - [`tags(Option<HashMap::<String, String>>)`](crate::operation::create_world_template::CreateWorldTemplateOutput::tags): <p>A map that contains tag keys and tag values that are attached to the world template.</p>
17    /// - On failure, responds with [`SdkError<CreateWorldTemplateError>`](crate::operation::create_world_template::CreateWorldTemplateError)
18    pub fn create_world_template(&self) -> crate::operation::create_world_template::builders::CreateWorldTemplateFluentBuilder {
19        crate::operation::create_world_template::builders::CreateWorldTemplateFluentBuilder::new(self.handle.clone())
20    }
21}