aws_sdk_ec2/operation/get_network_insights_access_scope_analysis_findings/_get_network_insights_access_scope_analysis_findings_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 GetNetworkInsightsAccessScopeAnalysisFindingsInput {
6 /// <p>The ID of the Network Access Scope analysis.</p>
7 pub network_insights_access_scope_analysis_id: ::std::option::Option<::std::string::String>,
8 /// <p>The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned <code>nextToken</code> value.</p>
9 pub max_results: ::std::option::Option<i32>,
10 /// <p>The token for the next page of results.</p>
11 pub next_token: ::std::option::Option<::std::string::String>,
12 /// <p>Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p>
13 pub dry_run: ::std::option::Option<bool>,
14}
15impl GetNetworkInsightsAccessScopeAnalysisFindingsInput {
16 /// <p>The ID of the Network Access Scope analysis.</p>
17 pub fn network_insights_access_scope_analysis_id(&self) -> ::std::option::Option<&str> {
18 self.network_insights_access_scope_analysis_id.as_deref()
19 }
20 /// <p>The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned <code>nextToken</code> value.</p>
21 pub fn max_results(&self) -> ::std::option::Option<i32> {
22 self.max_results
23 }
24 /// <p>The token for the next page of results.</p>
25 pub fn next_token(&self) -> ::std::option::Option<&str> {
26 self.next_token.as_deref()
27 }
28 /// <p>Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p>
29 pub fn dry_run(&self) -> ::std::option::Option<bool> {
30 self.dry_run
31 }
32}
33impl GetNetworkInsightsAccessScopeAnalysisFindingsInput {
34 /// Creates a new builder-style object to manufacture [`GetNetworkInsightsAccessScopeAnalysisFindingsInput`](crate::operation::get_network_insights_access_scope_analysis_findings::GetNetworkInsightsAccessScopeAnalysisFindingsInput).
35 pub fn builder(
36 ) -> crate::operation::get_network_insights_access_scope_analysis_findings::builders::GetNetworkInsightsAccessScopeAnalysisFindingsInputBuilder
37 {
38 crate::operation::get_network_insights_access_scope_analysis_findings::builders::GetNetworkInsightsAccessScopeAnalysisFindingsInputBuilder::default()
39 }
40}
41
42/// A builder for [`GetNetworkInsightsAccessScopeAnalysisFindingsInput`](crate::operation::get_network_insights_access_scope_analysis_findings::GetNetworkInsightsAccessScopeAnalysisFindingsInput).
43#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
44#[non_exhaustive]
45pub struct GetNetworkInsightsAccessScopeAnalysisFindingsInputBuilder {
46 pub(crate) network_insights_access_scope_analysis_id: ::std::option::Option<::std::string::String>,
47 pub(crate) max_results: ::std::option::Option<i32>,
48 pub(crate) next_token: ::std::option::Option<::std::string::String>,
49 pub(crate) dry_run: ::std::option::Option<bool>,
50}
51impl GetNetworkInsightsAccessScopeAnalysisFindingsInputBuilder {
52 /// <p>The ID of the Network Access Scope analysis.</p>
53 /// This field is required.
54 pub fn network_insights_access_scope_analysis_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
55 self.network_insights_access_scope_analysis_id = ::std::option::Option::Some(input.into());
56 self
57 }
58 /// <p>The ID of the Network Access Scope analysis.</p>
59 pub fn set_network_insights_access_scope_analysis_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
60 self.network_insights_access_scope_analysis_id = input;
61 self
62 }
63 /// <p>The ID of the Network Access Scope analysis.</p>
64 pub fn get_network_insights_access_scope_analysis_id(&self) -> &::std::option::Option<::std::string::String> {
65 &self.network_insights_access_scope_analysis_id
66 }
67 /// <p>The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned <code>nextToken</code> value.</p>
68 pub fn max_results(mut self, input: i32) -> Self {
69 self.max_results = ::std::option::Option::Some(input);
70 self
71 }
72 /// <p>The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned <code>nextToken</code> value.</p>
73 pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
74 self.max_results = input;
75 self
76 }
77 /// <p>The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned <code>nextToken</code> value.</p>
78 pub fn get_max_results(&self) -> &::std::option::Option<i32> {
79 &self.max_results
80 }
81 /// <p>The token for the next page of results.</p>
82 pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
83 self.next_token = ::std::option::Option::Some(input.into());
84 self
85 }
86 /// <p>The token for the next page of results.</p>
87 pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
88 self.next_token = input;
89 self
90 }
91 /// <p>The token for the next page of results.</p>
92 pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
93 &self.next_token
94 }
95 /// <p>Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p>
96 pub fn dry_run(mut self, input: bool) -> Self {
97 self.dry_run = ::std::option::Option::Some(input);
98 self
99 }
100 /// <p>Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p>
101 pub fn set_dry_run(mut self, input: ::std::option::Option<bool>) -> Self {
102 self.dry_run = input;
103 self
104 }
105 /// <p>Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p>
106 pub fn get_dry_run(&self) -> &::std::option::Option<bool> {
107 &self.dry_run
108 }
109 /// Consumes the builder and constructs a [`GetNetworkInsightsAccessScopeAnalysisFindingsInput`](crate::operation::get_network_insights_access_scope_analysis_findings::GetNetworkInsightsAccessScopeAnalysisFindingsInput).
110 pub fn build(
111 self,
112 ) -> ::std::result::Result<
113 crate::operation::get_network_insights_access_scope_analysis_findings::GetNetworkInsightsAccessScopeAnalysisFindingsInput,
114 ::aws_smithy_types::error::operation::BuildError,
115 > {
116 ::std::result::Result::Ok(
117 crate::operation::get_network_insights_access_scope_analysis_findings::GetNetworkInsightsAccessScopeAnalysisFindingsInput {
118 network_insights_access_scope_analysis_id: self.network_insights_access_scope_analysis_id,
119 max_results: self.max_results,
120 next_token: self.next_token,
121 dry_run: self.dry_run,
122 },
123 )
124 }
125}