aws_sdk_athena/operation/get_resource_dashboard/
_get_resource_dashboard_output.rs1#[allow(missing_docs)] #[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct GetResourceDashboardOutput {
6 pub url: ::std::string::String,
8 _request_id: Option<String>,
9}
10impl GetResourceDashboardOutput {
11 pub fn url(&self) -> &str {
13 use std::ops::Deref;
14 self.url.deref()
15 }
16}
17impl ::aws_types::request_id::RequestId for GetResourceDashboardOutput {
18 fn request_id(&self) -> Option<&str> {
19 self._request_id.as_deref()
20 }
21}
22impl GetResourceDashboardOutput {
23 pub fn builder() -> crate::operation::get_resource_dashboard::builders::GetResourceDashboardOutputBuilder {
25 crate::operation::get_resource_dashboard::builders::GetResourceDashboardOutputBuilder::default()
26 }
27}
28
29#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
31#[non_exhaustive]
32pub struct GetResourceDashboardOutputBuilder {
33 pub(crate) url: ::std::option::Option<::std::string::String>,
34 _request_id: Option<String>,
35}
36impl GetResourceDashboardOutputBuilder {
37 pub fn url(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
40 self.url = ::std::option::Option::Some(input.into());
41 self
42 }
43 pub fn set_url(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
45 self.url = input;
46 self
47 }
48 pub fn get_url(&self) -> &::std::option::Option<::std::string::String> {
50 &self.url
51 }
52 pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
53 self._request_id = Some(request_id.into());
54 self
55 }
56
57 pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
58 self._request_id = request_id;
59 self
60 }
61 pub fn build(
65 self,
66 ) -> ::std::result::Result<crate::operation::get_resource_dashboard::GetResourceDashboardOutput, ::aws_smithy_types::error::operation::BuildError>
67 {
68 ::std::result::Result::Ok(crate::operation::get_resource_dashboard::GetResourceDashboardOutput {
69 url: self.url.ok_or_else(|| {
70 ::aws_smithy_types::error::operation::BuildError::missing_field(
71 "url",
72 "url was not specified but it is required when building GetResourceDashboardOutput",
73 )
74 })?,
75 _request_id: self._request_id,
76 })
77 }
78}