aws_sdk_appsync/types/
_error_detail.rs1#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct ErrorDetail {
7 pub message: ::std::option::Option<::std::string::String>,
9}
10impl ErrorDetail {
11 pub fn message(&self) -> ::std::option::Option<&str> {
13 self.message.as_deref()
14 }
15}
16impl ErrorDetail {
17 pub fn builder() -> crate::types::builders::ErrorDetailBuilder {
19 crate::types::builders::ErrorDetailBuilder::default()
20 }
21}
22
23#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
25#[non_exhaustive]
26pub struct ErrorDetailBuilder {
27 pub(crate) message: ::std::option::Option<::std::string::String>,
28}
29impl ErrorDetailBuilder {
30 pub fn message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
32 self.message = ::std::option::Option::Some(input.into());
33 self
34 }
35 pub fn set_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
37 self.message = input;
38 self
39 }
40 pub fn get_message(&self) -> &::std::option::Option<::std::string::String> {
42 &self.message
43 }
44 pub fn build(self) -> crate::types::ErrorDetail {
46 crate::types::ErrorDetail { message: self.message }
47 }
48}