aws_sdk_worklink/operation/disassociate_website_authorization_provider/
_disassociate_website_authorization_provider_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 DisassociateWebsiteAuthorizationProviderInput {
6    /// <p>The ARN of the fleet.</p>
7    pub fleet_arn: ::std::option::Option<::std::string::String>,
8    /// <p>A unique identifier for the authorization provider.</p>
9    pub authorization_provider_id: ::std::option::Option<::std::string::String>,
10}
11impl DisassociateWebsiteAuthorizationProviderInput {
12    /// <p>The ARN of the fleet.</p>
13    pub fn fleet_arn(&self) -> ::std::option::Option<&str> {
14        self.fleet_arn.as_deref()
15    }
16    /// <p>A unique identifier for the authorization provider.</p>
17    pub fn authorization_provider_id(&self) -> ::std::option::Option<&str> {
18        self.authorization_provider_id.as_deref()
19    }
20}
21impl DisassociateWebsiteAuthorizationProviderInput {
22    /// Creates a new builder-style object to manufacture [`DisassociateWebsiteAuthorizationProviderInput`](crate::operation::disassociate_website_authorization_provider::DisassociateWebsiteAuthorizationProviderInput).
23    pub fn builder() -> crate::operation::disassociate_website_authorization_provider::builders::DisassociateWebsiteAuthorizationProviderInputBuilder
24    {
25        crate::operation::disassociate_website_authorization_provider::builders::DisassociateWebsiteAuthorizationProviderInputBuilder::default()
26    }
27}
28
29/// A builder for [`DisassociateWebsiteAuthorizationProviderInput`](crate::operation::disassociate_website_authorization_provider::DisassociateWebsiteAuthorizationProviderInput).
30#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
31#[non_exhaustive]
32pub struct DisassociateWebsiteAuthorizationProviderInputBuilder {
33    pub(crate) fleet_arn: ::std::option::Option<::std::string::String>,
34    pub(crate) authorization_provider_id: ::std::option::Option<::std::string::String>,
35}
36impl DisassociateWebsiteAuthorizationProviderInputBuilder {
37    /// <p>The ARN of the fleet.</p>
38    /// This field is required.
39    pub fn fleet_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
40        self.fleet_arn = ::std::option::Option::Some(input.into());
41        self
42    }
43    /// <p>The ARN of the fleet.</p>
44    pub fn set_fleet_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
45        self.fleet_arn = input;
46        self
47    }
48    /// <p>The ARN of the fleet.</p>
49    pub fn get_fleet_arn(&self) -> &::std::option::Option<::std::string::String> {
50        &self.fleet_arn
51    }
52    /// <p>A unique identifier for the authorization provider.</p>
53    /// This field is required.
54    pub fn authorization_provider_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
55        self.authorization_provider_id = ::std::option::Option::Some(input.into());
56        self
57    }
58    /// <p>A unique identifier for the authorization provider.</p>
59    pub fn set_authorization_provider_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
60        self.authorization_provider_id = input;
61        self
62    }
63    /// <p>A unique identifier for the authorization provider.</p>
64    pub fn get_authorization_provider_id(&self) -> &::std::option::Option<::std::string::String> {
65        &self.authorization_provider_id
66    }
67    /// Consumes the builder and constructs a [`DisassociateWebsiteAuthorizationProviderInput`](crate::operation::disassociate_website_authorization_provider::DisassociateWebsiteAuthorizationProviderInput).
68    pub fn build(
69        self,
70    ) -> ::std::result::Result<
71        crate::operation::disassociate_website_authorization_provider::DisassociateWebsiteAuthorizationProviderInput,
72        ::aws_smithy_types::error::operation::BuildError,
73    > {
74        ::std::result::Result::Ok(
75            crate::operation::disassociate_website_authorization_provider::DisassociateWebsiteAuthorizationProviderInput {
76                fleet_arn: self.fleet_arn,
77                authorization_provider_id: self.authorization_provider_id,
78            },
79        )
80    }
81}