#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateDashboardLinksInput {
pub aws_account_id: ::std::option::Option<::std::string::String>,
pub dashboard_id: ::std::option::Option<::std::string::String>,
pub link_entities: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
}
impl UpdateDashboardLinksInput {
pub fn aws_account_id(&self) -> ::std::option::Option<&str> {
self.aws_account_id.as_deref()
}
pub fn dashboard_id(&self) -> ::std::option::Option<&str> {
self.dashboard_id.as_deref()
}
pub fn link_entities(&self) -> &[::std::string::String] {
self.link_entities.as_deref().unwrap_or_default()
}
}
impl UpdateDashboardLinksInput {
pub fn builder() -> crate::operation::update_dashboard_links::builders::UpdateDashboardLinksInputBuilder {
crate::operation::update_dashboard_links::builders::UpdateDashboardLinksInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateDashboardLinksInputBuilder {
pub(crate) aws_account_id: ::std::option::Option<::std::string::String>,
pub(crate) dashboard_id: ::std::option::Option<::std::string::String>,
pub(crate) link_entities: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
}
impl UpdateDashboardLinksInputBuilder {
pub fn aws_account_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.aws_account_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_aws_account_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.aws_account_id = input;
self
}
pub fn get_aws_account_id(&self) -> &::std::option::Option<::std::string::String> {
&self.aws_account_id
}
pub fn dashboard_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.dashboard_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_dashboard_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.dashboard_id = input;
self
}
pub fn get_dashboard_id(&self) -> &::std::option::Option<::std::string::String> {
&self.dashboard_id
}
pub fn link_entities(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.link_entities.unwrap_or_default();
v.push(input.into());
self.link_entities = ::std::option::Option::Some(v);
self
}
pub fn set_link_entities(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.link_entities = input;
self
}
pub fn get_link_entities(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.link_entities
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::update_dashboard_links::UpdateDashboardLinksInput, ::aws_smithy_types::error::operation::BuildError>
{
::std::result::Result::Ok(crate::operation::update_dashboard_links::UpdateDashboardLinksInput {
aws_account_id: self.aws_account_id,
dashboard_id: self.dashboard_id,
link_entities: self.link_entities,
})
}
}