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
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// <p>The <code>ListPipelineRequest</code> structure.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct ListPipelinesInput {
/// <p>To list pipelines in chronological order by the date and time that they were created, enter <code>true</code>. To list pipelines in reverse chronological order, enter <code>false</code>.</p>
pub ascending: ::std::option::Option<::std::string::String>,
/// <p>When Elastic Transcoder returns more than one page of results, use <code>pageToken</code> in subsequent <code>GET</code> requests to get each successive page of results.</p>
pub page_token: ::std::option::Option<::std::string::String>,
}
impl ListPipelinesInput {
/// <p>To list pipelines in chronological order by the date and time that they were created, enter <code>true</code>. To list pipelines in reverse chronological order, enter <code>false</code>.</p>
pub fn ascending(&self) -> ::std::option::Option<&str> {
self.ascending.as_deref()
}
/// <p>When Elastic Transcoder returns more than one page of results, use <code>pageToken</code> in subsequent <code>GET</code> requests to get each successive page of results.</p>
pub fn page_token(&self) -> ::std::option::Option<&str> {
self.page_token.as_deref()
}
}
impl ListPipelinesInput {
/// Creates a new builder-style object to manufacture [`ListPipelinesInput`](crate::operation::list_pipelines::ListPipelinesInput).
pub fn builder() -> crate::operation::list_pipelines::builders::ListPipelinesInputBuilder {
crate::operation::list_pipelines::builders::ListPipelinesInputBuilder::default()
}
}
/// A builder for [`ListPipelinesInput`](crate::operation::list_pipelines::ListPipelinesInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct ListPipelinesInputBuilder {
pub(crate) ascending: ::std::option::Option<::std::string::String>,
pub(crate) page_token: ::std::option::Option<::std::string::String>,
}
impl ListPipelinesInputBuilder {
/// <p>To list pipelines in chronological order by the date and time that they were created, enter <code>true</code>. To list pipelines in reverse chronological order, enter <code>false</code>.</p>
pub fn ascending(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.ascending = ::std::option::Option::Some(input.into());
self
}
/// <p>To list pipelines in chronological order by the date and time that they were created, enter <code>true</code>. To list pipelines in reverse chronological order, enter <code>false</code>.</p>
pub fn set_ascending(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.ascending = input;
self
}
/// <p>To list pipelines in chronological order by the date and time that they were created, enter <code>true</code>. To list pipelines in reverse chronological order, enter <code>false</code>.</p>
pub fn get_ascending(&self) -> &::std::option::Option<::std::string::String> {
&self.ascending
}
/// <p>When Elastic Transcoder returns more than one page of results, use <code>pageToken</code> in subsequent <code>GET</code> requests to get each successive page of results.</p>
pub fn page_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.page_token = ::std::option::Option::Some(input.into());
self
}
/// <p>When Elastic Transcoder returns more than one page of results, use <code>pageToken</code> in subsequent <code>GET</code> requests to get each successive page of results.</p>
pub fn set_page_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.page_token = input;
self
}
/// <p>When Elastic Transcoder returns more than one page of results, use <code>pageToken</code> in subsequent <code>GET</code> requests to get each successive page of results.</p>
pub fn get_page_token(&self) -> &::std::option::Option<::std::string::String> {
&self.page_token
}
/// Consumes the builder and constructs a [`ListPipelinesInput`](crate::operation::list_pipelines::ListPipelinesInput).
pub fn build(
self,
) -> ::std::result::Result<crate::operation::list_pipelines::ListPipelinesInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::list_pipelines::ListPipelinesInput {
ascending: self.ascending,
page_token: self.page_token,
})
}
}