#[non_exhaustive]pub struct CreateEntityInputBuilder { /* private fields */ }Expand description
A builder for CreateEntityInput.
Implementations§
source§impl CreateEntityInputBuilder
impl CreateEntityInputBuilder
sourcepub fn workspace_id(self, input: impl Into<String>) -> Self
pub fn workspace_id(self, input: impl Into<String>) -> Self
The ID of the workspace that contains the entity.
This field is required.sourcepub fn set_workspace_id(self, input: Option<String>) -> Self
pub fn set_workspace_id(self, input: Option<String>) -> Self
The ID of the workspace that contains the entity.
sourcepub fn get_workspace_id(&self) -> &Option<String>
pub fn get_workspace_id(&self) -> &Option<String>
The ID of the workspace that contains the entity.
sourcepub fn set_entity_id(self, input: Option<String>) -> Self
pub fn set_entity_id(self, input: Option<String>) -> Self
The ID of the entity.
sourcepub fn get_entity_id(&self) -> &Option<String>
pub fn get_entity_id(&self) -> &Option<String>
The ID of the entity.
sourcepub fn entity_name(self, input: impl Into<String>) -> Self
pub fn entity_name(self, input: impl Into<String>) -> Self
The name of the entity.
This field is required.sourcepub fn set_entity_name(self, input: Option<String>) -> Self
pub fn set_entity_name(self, input: Option<String>) -> Self
The name of the entity.
sourcepub fn get_entity_name(&self) -> &Option<String>
pub fn get_entity_name(&self) -> &Option<String>
The name of the entity.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description of the entity.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description of the entity.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The description of the entity.
sourcepub fn components(self, k: impl Into<String>, v: ComponentRequest) -> Self
pub fn components(self, k: impl Into<String>, v: ComponentRequest) -> Self
Adds a key-value pair to components.
To override the contents of this collection use set_components.
An object that maps strings to the components in the entity. Each string in the mapping must be unique to this object.
sourcepub fn set_components(
self,
input: Option<HashMap<String, ComponentRequest>>
) -> Self
pub fn set_components( self, input: Option<HashMap<String, ComponentRequest>> ) -> Self
An object that maps strings to the components in the entity. Each string in the mapping must be unique to this object.
sourcepub fn get_components(&self) -> &Option<HashMap<String, ComponentRequest>>
pub fn get_components(&self) -> &Option<HashMap<String, ComponentRequest>>
An object that maps strings to the components in the entity. Each string in the mapping must be unique to this object.
sourcepub fn parent_entity_id(self, input: impl Into<String>) -> Self
pub fn parent_entity_id(self, input: impl Into<String>) -> Self
The ID of the entity's parent entity.
sourcepub fn set_parent_entity_id(self, input: Option<String>) -> Self
pub fn set_parent_entity_id(self, input: Option<String>) -> Self
The ID of the entity's parent entity.
sourcepub fn get_parent_entity_id(&self) -> &Option<String>
pub fn get_parent_entity_id(&self) -> &Option<String>
The ID of the entity's parent entity.
Adds a key-value pair to tags.
To override the contents of this collection use set_tags.
Metadata that you can use to manage the entity.
Metadata that you can use to manage the entity.
Metadata that you can use to manage the entity.
sourcepub fn build(self) -> Result<CreateEntityInput, BuildError>
pub fn build(self) -> Result<CreateEntityInput, BuildError>
Consumes the builder and constructs a CreateEntityInput.
source§impl CreateEntityInputBuilder
impl CreateEntityInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateEntityOutput, SdkError<CreateEntityError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateEntityOutput, SdkError<CreateEntityError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateEntityInputBuilder
impl Clone for CreateEntityInputBuilder
source§fn clone(&self) -> CreateEntityInputBuilder
fn clone(&self) -> CreateEntityInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CreateEntityInputBuilder
impl Debug for CreateEntityInputBuilder
source§impl Default for CreateEntityInputBuilder
impl Default for CreateEntityInputBuilder
source§fn default() -> CreateEntityInputBuilder
fn default() -> CreateEntityInputBuilder
source§impl PartialEq for CreateEntityInputBuilder
impl PartialEq for CreateEntityInputBuilder
source§fn eq(&self, other: &CreateEntityInputBuilder) -> bool
fn eq(&self, other: &CreateEntityInputBuilder) -> bool
self and other values to be equal, and is used
by ==.