1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct CreateShareInput {
    /// <p> The resource ARN for the analytics store to be shared. </p>
    pub resource_arn: ::std::option::Option<::std::string::String>,
    /// <p> The principal subscriber is the account being given access to the analytics store data through the share offer. </p>
    pub principal_subscriber: ::std::option::Option<::std::string::String>,
    /// <p> A name given to the share. </p>
    pub share_name: ::std::option::Option<::std::string::String>,
}
impl CreateShareInput {
    /// <p> The resource ARN for the analytics store to be shared. </p>
    pub fn resource_arn(&self) -> ::std::option::Option<&str> {
        self.resource_arn.as_deref()
    }
    /// <p> The principal subscriber is the account being given access to the analytics store data through the share offer. </p>
    pub fn principal_subscriber(&self) -> ::std::option::Option<&str> {
        self.principal_subscriber.as_deref()
    }
    /// <p> A name given to the share. </p>
    pub fn share_name(&self) -> ::std::option::Option<&str> {
        self.share_name.as_deref()
    }
}
impl CreateShareInput {
    /// Creates a new builder-style object to manufacture [`CreateShareInput`](crate::operation::create_share::CreateShareInput).
    pub fn builder() -> crate::operation::create_share::builders::CreateShareInputBuilder {
        crate::operation::create_share::builders::CreateShareInputBuilder::default()
    }
}

/// A builder for [`CreateShareInput`](crate::operation::create_share::CreateShareInput).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct CreateShareInputBuilder {
    pub(crate) resource_arn: ::std::option::Option<::std::string::String>,
    pub(crate) principal_subscriber: ::std::option::Option<::std::string::String>,
    pub(crate) share_name: ::std::option::Option<::std::string::String>,
}
impl CreateShareInputBuilder {
    /// <p> The resource ARN for the analytics store to be shared. </p>
    /// This field is required.
    pub fn resource_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.resource_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p> The resource ARN for the analytics store to be shared. </p>
    pub fn set_resource_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.resource_arn = input;
        self
    }
    /// <p> The resource ARN for the analytics store to be shared. </p>
    pub fn get_resource_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.resource_arn
    }
    /// <p> The principal subscriber is the account being given access to the analytics store data through the share offer. </p>
    /// This field is required.
    pub fn principal_subscriber(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.principal_subscriber = ::std::option::Option::Some(input.into());
        self
    }
    /// <p> The principal subscriber is the account being given access to the analytics store data through the share offer. </p>
    pub fn set_principal_subscriber(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.principal_subscriber = input;
        self
    }
    /// <p> The principal subscriber is the account being given access to the analytics store data through the share offer. </p>
    pub fn get_principal_subscriber(&self) -> &::std::option::Option<::std::string::String> {
        &self.principal_subscriber
    }
    /// <p> A name given to the share. </p>
    pub fn share_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.share_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p> A name given to the share. </p>
    pub fn set_share_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.share_name = input;
        self
    }
    /// <p> A name given to the share. </p>
    pub fn get_share_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.share_name
    }
    /// Consumes the builder and constructs a [`CreateShareInput`](crate::operation::create_share::CreateShareInput).
    pub fn build(self) -> ::std::result::Result<crate::operation::create_share::CreateShareInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::create_share::CreateShareInput {
            resource_arn: self.resource_arn,
            principal_subscriber: self.principal_subscriber,
            share_name: self.share_name,
        })
    }
}