aws_sdk_securityhub/operation/describe_products/_describe_products_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 DescribeProductsInput {
6 /// <p>The token that is required for pagination. On your first call to the <code>DescribeProducts</code> operation, set the value of this parameter to <code>NULL</code>.</p>
7 /// <p>For subsequent calls to the operation, to continue listing data, set the value of this parameter to the value returned from the previous response.</p>
8 pub next_token: ::std::option::Option<::std::string::String>,
9 /// <p>The maximum number of results to return.</p>
10 pub max_results: ::std::option::Option<i32>,
11 /// <p>The ARN of the integration to return.</p>
12 pub product_arn: ::std::option::Option<::std::string::String>,
13}
14impl DescribeProductsInput {
15 /// <p>The token that is required for pagination. On your first call to the <code>DescribeProducts</code> operation, set the value of this parameter to <code>NULL</code>.</p>
16 /// <p>For subsequent calls to the operation, to continue listing data, set the value of this parameter to the value returned from the previous response.</p>
17 pub fn next_token(&self) -> ::std::option::Option<&str> {
18 self.next_token.as_deref()
19 }
20 /// <p>The maximum number of results to return.</p>
21 pub fn max_results(&self) -> ::std::option::Option<i32> {
22 self.max_results
23 }
24 /// <p>The ARN of the integration to return.</p>
25 pub fn product_arn(&self) -> ::std::option::Option<&str> {
26 self.product_arn.as_deref()
27 }
28}
29impl DescribeProductsInput {
30 /// Creates a new builder-style object to manufacture [`DescribeProductsInput`](crate::operation::describe_products::DescribeProductsInput).
31 pub fn builder() -> crate::operation::describe_products::builders::DescribeProductsInputBuilder {
32 crate::operation::describe_products::builders::DescribeProductsInputBuilder::default()
33 }
34}
35
36/// A builder for [`DescribeProductsInput`](crate::operation::describe_products::DescribeProductsInput).
37#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
38#[non_exhaustive]
39pub struct DescribeProductsInputBuilder {
40 pub(crate) next_token: ::std::option::Option<::std::string::String>,
41 pub(crate) max_results: ::std::option::Option<i32>,
42 pub(crate) product_arn: ::std::option::Option<::std::string::String>,
43}
44impl DescribeProductsInputBuilder {
45 /// <p>The token that is required for pagination. On your first call to the <code>DescribeProducts</code> operation, set the value of this parameter to <code>NULL</code>.</p>
46 /// <p>For subsequent calls to the operation, to continue listing data, set the value of this parameter to the value returned from the previous response.</p>
47 pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
48 self.next_token = ::std::option::Option::Some(input.into());
49 self
50 }
51 /// <p>The token that is required for pagination. On your first call to the <code>DescribeProducts</code> operation, set the value of this parameter to <code>NULL</code>.</p>
52 /// <p>For subsequent calls to the operation, to continue listing data, set the value of this parameter to the value returned from the previous response.</p>
53 pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
54 self.next_token = input;
55 self
56 }
57 /// <p>The token that is required for pagination. On your first call to the <code>DescribeProducts</code> operation, set the value of this parameter to <code>NULL</code>.</p>
58 /// <p>For subsequent calls to the operation, to continue listing data, set the value of this parameter to the value returned from the previous response.</p>
59 pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
60 &self.next_token
61 }
62 /// <p>The maximum number of results to return.</p>
63 pub fn max_results(mut self, input: i32) -> Self {
64 self.max_results = ::std::option::Option::Some(input);
65 self
66 }
67 /// <p>The maximum number of results to return.</p>
68 pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
69 self.max_results = input;
70 self
71 }
72 /// <p>The maximum number of results to return.</p>
73 pub fn get_max_results(&self) -> &::std::option::Option<i32> {
74 &self.max_results
75 }
76 /// <p>The ARN of the integration to return.</p>
77 pub fn product_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
78 self.product_arn = ::std::option::Option::Some(input.into());
79 self
80 }
81 /// <p>The ARN of the integration to return.</p>
82 pub fn set_product_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
83 self.product_arn = input;
84 self
85 }
86 /// <p>The ARN of the integration to return.</p>
87 pub fn get_product_arn(&self) -> &::std::option::Option<::std::string::String> {
88 &self.product_arn
89 }
90 /// Consumes the builder and constructs a [`DescribeProductsInput`](crate::operation::describe_products::DescribeProductsInput).
91 pub fn build(
92 self,
93 ) -> ::std::result::Result<crate::operation::describe_products::DescribeProductsInput, ::aws_smithy_types::error::operation::BuildError> {
94 ::std::result::Result::Ok(crate::operation::describe_products::DescribeProductsInput {
95 next_token: self.next_token,
96 max_results: self.max_results,
97 product_arn: self.product_arn,
98 })
99 }
100}