#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetDashboardUrlInput {
pub resource_id: ::std::option::Option<::std::string::String>,
pub resource_type: ::std::option::Option<crate::types::GlueResourceType>,
pub request_origin: ::std::option::Option<::std::string::String>,
}
impl GetDashboardUrlInput {
pub fn resource_id(&self) -> ::std::option::Option<&str> {
self.resource_id.as_deref()
}
pub fn resource_type(&self) -> ::std::option::Option<&crate::types::GlueResourceType> {
self.resource_type.as_ref()
}
pub fn request_origin(&self) -> ::std::option::Option<&str> {
self.request_origin.as_deref()
}
}
impl GetDashboardUrlInput {
pub fn builder() -> crate::operation::get_dashboard_url::builders::GetDashboardUrlInputBuilder {
crate::operation::get_dashboard_url::builders::GetDashboardUrlInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetDashboardUrlInputBuilder {
pub(crate) resource_id: ::std::option::Option<::std::string::String>,
pub(crate) resource_type: ::std::option::Option<crate::types::GlueResourceType>,
pub(crate) request_origin: ::std::option::Option<::std::string::String>,
}
impl GetDashboardUrlInputBuilder {
pub fn resource_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.resource_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_resource_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.resource_id = input;
self
}
pub fn get_resource_id(&self) -> &::std::option::Option<::std::string::String> {
&self.resource_id
}
pub fn resource_type(mut self, input: crate::types::GlueResourceType) -> Self {
self.resource_type = ::std::option::Option::Some(input);
self
}
pub fn set_resource_type(mut self, input: ::std::option::Option<crate::types::GlueResourceType>) -> Self {
self.resource_type = input;
self
}
pub fn get_resource_type(&self) -> &::std::option::Option<crate::types::GlueResourceType> {
&self.resource_type
}
pub fn request_origin(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.request_origin = ::std::option::Option::Some(input.into());
self
}
pub fn set_request_origin(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.request_origin = input;
self
}
pub fn get_request_origin(&self) -> &::std::option::Option<::std::string::String> {
&self.request_origin
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::get_dashboard_url::GetDashboardUrlInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::get_dashboard_url::GetDashboardUrlInput {
resource_id: self.resource_id,
resource_type: self.resource_type,
request_origin: self.request_origin,
})
}
}