pub struct Builder { /* private fields */ }Expand description
A builder for BackendApiResourceConfig.
Implementations§
source§impl Builder
impl Builder
sourcepub fn additional_auth_types(self, input: BackendApiAuthType) -> Self
pub fn additional_auth_types(self, input: BackendApiAuthType) -> Self
Appends an item to additional_auth_types.
To override the contents of this collection use set_additional_auth_types.
Additional authentication methods used to interact with your data models.
sourcepub fn set_additional_auth_types(
self,
input: Option<Vec<BackendApiAuthType>>
) -> Self
pub fn set_additional_auth_types(
self,
input: Option<Vec<BackendApiAuthType>>
) -> Self
Additional authentication methods used to interact with your data models.
Examples found in repository?
2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909
pub(crate) fn deser_structure_crate_model_backend_api_resource_config<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::BackendApiResourceConfig>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::backend_api_resource_config::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"additionalAuthTypes" => {
builder = builder.set_additional_auth_types(
crate::json_deser::deser_list_com_amazonaws_amplifybackend_list_of_backend_api_auth_type(tokens)?
);
}
"apiName" => {
builder = builder.set_api_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"conflictResolution" => {
builder = builder.set_conflict_resolution(
crate::json_deser::deser_structure_crate_model_backend_api_conflict_resolution(tokens)?
);
}
"defaultAuthType" => {
builder = builder.set_default_auth_type(
crate::json_deser::deser_structure_crate_model_backend_api_auth_type(tokens)?
);
}
"service" => {
builder = builder.set_service(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"transformSchema" => {
builder = builder.set_transform_schema(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}sourcepub fn api_name(self, input: impl Into<String>) -> Self
pub fn api_name(self, input: impl Into<String>) -> Self
The API name used to interact with the data model, configured as a part of your Amplify project.
sourcepub fn set_api_name(self, input: Option<String>) -> Self
pub fn set_api_name(self, input: Option<String>) -> Self
The API name used to interact with the data model, configured as a part of your Amplify project.
Examples found in repository?
2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909
pub(crate) fn deser_structure_crate_model_backend_api_resource_config<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::BackendApiResourceConfig>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::backend_api_resource_config::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"additionalAuthTypes" => {
builder = builder.set_additional_auth_types(
crate::json_deser::deser_list_com_amazonaws_amplifybackend_list_of_backend_api_auth_type(tokens)?
);
}
"apiName" => {
builder = builder.set_api_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"conflictResolution" => {
builder = builder.set_conflict_resolution(
crate::json_deser::deser_structure_crate_model_backend_api_conflict_resolution(tokens)?
);
}
"defaultAuthType" => {
builder = builder.set_default_auth_type(
crate::json_deser::deser_structure_crate_model_backend_api_auth_type(tokens)?
);
}
"service" => {
builder = builder.set_service(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"transformSchema" => {
builder = builder.set_transform_schema(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}sourcepub fn conflict_resolution(self, input: BackendApiConflictResolution) -> Self
pub fn conflict_resolution(self, input: BackendApiConflictResolution) -> Self
The conflict resolution strategy for your data stored in the data models.
sourcepub fn set_conflict_resolution(
self,
input: Option<BackendApiConflictResolution>
) -> Self
pub fn set_conflict_resolution(
self,
input: Option<BackendApiConflictResolution>
) -> Self
The conflict resolution strategy for your data stored in the data models.
Examples found in repository?
2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909
pub(crate) fn deser_structure_crate_model_backend_api_resource_config<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::BackendApiResourceConfig>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::backend_api_resource_config::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"additionalAuthTypes" => {
builder = builder.set_additional_auth_types(
crate::json_deser::deser_list_com_amazonaws_amplifybackend_list_of_backend_api_auth_type(tokens)?
);
}
"apiName" => {
builder = builder.set_api_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"conflictResolution" => {
builder = builder.set_conflict_resolution(
crate::json_deser::deser_structure_crate_model_backend_api_conflict_resolution(tokens)?
);
}
"defaultAuthType" => {
builder = builder.set_default_auth_type(
crate::json_deser::deser_structure_crate_model_backend_api_auth_type(tokens)?
);
}
"service" => {
builder = builder.set_service(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"transformSchema" => {
builder = builder.set_transform_schema(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}sourcepub fn default_auth_type(self, input: BackendApiAuthType) -> Self
pub fn default_auth_type(self, input: BackendApiAuthType) -> Self
The default authentication type for interacting with the configured data models in your Amplify project.
sourcepub fn set_default_auth_type(self, input: Option<BackendApiAuthType>) -> Self
pub fn set_default_auth_type(self, input: Option<BackendApiAuthType>) -> Self
The default authentication type for interacting with the configured data models in your Amplify project.
Examples found in repository?
2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909
pub(crate) fn deser_structure_crate_model_backend_api_resource_config<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::BackendApiResourceConfig>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::backend_api_resource_config::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"additionalAuthTypes" => {
builder = builder.set_additional_auth_types(
crate::json_deser::deser_list_com_amazonaws_amplifybackend_list_of_backend_api_auth_type(tokens)?
);
}
"apiName" => {
builder = builder.set_api_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"conflictResolution" => {
builder = builder.set_conflict_resolution(
crate::json_deser::deser_structure_crate_model_backend_api_conflict_resolution(tokens)?
);
}
"defaultAuthType" => {
builder = builder.set_default_auth_type(
crate::json_deser::deser_structure_crate_model_backend_api_auth_type(tokens)?
);
}
"service" => {
builder = builder.set_service(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"transformSchema" => {
builder = builder.set_transform_schema(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}sourcepub fn service(self, input: impl Into<String>) -> Self
pub fn service(self, input: impl Into<String>) -> Self
The service used to provision and interact with the data model.
sourcepub fn set_service(self, input: Option<String>) -> Self
pub fn set_service(self, input: Option<String>) -> Self
The service used to provision and interact with the data model.
Examples found in repository?
2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909
pub(crate) fn deser_structure_crate_model_backend_api_resource_config<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::BackendApiResourceConfig>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::backend_api_resource_config::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"additionalAuthTypes" => {
builder = builder.set_additional_auth_types(
crate::json_deser::deser_list_com_amazonaws_amplifybackend_list_of_backend_api_auth_type(tokens)?
);
}
"apiName" => {
builder = builder.set_api_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"conflictResolution" => {
builder = builder.set_conflict_resolution(
crate::json_deser::deser_structure_crate_model_backend_api_conflict_resolution(tokens)?
);
}
"defaultAuthType" => {
builder = builder.set_default_auth_type(
crate::json_deser::deser_structure_crate_model_backend_api_auth_type(tokens)?
);
}
"service" => {
builder = builder.set_service(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"transformSchema" => {
builder = builder.set_transform_schema(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}sourcepub fn transform_schema(self, input: impl Into<String>) -> Self
pub fn transform_schema(self, input: impl Into<String>) -> Self
The definition of the data model in the annotated transform of the GraphQL schema.
sourcepub fn set_transform_schema(self, input: Option<String>) -> Self
pub fn set_transform_schema(self, input: Option<String>) -> Self
The definition of the data model in the annotated transform of the GraphQL schema.
Examples found in repository?
2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909
pub(crate) fn deser_structure_crate_model_backend_api_resource_config<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::BackendApiResourceConfig>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::backend_api_resource_config::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"additionalAuthTypes" => {
builder = builder.set_additional_auth_types(
crate::json_deser::deser_list_com_amazonaws_amplifybackend_list_of_backend_api_auth_type(tokens)?
);
}
"apiName" => {
builder = builder.set_api_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"conflictResolution" => {
builder = builder.set_conflict_resolution(
crate::json_deser::deser_structure_crate_model_backend_api_conflict_resolution(tokens)?
);
}
"defaultAuthType" => {
builder = builder.set_default_auth_type(
crate::json_deser::deser_structure_crate_model_backend_api_auth_type(tokens)?
);
}
"service" => {
builder = builder.set_service(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"transformSchema" => {
builder = builder.set_transform_schema(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}sourcepub fn build(self) -> BackendApiResourceConfig
pub fn build(self) -> BackendApiResourceConfig
Consumes the builder and constructs a BackendApiResourceConfig.
Examples found in repository?
2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909
pub(crate) fn deser_structure_crate_model_backend_api_resource_config<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::BackendApiResourceConfig>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::backend_api_resource_config::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"additionalAuthTypes" => {
builder = builder.set_additional_auth_types(
crate::json_deser::deser_list_com_amazonaws_amplifybackend_list_of_backend_api_auth_type(tokens)?
);
}
"apiName" => {
builder = builder.set_api_name(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"conflictResolution" => {
builder = builder.set_conflict_resolution(
crate::json_deser::deser_structure_crate_model_backend_api_conflict_resolution(tokens)?
);
}
"defaultAuthType" => {
builder = builder.set_default_auth_type(
crate::json_deser::deser_structure_crate_model_backend_api_auth_type(tokens)?
);
}
"service" => {
builder = builder.set_service(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"transformSchema" => {
builder = builder.set_transform_schema(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}