#[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 composite_components(
self,
k: impl Into<String>,
v: CompositeComponentRequest,
) -> Self
pub fn composite_components( self, k: impl Into<String>, v: CompositeComponentRequest, ) -> Self
Adds a key-value pair to composite_components.
To override the contents of this collection use set_composite_components.
This is an object that maps strings to compositeComponent updates in the request. Each key of the map represents the componentPath of the compositeComponent.
sourcepub fn set_composite_components(
self,
input: Option<HashMap<String, CompositeComponentRequest>>,
) -> Self
pub fn set_composite_components( self, input: Option<HashMap<String, CompositeComponentRequest>>, ) -> Self
This is an object that maps strings to compositeComponent updates in the request. Each key of the map represents the componentPath of the compositeComponent.
sourcepub fn get_composite_components(
&self,
) -> &Option<HashMap<String, CompositeComponentRequest>>
pub fn get_composite_components( &self, ) -> &Option<HashMap<String, CompositeComponentRequest>>
This is an object that maps strings to compositeComponent updates in the request. Each key of the map represents the componentPath of the compositeComponent.
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
impl StructuralPartialEq for CreateEntityInputBuilder
Auto Trait Implementations§
impl Freeze for CreateEntityInputBuilder
impl RefUnwindSafe for CreateEntityInputBuilder
impl Send for CreateEntityInputBuilder
impl Sync for CreateEntityInputBuilder
impl Unpin for CreateEntityInputBuilder
impl UnwindSafe for CreateEntityInputBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more