Struct aws_sdk_apigateway::client::fluent_builders::GetModel
source · pub struct GetModel { /* private fields */ }Expand description
Fluent builder constructing a request to GetModel.
Describes an existing model defined for a RestApi resource.
Implementations§
source§impl GetModel
impl GetModel
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<GetModel, AwsResponseRetryClassifier>, SdkError<GetModelError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<GetModel, AwsResponseRetryClassifier>, SdkError<GetModelError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(self) -> Result<GetModelOutput, SdkError<GetModelError>>
pub async fn send(self) -> Result<GetModelOutput, SdkError<GetModelError>>
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 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 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 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.