aws_sdk_finspacedata/operation/get_external_data_view_access_details/
_get_external_data_view_access_details_output.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)]
5pub struct GetExternalDataViewAccessDetailsOutput {
6    /// <p>The credentials required to access the external Dataview from the S3 location.</p>
7    pub credentials: ::std::option::Option<crate::types::AwsCredentials>,
8    /// <p>The location where the external Dataview is stored.</p>
9    pub s3_location: ::std::option::Option<crate::types::S3Location>,
10    _request_id: Option<String>,
11}
12impl GetExternalDataViewAccessDetailsOutput {
13    /// <p>The credentials required to access the external Dataview from the S3 location.</p>
14    pub fn credentials(&self) -> ::std::option::Option<&crate::types::AwsCredentials> {
15        self.credentials.as_ref()
16    }
17    /// <p>The location where the external Dataview is stored.</p>
18    pub fn s3_location(&self) -> ::std::option::Option<&crate::types::S3Location> {
19        self.s3_location.as_ref()
20    }
21}
22impl ::std::fmt::Debug for GetExternalDataViewAccessDetailsOutput {
23    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
24        let mut formatter = f.debug_struct("GetExternalDataViewAccessDetailsOutput");
25        formatter.field("credentials", &"*** Sensitive Data Redacted ***");
26        formatter.field("s3_location", &self.s3_location);
27        formatter.field("_request_id", &self._request_id);
28        formatter.finish()
29    }
30}
31impl ::aws_types::request_id::RequestId for GetExternalDataViewAccessDetailsOutput {
32    fn request_id(&self) -> Option<&str> {
33        self._request_id.as_deref()
34    }
35}
36impl GetExternalDataViewAccessDetailsOutput {
37    /// Creates a new builder-style object to manufacture [`GetExternalDataViewAccessDetailsOutput`](crate::operation::get_external_data_view_access_details::GetExternalDataViewAccessDetailsOutput).
38    pub fn builder() -> crate::operation::get_external_data_view_access_details::builders::GetExternalDataViewAccessDetailsOutputBuilder {
39        crate::operation::get_external_data_view_access_details::builders::GetExternalDataViewAccessDetailsOutputBuilder::default()
40    }
41}
42
43/// A builder for [`GetExternalDataViewAccessDetailsOutput`](crate::operation::get_external_data_view_access_details::GetExternalDataViewAccessDetailsOutput).
44#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
45#[non_exhaustive]
46pub struct GetExternalDataViewAccessDetailsOutputBuilder {
47    pub(crate) credentials: ::std::option::Option<crate::types::AwsCredentials>,
48    pub(crate) s3_location: ::std::option::Option<crate::types::S3Location>,
49    _request_id: Option<String>,
50}
51impl GetExternalDataViewAccessDetailsOutputBuilder {
52    /// <p>The credentials required to access the external Dataview from the S3 location.</p>
53    pub fn credentials(mut self, input: crate::types::AwsCredentials) -> Self {
54        self.credentials = ::std::option::Option::Some(input);
55        self
56    }
57    /// <p>The credentials required to access the external Dataview from the S3 location.</p>
58    pub fn set_credentials(mut self, input: ::std::option::Option<crate::types::AwsCredentials>) -> Self {
59        self.credentials = input;
60        self
61    }
62    /// <p>The credentials required to access the external Dataview from the S3 location.</p>
63    pub fn get_credentials(&self) -> &::std::option::Option<crate::types::AwsCredentials> {
64        &self.credentials
65    }
66    /// <p>The location where the external Dataview is stored.</p>
67    pub fn s3_location(mut self, input: crate::types::S3Location) -> Self {
68        self.s3_location = ::std::option::Option::Some(input);
69        self
70    }
71    /// <p>The location where the external Dataview is stored.</p>
72    pub fn set_s3_location(mut self, input: ::std::option::Option<crate::types::S3Location>) -> Self {
73        self.s3_location = input;
74        self
75    }
76    /// <p>The location where the external Dataview is stored.</p>
77    pub fn get_s3_location(&self) -> &::std::option::Option<crate::types::S3Location> {
78        &self.s3_location
79    }
80    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
81        self._request_id = Some(request_id.into());
82        self
83    }
84
85    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
86        self._request_id = request_id;
87        self
88    }
89    /// Consumes the builder and constructs a [`GetExternalDataViewAccessDetailsOutput`](crate::operation::get_external_data_view_access_details::GetExternalDataViewAccessDetailsOutput).
90    pub fn build(self) -> crate::operation::get_external_data_view_access_details::GetExternalDataViewAccessDetailsOutput {
91        crate::operation::get_external_data_view_access_details::GetExternalDataViewAccessDetailsOutput {
92            credentials: self.credentials,
93            s3_location: self.s3_location,
94            _request_id: self._request_id,
95        }
96    }
97}
98impl ::std::fmt::Debug for GetExternalDataViewAccessDetailsOutputBuilder {
99    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
100        let mut formatter = f.debug_struct("GetExternalDataViewAccessDetailsOutputBuilder");
101        formatter.field("credentials", &"*** Sensitive Data Redacted ***");
102        formatter.field("s3_location", &self.s3_location);
103        formatter.field("_request_id", &self._request_id);
104        formatter.finish()
105    }
106}