aws_sdk_connect/operation/describe_prompt/
_describe_prompt_output.rs#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DescribePromptOutput {
pub prompt: ::std::option::Option<crate::types::Prompt>,
_request_id: Option<String>,
}
impl DescribePromptOutput {
pub fn prompt(&self) -> ::std::option::Option<&crate::types::Prompt> {
self.prompt.as_ref()
}
}
impl ::aws_types::request_id::RequestId for DescribePromptOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl DescribePromptOutput {
pub fn builder() -> crate::operation::describe_prompt::builders::DescribePromptOutputBuilder {
crate::operation::describe_prompt::builders::DescribePromptOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribePromptOutputBuilder {
pub(crate) prompt: ::std::option::Option<crate::types::Prompt>,
_request_id: Option<String>,
}
impl DescribePromptOutputBuilder {
pub fn prompt(mut self, input: crate::types::Prompt) -> Self {
self.prompt = ::std::option::Option::Some(input);
self
}
pub fn set_prompt(mut self, input: ::std::option::Option<crate::types::Prompt>) -> Self {
self.prompt = input;
self
}
pub fn get_prompt(&self) -> &::std::option::Option<crate::types::Prompt> {
&self.prompt
}
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::describe_prompt::DescribePromptOutput {
crate::operation::describe_prompt::DescribePromptOutput {
prompt: self.prompt,
_request_id: self._request_id,
}
}
}