#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct UpdateLinkOutput {
#[doc(hidden)]
pub arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub label: std::option::Option<std::string::String>,
#[doc(hidden)]
pub label_template: std::option::Option<std::string::String>,
#[doc(hidden)]
pub resource_types: std::option::Option<std::vec::Vec<std::string::String>>,
#[doc(hidden)]
pub sink_arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub tags:
std::option::Option<std::collections::HashMap<std::string::String, std::string::String>>,
_request_id: Option<String>,
}
impl UpdateLinkOutput {
pub fn arn(&self) -> std::option::Option<&str> {
self.arn.as_deref()
}
pub fn id(&self) -> std::option::Option<&str> {
self.id.as_deref()
}
pub fn label(&self) -> std::option::Option<&str> {
self.label.as_deref()
}
pub fn label_template(&self) -> std::option::Option<&str> {
self.label_template.as_deref()
}
pub fn resource_types(&self) -> std::option::Option<&[std::string::String]> {
self.resource_types.as_deref()
}
pub fn sink_arn(&self) -> std::option::Option<&str> {
self.sink_arn.as_deref()
}
pub fn tags(
&self,
) -> std::option::Option<&std::collections::HashMap<std::string::String, std::string::String>>
{
self.tags.as_ref()
}
}
impl aws_http::request_id::RequestId for UpdateLinkOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl UpdateLinkOutput {
pub fn builder() -> crate::operation::update_link::builders::UpdateLinkOutputBuilder {
crate::operation::update_link::builders::UpdateLinkOutputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct UpdateLinkOutputBuilder {
pub(crate) arn: std::option::Option<std::string::String>,
pub(crate) id: std::option::Option<std::string::String>,
pub(crate) label: std::option::Option<std::string::String>,
pub(crate) label_template: std::option::Option<std::string::String>,
pub(crate) resource_types: std::option::Option<std::vec::Vec<std::string::String>>,
pub(crate) sink_arn: std::option::Option<std::string::String>,
pub(crate) tags:
std::option::Option<std::collections::HashMap<std::string::String, std::string::String>>,
_request_id: Option<String>,
}
impl UpdateLinkOutputBuilder {
pub fn arn(mut self, input: impl Into<std::string::String>) -> Self {
self.arn = Some(input.into());
self
}
pub fn set_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.arn = input;
self
}
pub fn id(mut self, input: impl Into<std::string::String>) -> Self {
self.id = Some(input.into());
self
}
pub fn set_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.id = input;
self
}
pub fn label(mut self, input: impl Into<std::string::String>) -> Self {
self.label = Some(input.into());
self
}
pub fn set_label(mut self, input: std::option::Option<std::string::String>) -> Self {
self.label = input;
self
}
pub fn label_template(mut self, input: impl Into<std::string::String>) -> Self {
self.label_template = Some(input.into());
self
}
pub fn set_label_template(mut self, input: std::option::Option<std::string::String>) -> Self {
self.label_template = input;
self
}
pub fn resource_types(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.resource_types.unwrap_or_default();
v.push(input.into());
self.resource_types = Some(v);
self
}
pub fn set_resource_types(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.resource_types = input;
self
}
pub fn sink_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.sink_arn = Some(input.into());
self
}
pub fn set_sink_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.sink_arn = input;
self
}
pub fn tags(
mut self,
k: impl Into<std::string::String>,
v: impl Into<std::string::String>,
) -> Self {
let mut hash_map = self.tags.unwrap_or_default();
hash_map.insert(k.into(), v.into());
self.tags = Some(hash_map);
self
}
pub fn set_tags(
mut self,
input: std::option::Option<
std::collections::HashMap<std::string::String, std::string::String>,
>,
) -> Self {
self.tags = input;
self
}
pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
self._request_id = Some(request_id.into());
self
}
pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
self._request_id = request_id;
self
}
pub fn build(self) -> crate::operation::update_link::UpdateLinkOutput {
crate::operation::update_link::UpdateLinkOutput {
arn: self.arn,
id: self.id,
label: self.label,
label_template: self.label_template,
resource_types: self.resource_types,
sink_arn: self.sink_arn,
tags: self.tags,
_request_id: self._request_id,
}
}
}