aws_sdk_efs/operation/describe_access_points/_describe_access_points_input.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2#[allow(missing_docs)] // documentation missing in model
3#[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct DescribeAccessPointsInput {
6 /// <p>(Optional) When retrieving all access points for a file system, you can optionally specify the <code>MaxItems</code> parameter to limit the number of objects returned in a response. The default value is 100.</p>
7 pub max_results: ::std::option::Option<i32>,
8 /// <p><code>NextToken</code> is present if the response is paginated. You can use <code>NextMarker</code> in the subsequent request to fetch the next page of access point descriptions.</p>
9 pub next_token: ::std::option::Option<::std::string::String>,
10 /// <p>(Optional) Specifies an EFS access point to describe in the response; mutually exclusive with <code>FileSystemId</code>.</p>
11 pub access_point_id: ::std::option::Option<::std::string::String>,
12 /// <p>(Optional) If you provide a <code>FileSystemId</code>, EFS returns all access points for that file system; mutually exclusive with <code>AccessPointId</code>.</p>
13 pub file_system_id: ::std::option::Option<::std::string::String>,
14}
15impl DescribeAccessPointsInput {
16 /// <p>(Optional) When retrieving all access points for a file system, you can optionally specify the <code>MaxItems</code> parameter to limit the number of objects returned in a response. The default value is 100.</p>
17 pub fn max_results(&self) -> ::std::option::Option<i32> {
18 self.max_results
19 }
20 /// <p><code>NextToken</code> is present if the response is paginated. You can use <code>NextMarker</code> in the subsequent request to fetch the next page of access point descriptions.</p>
21 pub fn next_token(&self) -> ::std::option::Option<&str> {
22 self.next_token.as_deref()
23 }
24 /// <p>(Optional) Specifies an EFS access point to describe in the response; mutually exclusive with <code>FileSystemId</code>.</p>
25 pub fn access_point_id(&self) -> ::std::option::Option<&str> {
26 self.access_point_id.as_deref()
27 }
28 /// <p>(Optional) If you provide a <code>FileSystemId</code>, EFS returns all access points for that file system; mutually exclusive with <code>AccessPointId</code>.</p>
29 pub fn file_system_id(&self) -> ::std::option::Option<&str> {
30 self.file_system_id.as_deref()
31 }
32}
33impl DescribeAccessPointsInput {
34 /// Creates a new builder-style object to manufacture [`DescribeAccessPointsInput`](crate::operation::describe_access_points::DescribeAccessPointsInput).
35 pub fn builder() -> crate::operation::describe_access_points::builders::DescribeAccessPointsInputBuilder {
36 crate::operation::describe_access_points::builders::DescribeAccessPointsInputBuilder::default()
37 }
38}
39
40/// A builder for [`DescribeAccessPointsInput`](crate::operation::describe_access_points::DescribeAccessPointsInput).
41#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
42#[non_exhaustive]
43pub struct DescribeAccessPointsInputBuilder {
44 pub(crate) max_results: ::std::option::Option<i32>,
45 pub(crate) next_token: ::std::option::Option<::std::string::String>,
46 pub(crate) access_point_id: ::std::option::Option<::std::string::String>,
47 pub(crate) file_system_id: ::std::option::Option<::std::string::String>,
48}
49impl DescribeAccessPointsInputBuilder {
50 /// <p>(Optional) When retrieving all access points for a file system, you can optionally specify the <code>MaxItems</code> parameter to limit the number of objects returned in a response. The default value is 100.</p>
51 pub fn max_results(mut self, input: i32) -> Self {
52 self.max_results = ::std::option::Option::Some(input);
53 self
54 }
55 /// <p>(Optional) When retrieving all access points for a file system, you can optionally specify the <code>MaxItems</code> parameter to limit the number of objects returned in a response. The default value is 100.</p>
56 pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
57 self.max_results = input;
58 self
59 }
60 /// <p>(Optional) When retrieving all access points for a file system, you can optionally specify the <code>MaxItems</code> parameter to limit the number of objects returned in a response. The default value is 100.</p>
61 pub fn get_max_results(&self) -> &::std::option::Option<i32> {
62 &self.max_results
63 }
64 /// <p><code>NextToken</code> is present if the response is paginated. You can use <code>NextMarker</code> in the subsequent request to fetch the next page of access point descriptions.</p>
65 pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
66 self.next_token = ::std::option::Option::Some(input.into());
67 self
68 }
69 /// <p><code>NextToken</code> is present if the response is paginated. You can use <code>NextMarker</code> in the subsequent request to fetch the next page of access point descriptions.</p>
70 pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
71 self.next_token = input;
72 self
73 }
74 /// <p><code>NextToken</code> is present if the response is paginated. You can use <code>NextMarker</code> in the subsequent request to fetch the next page of access point descriptions.</p>
75 pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
76 &self.next_token
77 }
78 /// <p>(Optional) Specifies an EFS access point to describe in the response; mutually exclusive with <code>FileSystemId</code>.</p>
79 pub fn access_point_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
80 self.access_point_id = ::std::option::Option::Some(input.into());
81 self
82 }
83 /// <p>(Optional) Specifies an EFS access point to describe in the response; mutually exclusive with <code>FileSystemId</code>.</p>
84 pub fn set_access_point_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
85 self.access_point_id = input;
86 self
87 }
88 /// <p>(Optional) Specifies an EFS access point to describe in the response; mutually exclusive with <code>FileSystemId</code>.</p>
89 pub fn get_access_point_id(&self) -> &::std::option::Option<::std::string::String> {
90 &self.access_point_id
91 }
92 /// <p>(Optional) If you provide a <code>FileSystemId</code>, EFS returns all access points for that file system; mutually exclusive with <code>AccessPointId</code>.</p>
93 pub fn file_system_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
94 self.file_system_id = ::std::option::Option::Some(input.into());
95 self
96 }
97 /// <p>(Optional) If you provide a <code>FileSystemId</code>, EFS returns all access points for that file system; mutually exclusive with <code>AccessPointId</code>.</p>
98 pub fn set_file_system_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
99 self.file_system_id = input;
100 self
101 }
102 /// <p>(Optional) If you provide a <code>FileSystemId</code>, EFS returns all access points for that file system; mutually exclusive with <code>AccessPointId</code>.</p>
103 pub fn get_file_system_id(&self) -> &::std::option::Option<::std::string::String> {
104 &self.file_system_id
105 }
106 /// Consumes the builder and constructs a [`DescribeAccessPointsInput`](crate::operation::describe_access_points::DescribeAccessPointsInput).
107 pub fn build(
108 self,
109 ) -> ::std::result::Result<crate::operation::describe_access_points::DescribeAccessPointsInput, ::aws_smithy_types::error::operation::BuildError>
110 {
111 ::std::result::Result::Ok(crate::operation::describe_access_points::DescribeAccessPointsInput {
112 max_results: self.max_results,
113 next_token: self.next_token,
114 access_point_id: self.access_point_id,
115 file_system_id: self.file_system_id,
116 })
117 }
118}