#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct InvokeEndpointAsyncOutput {
pub inference_id: ::std::option::Option<::std::string::String>,
pub output_location: ::std::option::Option<::std::string::String>,
pub failure_location: ::std::option::Option<::std::string::String>,
_request_id: Option<String>,
}
impl InvokeEndpointAsyncOutput {
pub fn inference_id(&self) -> ::std::option::Option<&str> {
self.inference_id.as_deref()
}
pub fn output_location(&self) -> ::std::option::Option<&str> {
self.output_location.as_deref()
}
pub fn failure_location(&self) -> ::std::option::Option<&str> {
self.failure_location.as_deref()
}
}
impl ::aws_types::request_id::RequestId for InvokeEndpointAsyncOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl InvokeEndpointAsyncOutput {
pub fn builder() -> crate::operation::invoke_endpoint_async::builders::InvokeEndpointAsyncOutputBuilder {
crate::operation::invoke_endpoint_async::builders::InvokeEndpointAsyncOutputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct InvokeEndpointAsyncOutputBuilder {
pub(crate) inference_id: ::std::option::Option<::std::string::String>,
pub(crate) output_location: ::std::option::Option<::std::string::String>,
pub(crate) failure_location: ::std::option::Option<::std::string::String>,
_request_id: Option<String>,
}
impl InvokeEndpointAsyncOutputBuilder {
pub fn inference_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inference_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_inference_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inference_id = input;
self
}
pub fn get_inference_id(&self) -> &::std::option::Option<::std::string::String> {
&self.inference_id
}
pub fn output_location(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.output_location = ::std::option::Option::Some(input.into());
self
}
pub fn set_output_location(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.output_location = input;
self
}
pub fn get_output_location(&self) -> &::std::option::Option<::std::string::String> {
&self.output_location
}
pub fn failure_location(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.failure_location = ::std::option::Option::Some(input.into());
self
}
pub fn set_failure_location(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.failure_location = input;
self
}
pub fn get_failure_location(&self) -> &::std::option::Option<::std::string::String> {
&self.failure_location
}
pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
self._request_id = Some(request_id.into());
self
}
pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
self._request_id = request_id;
self
}
pub fn build(self) -> crate::operation::invoke_endpoint_async::InvokeEndpointAsyncOutput {
crate::operation::invoke_endpoint_async::InvokeEndpointAsyncOutput {
inference_id: self.inference_id,
output_location: self.output_location,
failure_location: self.failure_location,
_request_id: self._request_id,
}
}
}