Struct aws_sdk_apigatewayv2::output::export_api_output::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for ExportApiOutput.
Implementations§
source§impl Builder
impl Builder
sourcepub fn body(self, input: Blob) -> Self
pub fn body(self, input: Blob) -> Self
Represents an exported definition of an API in a particular output format, for example, YAML. The API is serialized to the requested specification, for example, OpenAPI 3.0.
sourcepub fn set_body(self, input: Option<Blob>) -> Self
pub fn set_body(self, input: Option<Blob>) -> Self
Represents an exported definition of an API in a particular output format, for example, YAML. The API is serialized to the requested specification, for example, OpenAPI 3.0.
Examples found in repository?
src/operation_deser.rs (lines 2420-2424)
2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427
pub fn parse_export_api_response(
response: &http::Response<bytes::Bytes>,
) -> std::result::Result<crate::output::ExportApiOutput, crate::error::ExportApiError> {
Ok({
#[allow(unused_mut)]
let mut output = crate::output::export_api_output::Builder::default();
let _ = response;
output = output.set_body(
crate::http_serde::deser_payload_export_api_export_api_output_body(
response.body().as_ref(),
)?,
);
output.build()
})
}sourcepub fn build(self) -> ExportApiOutput
pub fn build(self) -> ExportApiOutput
Consumes the builder and constructs a ExportApiOutput.
Examples found in repository?
src/operation_deser.rs (line 2425)
2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427
pub fn parse_export_api_response(
response: &http::Response<bytes::Bytes>,
) -> std::result::Result<crate::output::ExportApiOutput, crate::error::ExportApiError> {
Ok({
#[allow(unused_mut)]
let mut output = crate::output::export_api_output::Builder::default();
let _ = response;
output = output.set_body(
crate::http_serde::deser_payload_export_api_export_api_output_body(
response.body().as_ref(),
)?,
);
output.build()
})
}