Skip to main content

aws_sdk_cloudfront/operation/list_field_level_encryption_profiles/
_list_field_level_encryption_profiles_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 ListFieldLevelEncryptionProfilesInput {
6    /// <p>Use this when paginating results to indicate where to begin in your list of profiles. The results include profiles in the list that occur after the marker. To get the next page of results, set the <code>Marker</code> to the value of the <code>NextMarker</code> from the current page's response (which is also the ID of the last profile on that page).</p>
7    pub marker: ::std::option::Option<::std::string::String>,
8    /// <p>The maximum number of field-level encryption profiles you want in the response body.</p>
9    pub max_items: ::std::option::Option<i32>,
10}
11impl ListFieldLevelEncryptionProfilesInput {
12    /// <p>Use this when paginating results to indicate where to begin in your list of profiles. The results include profiles in the list that occur after the marker. To get the next page of results, set the <code>Marker</code> to the value of the <code>NextMarker</code> from the current page's response (which is also the ID of the last profile on that page).</p>
13    pub fn marker(&self) -> ::std::option::Option<&str> {
14        self.marker.as_deref()
15    }
16    /// <p>The maximum number of field-level encryption profiles you want in the response body.</p>
17    pub fn max_items(&self) -> ::std::option::Option<i32> {
18        self.max_items
19    }
20}
21impl ListFieldLevelEncryptionProfilesInput {
22    /// Creates a new builder-style object to manufacture [`ListFieldLevelEncryptionProfilesInput`](crate::operation::list_field_level_encryption_profiles::ListFieldLevelEncryptionProfilesInput).
23    pub fn builder() -> crate::operation::list_field_level_encryption_profiles::builders::ListFieldLevelEncryptionProfilesInputBuilder {
24        crate::operation::list_field_level_encryption_profiles::builders::ListFieldLevelEncryptionProfilesInputBuilder::default()
25    }
26}
27
28/// A builder for [`ListFieldLevelEncryptionProfilesInput`](crate::operation::list_field_level_encryption_profiles::ListFieldLevelEncryptionProfilesInput).
29#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
30#[non_exhaustive]
31pub struct ListFieldLevelEncryptionProfilesInputBuilder {
32    pub(crate) marker: ::std::option::Option<::std::string::String>,
33    pub(crate) max_items: ::std::option::Option<i32>,
34}
35impl ListFieldLevelEncryptionProfilesInputBuilder {
36    /// <p>Use this when paginating results to indicate where to begin in your list of profiles. The results include profiles in the list that occur after the marker. To get the next page of results, set the <code>Marker</code> to the value of the <code>NextMarker</code> from the current page's response (which is also the ID of the last profile on that page).</p>
37    pub fn marker(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
38        self.marker = ::std::option::Option::Some(input.into());
39        self
40    }
41    /// <p>Use this when paginating results to indicate where to begin in your list of profiles. The results include profiles in the list that occur after the marker. To get the next page of results, set the <code>Marker</code> to the value of the <code>NextMarker</code> from the current page's response (which is also the ID of the last profile on that page).</p>
42    pub fn set_marker(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
43        self.marker = input;
44        self
45    }
46    /// <p>Use this when paginating results to indicate where to begin in your list of profiles. The results include profiles in the list that occur after the marker. To get the next page of results, set the <code>Marker</code> to the value of the <code>NextMarker</code> from the current page's response (which is also the ID of the last profile on that page).</p>
47    pub fn get_marker(&self) -> &::std::option::Option<::std::string::String> {
48        &self.marker
49    }
50    /// <p>The maximum number of field-level encryption profiles you want in the response body.</p>
51    pub fn max_items(mut self, input: i32) -> Self {
52        self.max_items = ::std::option::Option::Some(input);
53        self
54    }
55    /// <p>The maximum number of field-level encryption profiles you want in the response body.</p>
56    pub fn set_max_items(mut self, input: ::std::option::Option<i32>) -> Self {
57        self.max_items = input;
58        self
59    }
60    /// <p>The maximum number of field-level encryption profiles you want in the response body.</p>
61    pub fn get_max_items(&self) -> &::std::option::Option<i32> {
62        &self.max_items
63    }
64    /// Consumes the builder and constructs a [`ListFieldLevelEncryptionProfilesInput`](crate::operation::list_field_level_encryption_profiles::ListFieldLevelEncryptionProfilesInput).
65    pub fn build(
66        self,
67    ) -> ::std::result::Result<
68        crate::operation::list_field_level_encryption_profiles::ListFieldLevelEncryptionProfilesInput,
69        ::aws_smithy_types::error::operation::BuildError,
70    > {
71        ::std::result::Result::Ok(
72            crate::operation::list_field_level_encryption_profiles::ListFieldLevelEncryptionProfilesInput {
73                marker: self.marker,
74                max_items: self.max_items,
75            },
76        )
77    }
78}