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; self
66    }
67    /// <p>The maximum total read capacity units that your account allows you to provision across all of your tables in this Region.</p>
68    pub fn get_account_max_read_capacity_units(&self) -> &::std::option::Option<i64> {
69        &self.account_max_read_capacity_units
70    }
71    /// <p>The maximum total write capacity units that your account allows you to provision across all of your tables in this Region.</p>
72    pub fn account_max_write_capacity_units(mut self, input: i64) -> Self {
73        self.account_max_write_capacity_units = ::std::option::Option::Some(input);
74        self
75    }
76    /// <p>The maximum total write capacity units that your account allows you to provision across all of your tables in this Region.</p>
77    pub fn set_account_max_write_capacity_units(mut self, input: ::std::option::Option<i64>) -> Self {
78        self.account_max_write_capacity_units = input; self
79    }
80    /// <p>The maximum total write capacity units that your account allows you to provision across all of your tables in this Region.</p>
81    pub fn get_account_max_write_capacity_units(&self) -> &::std::option::Option<i64> {
82        &self.account_max_write_capacity_units
83    }
84    /// <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>
85    pub fn table_max_read_capacity_units(mut self, input: i64) -> Self {
86        self.table_max_read_capacity_units = ::std::option::Option::Some(input);
87        self
88    }
89    /// <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>
90    pub fn set_table_max_read_capacity_units(mut self, input: ::std::option::Option<i64>) -> Self {
91        self.table_max_read_capacity_units = input; self
92    }
93    /// <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>
94    pub fn get_table_max_read_capacity_units(&self) -> &::std::option::Option<i64> {
95        &self.table_max_read_capacity_units
96    }
97    /// <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>
98    pub fn table_max_write_capacity_units(mut self, input: i64) -> Self {
99        self.table_max_write_capacity_units = ::std::option::Option::Some(input);
100        self
101    }
102    /// <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>
103    pub fn set_table_max_write_capacity_units(mut self, input: ::std::option::Option<i64>) -> Self {
104        self.table_max_write_capacity_units = input; self
105    }
106    /// <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>
107    pub fn get_table_max_write_capacity_units(&self) -> &::std::option::Option<i64> {
108        &self.table_max_write_capacity_units
109    }
110    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
111                                        self._request_id = Some(request_id.into());
112                                        self
113                                    }
114    
115                                    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
116                                        self._request_id = request_id;
117                                        self
118                                    }
119    /// Consumes the builder and constructs a [`DescribeLimitsOutput`](crate::operation::describe_limits::DescribeLimitsOutput).
120    pub fn build(self) -> crate::operation::describe_limits::DescribeLimitsOutput {
121        crate::operation::describe_limits::DescribeLimitsOutput {
122            account_max_read_capacity_units: self.account_max_read_capacity_units
123            ,
124            account_max_write_capacity_units: self.account_max_write_capacity_units
125            ,
126            table_max_read_capacity_units: self.table_max_read_capacity_units
127            ,
128            table_max_write_capacity_units: self.table_max_write_capacity_units
129            ,
130            _request_id: self._request_id,
131        }
132    }
133}
134