1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateEntity`](crate::operation::create_entity::builders::CreateEntityFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`workspace_id(impl Into<String>)`](crate::operation::create_entity::builders::CreateEntityFluentBuilder::workspace_id) / [`set_workspace_id(Option<String>)`](crate::operation::create_entity::builders::CreateEntityFluentBuilder::set_workspace_id): <p>The ID of the workspace that contains the entity.</p>
    ///   - [`entity_id(impl Into<String>)`](crate::operation::create_entity::builders::CreateEntityFluentBuilder::entity_id) / [`set_entity_id(Option<String>)`](crate::operation::create_entity::builders::CreateEntityFluentBuilder::set_entity_id): <p>The ID of the entity.</p>
    ///   - [`entity_name(impl Into<String>)`](crate::operation::create_entity::builders::CreateEntityFluentBuilder::entity_name) / [`set_entity_name(Option<String>)`](crate::operation::create_entity::builders::CreateEntityFluentBuilder::set_entity_name): <p>The name of the entity.</p>
    ///   - [`description(impl Into<String>)`](crate::operation::create_entity::builders::CreateEntityFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_entity::builders::CreateEntityFluentBuilder::set_description): <p>The description of the entity.</p>
    ///   - [`components(HashMap<String, ComponentRequest>)`](crate::operation::create_entity::builders::CreateEntityFluentBuilder::components) / [`set_components(Option<HashMap<String, ComponentRequest>>)`](crate::operation::create_entity::builders::CreateEntityFluentBuilder::set_components): <p>An object that maps strings to the components in the entity. Each string in the mapping must be unique to this object.</p>
    ///   - [`parent_entity_id(impl Into<String>)`](crate::operation::create_entity::builders::CreateEntityFluentBuilder::parent_entity_id) / [`set_parent_entity_id(Option<String>)`](crate::operation::create_entity::builders::CreateEntityFluentBuilder::set_parent_entity_id): <p>The ID of the entity's parent entity.</p>
    ///   - [`tags(HashMap<String, String>)`](crate::operation::create_entity::builders::CreateEntityFluentBuilder::tags) / [`set_tags(Option<HashMap<String, String>>)`](crate::operation::create_entity::builders::CreateEntityFluentBuilder::set_tags): <p>Metadata that you can use to manage the entity.</p>
    /// - On success, responds with [`CreateEntityOutput`](crate::operation::create_entity::CreateEntityOutput) with field(s):
    ///   - [`entity_id(Option<String>)`](crate::operation::create_entity::CreateEntityOutput::entity_id): <p>The ID of the entity.</p>
    ///   - [`arn(Option<String>)`](crate::operation::create_entity::CreateEntityOutput::arn): <p>The ARN of the entity.</p>
    ///   - [`creation_date_time(Option<DateTime>)`](crate::operation::create_entity::CreateEntityOutput::creation_date_time): <p>The date and time when the entity was created.</p>
    ///   - [`state(Option<State>)`](crate::operation::create_entity::CreateEntityOutput::state): <p>The current state of the entity.</p>
    /// - On failure, responds with [`SdkError<CreateEntityError>`](crate::operation::create_entity::CreateEntityError)
    pub fn create_entity(
        &self,
    ) -> crate::operation::create_entity::builders::CreateEntityFluentBuilder {
        crate::operation::create_entity::builders::CreateEntityFluentBuilder::new(
            self.handle.clone(),
        )
    }
}