pub struct GetModelFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to GetModel
.
Describes an existing model defined for a RestApi resource.
Implementations§
source§impl GetModelFluentBuilder
impl GetModelFluentBuilder
sourcepub fn as_input(&self) -> &GetModelInputBuilder
pub fn as_input(&self) -> &GetModelInputBuilder
Access the GetModel as a reference.
sourcepub async fn send(
self
) -> Result<GetModelOutput, SdkError<GetModelError, HttpResponse>>
pub async fn send( self ) -> Result<GetModelOutput, SdkError<GetModelError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<GetModelOutput, GetModelError>, SdkError<GetModelError>>
pub async fn customize( self ) -> Result<CustomizableOperation<GetModelOutput, GetModelError>, SdkError<GetModelError>>
Consumes this builder, creating a customizable operation that can be modified before being sent.
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.
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.
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
.
Trait Implementations§
source§impl Clone for GetModelFluentBuilder
impl Clone for GetModelFluentBuilder
source§fn clone(&self) -> GetModelFluentBuilder
fn clone(&self) -> GetModelFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more