#[non_exhaustive]pub struct GetModelInputBuilder { /* private fields */ }Expand description
A builder for GetModelInput.
Implementations§
source§impl GetModelInputBuilder
impl GetModelInputBuilder
sourcepub fn rest_api_id(self, input: impl Into<String>) -> Self
pub fn rest_api_id(self, input: impl Into<String>) -> Self
The RestApi identifier under which the Model exists.
This field is required.sourcepub fn set_rest_api_id(self, input: Option<String>) -> Self
pub fn set_rest_api_id(self, input: Option<String>) -> Self
The RestApi identifier under which the Model exists.
sourcepub fn get_rest_api_id(&self) -> &Option<String>
pub fn get_rest_api_id(&self) -> &Option<String>
The RestApi identifier under which the Model exists.
sourcepub fn model_name(self, input: impl Into<String>) -> Self
pub fn model_name(self, input: impl Into<String>) -> Self
The name of the model as an identifier.
This field is required.sourcepub fn set_model_name(self, input: Option<String>) -> Self
pub fn set_model_name(self, input: Option<String>) -> Self
The name of the model as an identifier.
sourcepub fn get_model_name(&self) -> &Option<String>
pub fn get_model_name(&self) -> &Option<String>
The name of the model as an identifier.
sourcepub fn flatten(self, input: bool) -> Self
pub fn flatten(self, input: bool) -> Self
A query parameter of a Boolean value to resolve (true) all external model references and returns a flattened model schema or not (false) The default is false.
sourcepub fn set_flatten(self, input: Option<bool>) -> Self
pub fn set_flatten(self, input: Option<bool>) -> Self
A query parameter of a Boolean value to resolve (true) all external model references and returns a flattened model schema or not (false) The default is false.
sourcepub fn get_flatten(&self) -> &Option<bool>
pub fn get_flatten(&self) -> &Option<bool>
A query parameter of a Boolean value to resolve (true) all external model references and returns a flattened model schema or not (false) The default is false.
sourcepub fn build(self) -> Result<GetModelInput, BuildError>
pub fn build(self) -> Result<GetModelInput, BuildError>
Consumes the builder and constructs a GetModelInput.
source§impl GetModelInputBuilder
impl GetModelInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<GetModelOutput, SdkError<GetModelError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<GetModelOutput, SdkError<GetModelError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for GetModelInputBuilder
impl Clone for GetModelInputBuilder
source§fn clone(&self) -> GetModelInputBuilder
fn clone(&self) -> GetModelInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for GetModelInputBuilder
impl Debug for GetModelInputBuilder
source§impl Default for GetModelInputBuilder
impl Default for GetModelInputBuilder
source§fn default() -> GetModelInputBuilder
fn default() -> GetModelInputBuilder
source§impl PartialEq for GetModelInputBuilder
impl PartialEq for GetModelInputBuilder
source§fn eq(&self, other: &GetModelInputBuilder) -> bool
fn eq(&self, other: &GetModelInputBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for GetModelInputBuilder
Auto Trait Implementations§
impl Freeze for GetModelInputBuilder
impl RefUnwindSafe for GetModelInputBuilder
impl Send for GetModelInputBuilder
impl Sync for GetModelInputBuilder
impl Unpin for GetModelInputBuilder
impl UnwindSafe for GetModelInputBuilder
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> 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