aws_sdk_quicksight/operation/describe_namespace/_describe_namespace_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, ::std::fmt::Debug)]
5pub struct DescribeNamespaceOutput {
6 /// <p>The information about the namespace that you're describing. The response includes the namespace ARN, name, Amazon Web Services Region, creation status, and identity store. <code>DescribeNamespace</code> also works for namespaces that are in the process of being created. For incomplete namespaces, this API operation lists the namespace error types and messages associated with the creation process.</p>
7 pub namespace: ::std::option::Option<crate::types::NamespaceInfoV2>,
8 /// <p>The Amazon Web Services request ID for this operation.</p>
9 pub request_id: ::std::option::Option<::std::string::String>,
10 /// <p>The HTTP status of the request.</p>
11 pub status: i32,
12 _request_id: Option<String>,
13}
14impl DescribeNamespaceOutput {
15 /// <p>The information about the namespace that you're describing. The response includes the namespace ARN, name, Amazon Web Services Region, creation status, and identity store. <code>DescribeNamespace</code> also works for namespaces that are in the process of being created. For incomplete namespaces, this API operation lists the namespace error types and messages associated with the creation process.</p>
16 pub fn namespace(&self) -> ::std::option::Option<&crate::types::NamespaceInfoV2> {
17 self.namespace.as_ref()
18 }
19 /// <p>The Amazon Web Services request ID for this operation.</p>
20 pub fn request_id(&self) -> ::std::option::Option<&str> {
21 self.request_id.as_deref()
22 }
23 /// <p>The HTTP status of the request.</p>
24 pub fn status(&self) -> i32 {
25 self.status
26 }
27}
28impl ::aws_types::request_id::RequestId for DescribeNamespaceOutput {
29 fn request_id(&self) -> Option<&str> {
30 self._request_id.as_deref()
31 }
32}
33impl DescribeNamespaceOutput {
34 /// Creates a new builder-style object to manufacture [`DescribeNamespaceOutput`](crate::operation::describe_namespace::DescribeNamespaceOutput).
35 pub fn builder() -> crate::operation::describe_namespace::builders::DescribeNamespaceOutputBuilder {
36 crate::operation::describe_namespace::builders::DescribeNamespaceOutputBuilder::default()
37 }
38}
39
40/// A builder for [`DescribeNamespaceOutput`](crate::operation::describe_namespace::DescribeNamespaceOutput).
41#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
42#[non_exhaustive]
43pub struct DescribeNamespaceOutputBuilder {
44 pub(crate) namespace: ::std::option::Option<crate::types::NamespaceInfoV2>,
45 pub(crate) request_id: ::std::option::Option<::std::string::String>,
46 pub(crate) status: ::std::option::Option<i32>,
47 _request_id: Option<String>,
48}
49impl DescribeNamespaceOutputBuilder {
50 /// <p>The information about the namespace that you're describing. The response includes the namespace ARN, name, Amazon Web Services Region, creation status, and identity store. <code>DescribeNamespace</code> also works for namespaces that are in the process of being created. For incomplete namespaces, this API operation lists the namespace error types and messages associated with the creation process.</p>
51 pub fn namespace(mut self, input: crate::types::NamespaceInfoV2) -> Self {
52 self.namespace = ::std::option::Option::Some(input);
53 self
54 }
55 /// <p>The information about the namespace that you're describing. The response includes the namespace ARN, name, Amazon Web Services Region, creation status, and identity store. <code>DescribeNamespace</code> also works for namespaces that are in the process of being created. For incomplete namespaces, this API operation lists the namespace error types and messages associated with the creation process.</p>
56 pub fn set_namespace(mut self, input: ::std::option::Option<crate::types::NamespaceInfoV2>) -> Self {
57 self.namespace = input;
58 self
59 }
60 /// <p>The information about the namespace that you're describing. The response includes the namespace ARN, name, Amazon Web Services Region, creation status, and identity store. <code>DescribeNamespace</code> also works for namespaces that are in the process of being created. For incomplete namespaces, this API operation lists the namespace error types and messages associated with the creation process.</p>
61 pub fn get_namespace(&self) -> &::std::option::Option<crate::types::NamespaceInfoV2> {
62 &self.namespace
63 }
64 /// <p>The Amazon Web Services request ID for this operation.</p>
65 pub fn request_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
66 self.request_id = ::std::option::Option::Some(input.into());
67 self
68 }
69 /// <p>The Amazon Web Services request ID for this operation.</p>
70 pub fn set_request_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
71 self.request_id = input;
72 self
73 }
74 /// <p>The Amazon Web Services request ID for this operation.</p>
75 pub fn get_request_id(&self) -> &::std::option::Option<::std::string::String> {
76 &self.request_id
77 }
78 /// <p>The HTTP status of the request.</p>
79 pub fn status(mut self, input: i32) -> Self {
80 self.status = ::std::option::Option::Some(input);
81 self
82 }
83 /// <p>The HTTP status of the request.</p>
84 pub fn set_status(mut self, input: ::std::option::Option<i32>) -> Self {
85 self.status = input;
86 self
87 }
88 /// <p>The HTTP status of the request.</p>
89 pub fn get_status(&self) -> &::std::option::Option<i32> {
90 &self.status
91 }
92 pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
93 self._request_id = Some(request_id.into());
94 self
95 }
96
97 pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
98 self._request_id = request_id;
99 self
100 }
101 /// Consumes the builder and constructs a [`DescribeNamespaceOutput`](crate::operation::describe_namespace::DescribeNamespaceOutput).
102 pub fn build(self) -> crate::operation::describe_namespace::DescribeNamespaceOutput {
103 crate::operation::describe_namespace::DescribeNamespaceOutput {
104 namespace: self.namespace,
105 request_id: self.request_id,
106 status: self.status.unwrap_or_default(),
107 _request_id: self._request_id,
108 }
109 }
110}