#[non_exhaustive]pub struct PutSchemaInputBuilder { /* private fields */ }Expand description
A builder for PutSchemaInput.
Implementations§
source§impl PutSchemaInputBuilder
impl PutSchemaInputBuilder
sourcepub fn policy_store_id(self, input: impl Into<String>) -> Self
pub fn policy_store_id(self, input: impl Into<String>) -> Self
Specifies the ID of the policy store in which to place the schema.
This field is required.sourcepub fn set_policy_store_id(self, input: Option<String>) -> Self
pub fn set_policy_store_id(self, input: Option<String>) -> Self
Specifies the ID of the policy store in which to place the schema.
sourcepub fn get_policy_store_id(&self) -> &Option<String>
pub fn get_policy_store_id(&self) -> &Option<String>
Specifies the ID of the policy store in which to place the schema.
sourcepub fn definition(self, input: SchemaDefinition) -> Self
pub fn definition(self, input: SchemaDefinition) -> Self
Specifies the definition of the schema to be stored. The schema definition must be written in Cedar schema JSON.
This field is required.sourcepub fn set_definition(self, input: Option<SchemaDefinition>) -> Self
pub fn set_definition(self, input: Option<SchemaDefinition>) -> Self
Specifies the definition of the schema to be stored. The schema definition must be written in Cedar schema JSON.
sourcepub fn get_definition(&self) -> &Option<SchemaDefinition>
pub fn get_definition(&self) -> &Option<SchemaDefinition>
Specifies the definition of the schema to be stored. The schema definition must be written in Cedar schema JSON.
sourcepub fn build(self) -> Result<PutSchemaInput, BuildError>
pub fn build(self) -> Result<PutSchemaInput, BuildError>
Consumes the builder and constructs a PutSchemaInput.
source§impl PutSchemaInputBuilder
impl PutSchemaInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<PutSchemaOutput, SdkError<PutSchemaError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<PutSchemaOutput, SdkError<PutSchemaError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for PutSchemaInputBuilder
impl Clone for PutSchemaInputBuilder
source§fn clone(&self) -> PutSchemaInputBuilder
fn clone(&self) -> PutSchemaInputBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for PutSchemaInputBuilder
impl Debug for PutSchemaInputBuilder
source§impl Default for PutSchemaInputBuilder
impl Default for PutSchemaInputBuilder
source§fn default() -> PutSchemaInputBuilder
fn default() -> PutSchemaInputBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for PutSchemaInputBuilder
impl PartialEq for PutSchemaInputBuilder
source§fn eq(&self, other: &PutSchemaInputBuilder) -> bool
fn eq(&self, other: &PutSchemaInputBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for PutSchemaInputBuilder
Auto Trait Implementations§
impl RefUnwindSafe for PutSchemaInputBuilder
impl Send for PutSchemaInputBuilder
impl Sync for PutSchemaInputBuilder
impl Unpin for PutSchemaInputBuilder
impl UnwindSafe for PutSchemaInputBuilder
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
Mutably borrows from an owned value. Read more
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>
Creates a shared type from an unshared type.