#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetPromptFileOutput {
pub prompt_presigned_url: ::std::option::Option<::std::string::String>,
pub last_modified_time: ::std::option::Option<::aws_smithy_types::DateTime>,
pub last_modified_region: ::std::option::Option<::std::string::String>,
_request_id: Option<String>,
}
impl GetPromptFileOutput {
pub fn prompt_presigned_url(&self) -> ::std::option::Option<&str> {
self.prompt_presigned_url.as_deref()
}
pub fn last_modified_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.last_modified_time.as_ref()
}
pub fn last_modified_region(&self) -> ::std::option::Option<&str> {
self.last_modified_region.as_deref()
}
}
impl ::aws_types::request_id::RequestId for GetPromptFileOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl GetPromptFileOutput {
pub fn builder() -> crate::operation::get_prompt_file::builders::GetPromptFileOutputBuilder {
crate::operation::get_prompt_file::builders::GetPromptFileOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetPromptFileOutputBuilder {
pub(crate) prompt_presigned_url: ::std::option::Option<::std::string::String>,
pub(crate) last_modified_time: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) last_modified_region: ::std::option::Option<::std::string::String>,
_request_id: Option<String>,
}
impl GetPromptFileOutputBuilder {
pub fn prompt_presigned_url(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.prompt_presigned_url = ::std::option::Option::Some(input.into());
self
}
pub fn set_prompt_presigned_url(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.prompt_presigned_url = input;
self
}
pub fn get_prompt_presigned_url(&self) -> &::std::option::Option<::std::string::String> {
&self.prompt_presigned_url
}
pub fn last_modified_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.last_modified_time = ::std::option::Option::Some(input);
self
}
pub fn set_last_modified_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.last_modified_time = input;
self
}
pub fn get_last_modified_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.last_modified_time
}
pub fn last_modified_region(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.last_modified_region = ::std::option::Option::Some(input.into());
self
}
pub fn set_last_modified_region(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.last_modified_region = input;
self
}
pub fn get_last_modified_region(&self) -> &::std::option::Option<::std::string::String> {
&self.last_modified_region
}
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::get_prompt_file::GetPromptFileOutput {
crate::operation::get_prompt_file::GetPromptFileOutput {
prompt_presigned_url: self.prompt_presigned_url,
last_modified_time: self.last_modified_time,
last_modified_region: self.last_modified_region,
_request_id: self._request_id,
}
}
}