#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetResourceDashboardInput {
pub application_id: ::std::option::Option<::std::string::String>,
pub resource_id: ::std::option::Option<::std::string::String>,
pub resource_type: ::std::option::Option<crate::types::ResourceType>,
}
impl GetResourceDashboardInput {
pub fn application_id(&self) -> ::std::option::Option<&str> {
self.application_id.as_deref()
}
pub fn resource_id(&self) -> ::std::option::Option<&str> {
self.resource_id.as_deref()
}
pub fn resource_type(&self) -> ::std::option::Option<&crate::types::ResourceType> {
self.resource_type.as_ref()
}
}
impl GetResourceDashboardInput {
pub fn builder() -> crate::operation::get_resource_dashboard::builders::GetResourceDashboardInputBuilder {
crate::operation::get_resource_dashboard::builders::GetResourceDashboardInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetResourceDashboardInputBuilder {
pub(crate) application_id: ::std::option::Option<::std::string::String>,
pub(crate) resource_id: ::std::option::Option<::std::string::String>,
pub(crate) resource_type: ::std::option::Option<crate::types::ResourceType>,
}
impl GetResourceDashboardInputBuilder {
pub fn application_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.application_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_application_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.application_id = input;
self
}
pub fn get_application_id(&self) -> &::std::option::Option<::std::string::String> {
&self.application_id
}
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::ResourceType) -> Self {
self.resource_type = ::std::option::Option::Some(input);
self
}
pub fn set_resource_type(mut self, input: ::std::option::Option<crate::types::ResourceType>) -> Self {
self.resource_type = input;
self
}
pub fn get_resource_type(&self) -> &::std::option::Option<crate::types::ResourceType> {
&self.resource_type
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::get_resource_dashboard::GetResourceDashboardInput, ::aws_smithy_types::error::operation::BuildError>
{
::std::result::Result::Ok(crate::operation::get_resource_dashboard::GetResourceDashboardInput {
application_id: self.application_id,
resource_id: self.resource_id,
resource_type: self.resource_type,
})
}
}