aws_sdk_connect/operation/list_security_keys/_list_security_keys_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 ListSecurityKeysInput {
6 /// <p>The identifier of the Amazon Connect instance. You can <a href="https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html">find the instance ID</a> in the Amazon Resource Name (ARN) of the instance.</p>
7 pub instance_id: ::std::option::Option<::std::string::String>,
8 /// <p>The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.</p>
9 pub next_token: ::std::option::Option<::std::string::String>,
10 /// <p>The maximum number of results to return per page.</p>
11 pub max_results: ::std::option::Option<i32>,
12}
13impl ListSecurityKeysInput {
14 /// <p>The identifier of the Amazon Connect instance. You can <a href="https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html">find the instance ID</a> in the Amazon Resource Name (ARN) of the instance.</p>
15 pub fn instance_id(&self) -> ::std::option::Option<&str> {
16 self.instance_id.as_deref()
17 }
18 /// <p>The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.</p>
19 pub fn next_token(&self) -> ::std::option::Option<&str> {
20 self.next_token.as_deref()
21 }
22 /// <p>The maximum number of results to return per page.</p>
23 pub fn max_results(&self) -> ::std::option::Option<i32> {
24 self.max_results
25 }
26}
27impl ListSecurityKeysInput {
28 /// Creates a new builder-style object to manufacture [`ListSecurityKeysInput`](crate::operation::list_security_keys::ListSecurityKeysInput).
29 pub fn builder() -> crate::operation::list_security_keys::builders::ListSecurityKeysInputBuilder {
30 crate::operation::list_security_keys::builders::ListSecurityKeysInputBuilder::default()
31 }
32}
33
34/// A builder for [`ListSecurityKeysInput`](crate::operation::list_security_keys::ListSecurityKeysInput).
35#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
36#[non_exhaustive]
37pub struct ListSecurityKeysInputBuilder {
38 pub(crate) instance_id: ::std::option::Option<::std::string::String>,
39 pub(crate) next_token: ::std::option::Option<::std::string::String>,
40 pub(crate) max_results: ::std::option::Option<i32>,
41}
42impl ListSecurityKeysInputBuilder {
43 /// <p>The identifier of the Amazon Connect instance. You can <a href="https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html">find the instance ID</a> in the Amazon Resource Name (ARN) of the instance.</p>
44 /// This field is required.
45 pub fn instance_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
46 self.instance_id = ::std::option::Option::Some(input.into());
47 self
48 }
49 /// <p>The identifier of the Amazon Connect instance. You can <a href="https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html">find the instance ID</a> in the Amazon Resource Name (ARN) of the instance.</p>
50 pub fn set_instance_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
51 self.instance_id = input;
52 self
53 }
54 /// <p>The identifier of the Amazon Connect instance. You can <a href="https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html">find the instance ID</a> in the Amazon Resource Name (ARN) of the instance.</p>
55 pub fn get_instance_id(&self) -> &::std::option::Option<::std::string::String> {
56 &self.instance_id
57 }
58 /// <p>The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.</p>
59 pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
60 self.next_token = ::std::option::Option::Some(input.into());
61 self
62 }
63 /// <p>The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.</p>
64 pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
65 self.next_token = input;
66 self
67 }
68 /// <p>The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.</p>
69 pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
70 &self.next_token
71 }
72 /// <p>The maximum number of results to return per page.</p>
73 pub fn max_results(mut self, input: i32) -> Self {
74 self.max_results = ::std::option::Option::Some(input);
75 self
76 }
77 /// <p>The maximum number of results to return per page.</p>
78 pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
79 self.max_results = input;
80 self
81 }
82 /// <p>The maximum number of results to return per page.</p>
83 pub fn get_max_results(&self) -> &::std::option::Option<i32> {
84 &self.max_results
85 }
86 /// Consumes the builder and constructs a [`ListSecurityKeysInput`](crate::operation::list_security_keys::ListSecurityKeysInput).
87 pub fn build(
88 self,
89 ) -> ::std::result::Result<crate::operation::list_security_keys::ListSecurityKeysInput, ::aws_smithy_types::error::operation::BuildError> {
90 ::std::result::Result::Ok(crate::operation::list_security_keys::ListSecurityKeysInput {
91 instance_id: self.instance_id,
92 next_token: self.next_token,
93 max_results: self.max_results,
94 })
95 }
96}