Struct aws_sdk_acm::output::list_certificates_output::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for ListCertificatesOutput.
Implementations§
source§impl Builder
impl Builder
sourcepub fn next_token(self, input: impl Into<String>) -> Self
pub fn next_token(self, input: impl Into<String>) -> Self
When the list is truncated, this value is present and contains the value to use for the NextToken parameter in a subsequent pagination request.
sourcepub fn set_next_token(self, input: Option<String>) -> Self
pub fn set_next_token(self, input: Option<String>) -> Self
When the list is truncated, this value is present and contains the value to use for the NextToken parameter in a subsequent pagination request.
Examples found in repository?
src/json_deser.rs (lines 880-886)
862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914
pub(crate) fn deser_operation_crate_operation_list_certificates(
value: &[u8],
mut builder: crate::output::list_certificates_output::Builder,
) -> Result<
crate::output::list_certificates_output::Builder,
aws_smithy_json::deserialize::error::DeserializeError,
> {
let mut tokens_owned =
aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
.peekable();
let tokens = &mut tokens_owned;
aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
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() {
"NextToken" => {
builder = builder.set_next_token(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"CertificateSummaryList" => {
builder = builder.set_certificate_summary_list(
crate::json_deser::deser_list_com_amazonaws_acm_certificate_summary_list(tokens)?
);
}
_ => 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
)),
)
}
}
}
if tokens.next().is_some() {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"found more JSON tokens after completing parsing",
),
);
}
Ok(builder)
}sourcepub fn certificate_summary_list(self, input: CertificateSummary) -> Self
pub fn certificate_summary_list(self, input: CertificateSummary) -> Self
Appends an item to certificate_summary_list.
To override the contents of this collection use set_certificate_summary_list.
A list of ACM certificates.
sourcepub fn set_certificate_summary_list(
self,
input: Option<Vec<CertificateSummary>>
) -> Self
pub fn set_certificate_summary_list(
self,
input: Option<Vec<CertificateSummary>>
) -> Self
A list of ACM certificates.
Examples found in repository?
src/json_deser.rs (lines 889-891)
862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914
pub(crate) fn deser_operation_crate_operation_list_certificates(
value: &[u8],
mut builder: crate::output::list_certificates_output::Builder,
) -> Result<
crate::output::list_certificates_output::Builder,
aws_smithy_json::deserialize::error::DeserializeError,
> {
let mut tokens_owned =
aws_smithy_json::deserialize::json_token_iter(crate::json_deser::or_empty_doc(value))
.peekable();
let tokens = &mut tokens_owned;
aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
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() {
"NextToken" => {
builder = builder.set_next_token(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"CertificateSummaryList" => {
builder = builder.set_certificate_summary_list(
crate::json_deser::deser_list_com_amazonaws_acm_certificate_summary_list(tokens)?
);
}
_ => 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
)),
)
}
}
}
if tokens.next().is_some() {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"found more JSON tokens after completing parsing",
),
);
}
Ok(builder)
}sourcepub fn build(self) -> ListCertificatesOutput
pub fn build(self) -> ListCertificatesOutput
Consumes the builder and constructs a ListCertificatesOutput.
Examples found in repository?
src/operation_deser.rs (line 768)
755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770
pub fn parse_list_certificates_response(
response: &http::Response<bytes::Bytes>,
) -> std::result::Result<crate::output::ListCertificatesOutput, crate::error::ListCertificatesError>
{
Ok({
#[allow(unused_mut)]
let mut output = crate::output::list_certificates_output::Builder::default();
let _ = response;
output = crate::json_deser::deser_operation_crate_operation_list_certificates(
response.body().as_ref(),
output,
)
.map_err(crate::error::ListCertificatesError::unhandled)?;
output.build()
})
}