1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DescribeStreamInput {
#[doc(hidden)]
pub stream_arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub limit: std::option::Option<i32>,
#[doc(hidden)]
pub exclusive_start_shard_id: std::option::Option<std::string::String>,
}
impl DescribeStreamInput {
pub fn stream_arn(&self) -> std::option::Option<&str> {
self.stream_arn.as_deref()
}
pub fn limit(&self) -> std::option::Option<i32> {
self.limit
}
pub fn exclusive_start_shard_id(&self) -> std::option::Option<&str> {
self.exclusive_start_shard_id.as_deref()
}
}
impl DescribeStreamInput {
pub fn builder() -> crate::operation::describe_stream::builders::DescribeStreamInputBuilder {
crate::operation::describe_stream::builders::DescribeStreamInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct DescribeStreamInputBuilder {
pub(crate) stream_arn: std::option::Option<std::string::String>,
pub(crate) limit: std::option::Option<i32>,
pub(crate) exclusive_start_shard_id: std::option::Option<std::string::String>,
}
impl DescribeStreamInputBuilder {
pub fn stream_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.stream_arn = Some(input.into());
self
}
pub fn set_stream_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.stream_arn = input;
self
}
pub fn limit(mut self, input: i32) -> Self {
self.limit = Some(input);
self
}
pub fn set_limit(mut self, input: std::option::Option<i32>) -> Self {
self.limit = input;
self
}
pub fn exclusive_start_shard_id(mut self, input: impl Into<std::string::String>) -> Self {
self.exclusive_start_shard_id = Some(input.into());
self
}
pub fn set_exclusive_start_shard_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.exclusive_start_shard_id = input;
self
}
pub fn build(
self,
) -> Result<
crate::operation::describe_stream::DescribeStreamInput,
aws_smithy_http::operation::error::BuildError,
> {
Ok(crate::operation::describe_stream::DescribeStreamInput {
stream_arn: self.stream_arn,
limit: self.limit,
exclusive_start_shard_id: self.exclusive_start_shard_id,
})
}
}