#[non_exhaustive]pub struct GetSchemaOutputBuilder { /* private fields */ }Expand description
A builder for GetSchemaOutput.
Implementations§
source§impl GetSchemaOutputBuilder
impl GetSchemaOutputBuilder
sourcepub fn policy_store_id(self, input: impl Into<String>) -> Self
pub fn policy_store_id(self, input: impl Into<String>) -> Self
The ID of the policy store that contains 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
The ID of the policy store that contains the schema.
sourcepub fn get_policy_store_id(&self) -> &Option<String>
pub fn get_policy_store_id(&self) -> &Option<String>
The ID of the policy store that contains the schema.
sourcepub fn schema(self, input: impl Into<String>) -> Self
pub fn schema(self, input: impl Into<String>) -> Self
The body of the schema, written in Cedar schema JSON.
This field is required.sourcepub fn set_schema(self, input: Option<String>) -> Self
pub fn set_schema(self, input: Option<String>) -> Self
The body of the schema, written in Cedar schema JSON.
sourcepub fn get_schema(&self) -> &Option<String>
pub fn get_schema(&self) -> &Option<String>
The body of the schema, written in Cedar schema JSON.
sourcepub fn created_date(self, input: DateTime) -> Self
pub fn created_date(self, input: DateTime) -> Self
The date and time that the schema was originally created.
This field is required.sourcepub fn set_created_date(self, input: Option<DateTime>) -> Self
pub fn set_created_date(self, input: Option<DateTime>) -> Self
The date and time that the schema was originally created.
sourcepub fn get_created_date(&self) -> &Option<DateTime>
pub fn get_created_date(&self) -> &Option<DateTime>
The date and time that the schema was originally created.
sourcepub fn last_updated_date(self, input: DateTime) -> Self
pub fn last_updated_date(self, input: DateTime) -> Self
The date and time that the schema was most recently updated.
This field is required.sourcepub fn set_last_updated_date(self, input: Option<DateTime>) -> Self
pub fn set_last_updated_date(self, input: Option<DateTime>) -> Self
The date and time that the schema was most recently updated.
sourcepub fn get_last_updated_date(&self) -> &Option<DateTime>
pub fn get_last_updated_date(&self) -> &Option<DateTime>
The date and time that the schema was most recently updated.
sourcepub fn namespaces(self, input: impl Into<String>) -> Self
pub fn namespaces(self, input: impl Into<String>) -> Self
Appends an item to namespaces.
To override the contents of this collection use set_namespaces.
The namespaces of the entities referenced by this schema.
sourcepub fn set_namespaces(self, input: Option<Vec<String>>) -> Self
pub fn set_namespaces(self, input: Option<Vec<String>>) -> Self
The namespaces of the entities referenced by this schema.
sourcepub fn get_namespaces(&self) -> &Option<Vec<String>>
pub fn get_namespaces(&self) -> &Option<Vec<String>>
The namespaces of the entities referenced by this schema.
sourcepub fn build(self) -> Result<GetSchemaOutput, BuildError>
pub fn build(self) -> Result<GetSchemaOutput, BuildError>
Consumes the builder and constructs a GetSchemaOutput.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for GetSchemaOutputBuilder
impl Clone for GetSchemaOutputBuilder
source§fn clone(&self) -> GetSchemaOutputBuilder
fn clone(&self) -> GetSchemaOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for GetSchemaOutputBuilder
impl Debug for GetSchemaOutputBuilder
source§impl Default for GetSchemaOutputBuilder
impl Default for GetSchemaOutputBuilder
source§fn default() -> GetSchemaOutputBuilder
fn default() -> GetSchemaOutputBuilder
source§impl PartialEq for GetSchemaOutputBuilder
impl PartialEq for GetSchemaOutputBuilder
source§fn eq(&self, other: &GetSchemaOutputBuilder) -> bool
fn eq(&self, other: &GetSchemaOutputBuilder) -> bool
self and other values to be equal, and is used
by ==.