Struct aws_sdk_dynamodb::output::describe_limits_output::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for DescribeLimitsOutput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn account_max_read_capacity_units(self, input: i64) -> Self
pub fn account_max_read_capacity_units(self, input: i64) -> Self
The maximum total read capacity units that your account allows you to provision across all of your tables in this Region.
sourcepub fn set_account_max_read_capacity_units(self, input: Option<i64>) -> Self
pub fn set_account_max_read_capacity_units(self, input: Option<i64>) -> Self
The maximum total read capacity units that your account allows you to provision across all of your tables in this Region.
Examples found in repository?
1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938
pub(crate) fn deser_operation_crate_operation_describe_limits(
value: &[u8],
mut builder: crate::output::describe_limits_output::Builder,
) -> Result<
crate::output::describe_limits_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() {
"AccountMaxReadCapacityUnits" => {
builder = builder.set_account_max_read_capacity_units(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i64::try_from)
.transpose()?,
);
}
"AccountMaxWriteCapacityUnits" => {
builder = builder.set_account_max_write_capacity_units(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i64::try_from)
.transpose()?,
);
}
"TableMaxReadCapacityUnits" => {
builder = builder.set_table_max_read_capacity_units(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i64::try_from)
.transpose()?,
);
}
"TableMaxWriteCapacityUnits" => {
builder = builder.set_table_max_write_capacity_units(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i64::try_from)
.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
)),
)
}
}
}
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 account_max_write_capacity_units(self, input: i64) -> Self
pub fn account_max_write_capacity_units(self, input: i64) -> Self
The maximum total write capacity units that your account allows you to provision across all of your tables in this Region.
sourcepub fn set_account_max_write_capacity_units(self, input: Option<i64>) -> Self
pub fn set_account_max_write_capacity_units(self, input: Option<i64>) -> Self
The maximum total write capacity units that your account allows you to provision across all of your tables in this Region.
Examples found in repository?
1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938
pub(crate) fn deser_operation_crate_operation_describe_limits(
value: &[u8],
mut builder: crate::output::describe_limits_output::Builder,
) -> Result<
crate::output::describe_limits_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() {
"AccountMaxReadCapacityUnits" => {
builder = builder.set_account_max_read_capacity_units(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i64::try_from)
.transpose()?,
);
}
"AccountMaxWriteCapacityUnits" => {
builder = builder.set_account_max_write_capacity_units(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i64::try_from)
.transpose()?,
);
}
"TableMaxReadCapacityUnits" => {
builder = builder.set_table_max_read_capacity_units(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i64::try_from)
.transpose()?,
);
}
"TableMaxWriteCapacityUnits" => {
builder = builder.set_table_max_write_capacity_units(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i64::try_from)
.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
)),
)
}
}
}
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 table_max_read_capacity_units(self, input: i64) -> Self
pub fn table_max_read_capacity_units(self, input: i64) -> Self
The maximum read capacity units that your account allows you to provision for a new table that you are creating in this Region, including the read capacity units provisioned for its global secondary indexes (GSIs).
sourcepub fn set_table_max_read_capacity_units(self, input: Option<i64>) -> Self
pub fn set_table_max_read_capacity_units(self, input: Option<i64>) -> Self
The maximum read capacity units that your account allows you to provision for a new table that you are creating in this Region, including the read capacity units provisioned for its global secondary indexes (GSIs).
Examples found in repository?
1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938
pub(crate) fn deser_operation_crate_operation_describe_limits(
value: &[u8],
mut builder: crate::output::describe_limits_output::Builder,
) -> Result<
crate::output::describe_limits_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() {
"AccountMaxReadCapacityUnits" => {
builder = builder.set_account_max_read_capacity_units(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i64::try_from)
.transpose()?,
);
}
"AccountMaxWriteCapacityUnits" => {
builder = builder.set_account_max_write_capacity_units(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i64::try_from)
.transpose()?,
);
}
"TableMaxReadCapacityUnits" => {
builder = builder.set_table_max_read_capacity_units(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i64::try_from)
.transpose()?,
);
}
"TableMaxWriteCapacityUnits" => {
builder = builder.set_table_max_write_capacity_units(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i64::try_from)
.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
)),
)
}
}
}
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 table_max_write_capacity_units(self, input: i64) -> Self
pub fn table_max_write_capacity_units(self, input: i64) -> Self
The maximum write capacity units that your account allows you to provision for a new table that you are creating in this Region, including the write capacity units provisioned for its global secondary indexes (GSIs).
sourcepub fn set_table_max_write_capacity_units(self, input: Option<i64>) -> Self
pub fn set_table_max_write_capacity_units(self, input: Option<i64>) -> Self
The maximum write capacity units that your account allows you to provision for a new table that you are creating in this Region, including the write capacity units provisioned for its global secondary indexes (GSIs).
Examples found in repository?
1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938
pub(crate) fn deser_operation_crate_operation_describe_limits(
value: &[u8],
mut builder: crate::output::describe_limits_output::Builder,
) -> Result<
crate::output::describe_limits_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() {
"AccountMaxReadCapacityUnits" => {
builder = builder.set_account_max_read_capacity_units(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i64::try_from)
.transpose()?,
);
}
"AccountMaxWriteCapacityUnits" => {
builder = builder.set_account_max_write_capacity_units(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i64::try_from)
.transpose()?,
);
}
"TableMaxReadCapacityUnits" => {
builder = builder.set_table_max_read_capacity_units(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i64::try_from)
.transpose()?,
);
}
"TableMaxWriteCapacityUnits" => {
builder = builder.set_table_max_write_capacity_units(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i64::try_from)
.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
)),
)
}
}
}
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) -> DescribeLimitsOutput
pub fn build(self) -> DescribeLimitsOutput
Consumes the builder and constructs a DescribeLimitsOutput
.
Examples found in repository?
1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881
pub fn parse_describe_limits_response(
response: &http::Response<bytes::Bytes>,
) -> std::result::Result<crate::output::DescribeLimitsOutput, crate::error::DescribeLimitsError> {
Ok({
#[allow(unused_mut)]
let mut output = crate::output::describe_limits_output::Builder::default();
let _ = response;
output = crate::json_deser::deser_operation_crate_operation_describe_limits(
response.body().as_ref(),
output,
)
.map_err(crate::error::DescribeLimitsError::unhandled)?;
output.build()
})
}