aws_sdk_dynamodb/operation/describe_limits/
_describe_limits_output.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3/// <p>Represents the output of a <code>DescribeLimits</code> operation.</p>
4#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct DescribeLimitsOutput {
7    /// <p>The maximum total read capacity units that your account allows you to provision across all of your tables in this Region.</p>
8    pub account_max_read_capacity_units: ::std::option::Option<i64>,
9    /// <p>The maximum total write capacity units that your account allows you to provision across all of your tables in this Region.</p>
10    pub account_max_write_capacity_units: ::std::option::Option<i64>,
11    /// <p>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).</p>
12    pub table_max_read_capacity_units: ::std::option::Option<i64>,
13    /// <p>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).</p>
14    pub table_max_write_capacity_units: ::std::option::Option<i64>,
15    _request_id: Option<String>,
16}
17impl DescribeLimitsOutput {
18    /// <p>The maximum total read capacity units that your account allows you to provision across all of your tables in this Region.</p>
19    pub fn account_max_read_capacity_units(&self) -> ::std::option::Option<i64> {
20        self.account_max_read_capacity_units
21    }
22    /// <p>The maximum total write capacity units that your account allows you to provision across all of your tables in this Region.</p>
23    pub fn account_max_write_capacity_units(&self) -> ::std::option::Option<i64> {
24        self.account_max_write_capacity_units
25    }
26    /// <p>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).</p>
27    pub fn table_max_read_capacity_units(&self) -> ::std::option::Option<i64> {
28        self.table_max_read_capacity_units
29    }
30    /// <p>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).</p>
31    pub fn table_max_write_capacity_units(&self) -> ::std::option::Option<i64> {
32        self.table_max_write_capacity_units
33    }
34}
35impl ::aws_types::request_id::RequestId for DescribeLimitsOutput {
36    fn request_id(&self) -> Option<&str> {
37        self._request_id.as_deref()
38    }
39}
40impl DescribeLimitsOutput {
41    /// Creates a new builder-style object to manufacture [`DescribeLimitsOutput`](crate::operation::describe_limits::DescribeLimitsOutput).
42    pub fn builder() -> crate::operation::describe_limits::builders::DescribeLimitsOutputBuilder {
43        crate::operation::describe_limits::builders::DescribeLimitsOutputBuilder::default()
44    }
45}
46
47/// A builder for [`DescribeLimitsOutput`](crate::operation::describe_limits::DescribeLimitsOutput).
48#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
49#[non_exhaustive]
50pub struct DescribeLimitsOutputBuilder {
51    pub(crate) account_max_read_capacity_units: ::std::option::Option<i64>,
52    pub(crate) account_max_write_capacity_units: ::std::option::Option<i64>,
53    pub(crate) table_max_read_capacity_units: ::std::option::Option<i64>,
54    pub(crate) table_max_write_capacity_units: ::std::option::Option<i64>,
55    _request_id: Option<String>,
56}
57impl DescribeLimitsOutputBuilder {
58    /// <p>The maximum total read capacity units that your account allows you to provision across all of your tables in this Region.</p>
59    pub fn account_max_read_capacity_units(mut self, input: i64) -> Self {
60        self.account_max_read_capacity_units = ::std::option::Option::Some(input);
61        self
62    }
63    /// <p>The maximum total read capacity units that your account allows you to provision across all of your tables in this Region.</p>
64    pub fn set_account_max_read_capacity_units(mut self, input: ::std::option::Option<i64>) -> Self {
65        self.account_max_read_capacity_units = input;
66        self
67    }
68    /// <p>The maximum total read capacity units that your account allows you to provision across all of your tables in this Region.</p>
69    pub fn get_account_max_read_capacity_units(&self) -> &::std::option::Option<i64> {
70        &self.account_max_read_capacity_units
71    }
72    /// <p>The maximum total write capacity units that your account allows you to provision across all of your tables in this Region.</p>
73    pub fn account_max_write_capacity_units(mut self, input: i64) -> Self {
74        self.account_max_write_capacity_units = ::std::option::Option::Some(input);
75        self
76    }
77    /// <p>The maximum total write capacity units that your account allows you to provision across all of your tables in this Region.</p>
78    pub fn set_account_max_write_capacity_units(mut self, input: ::std::option::Option<i64>) -> Self {
79        self.account_max_write_capacity_units = input;
80        self
81    }
82    /// <p>The maximum total write capacity units that your account allows you to provision across all of your tables in this Region.</p>
83    pub fn get_account_max_write_capacity_units(&self) -> &::std::option::Option<i64> {
84        &self.account_max_write_capacity_units
85    }
86    /// <p>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).</p>
87    pub fn table_max_read_capacity_units(mut self, input: i64) -> Self {
88        self.table_max_read_capacity_units = ::std::option::Option::Some(input);
89        self
90    }
91    /// <p>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).</p>
92    pub fn set_table_max_read_capacity_units(mut self, input: ::std::option::Option<i64>) -> Self {
93        self.table_max_read_capacity_units = input;
94        self
95    }
96    /// <p>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).</p>
97    pub fn get_table_max_read_capacity_units(&self) -> &::std::option::Option<i64> {
98        &self.table_max_read_capacity_units
99    }
100    /// <p>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).</p>
101    pub fn table_max_write_capacity_units(mut self, input: i64) -> Self {
102        self.table_max_write_capacity_units = ::std::option::Option::Some(input);
103        self
104    }
105    /// <p>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).</p>
106    pub fn set_table_max_write_capacity_units(mut self, input: ::std::option::Option<i64>) -> Self {
107        self.table_max_write_capacity_units = input;
108        self
109    }
110    /// <p>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).</p>
111    pub fn get_table_max_write_capacity_units(&self) -> &::std::option::Option<i64> {
112        &self.table_max_write_capacity_units
113    }
114    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
115        self._request_id = Some(request_id.into());
116        self
117    }
118
119    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
120        self._request_id = request_id;
121        self
122    }
123    /// Consumes the builder and constructs a [`DescribeLimitsOutput`](crate::operation::describe_limits::DescribeLimitsOutput).
124    pub fn build(self) -> crate::operation::describe_limits::DescribeLimitsOutput {
125        crate::operation::describe_limits::DescribeLimitsOutput {
126            account_max_read_capacity_units: self.account_max_read_capacity_units,
127            account_max_write_capacity_units: self.account_max_write_capacity_units,
128            table_max_read_capacity_units: self.table_max_read_capacity_units,
129            table_max_write_capacity_units: self.table_max_write_capacity_units,
130            _request_id: self._request_id,
131        }
132    }
133}