#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct RemoveEndpointsInput {
pub endpoint_identifiers: ::std::option::Option<::std::vec::Vec<crate::types::EndpointIdentifier>>,
pub endpoint_group_arn: ::std::option::Option<::std::string::String>,
}
impl RemoveEndpointsInput {
pub fn endpoint_identifiers(&self) -> &[crate::types::EndpointIdentifier] {
self.endpoint_identifiers.as_deref().unwrap_or_default()
}
pub fn endpoint_group_arn(&self) -> ::std::option::Option<&str> {
self.endpoint_group_arn.as_deref()
}
}
impl RemoveEndpointsInput {
pub fn builder() -> crate::operation::remove_endpoints::builders::RemoveEndpointsInputBuilder {
crate::operation::remove_endpoints::builders::RemoveEndpointsInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct RemoveEndpointsInputBuilder {
pub(crate) endpoint_identifiers: ::std::option::Option<::std::vec::Vec<crate::types::EndpointIdentifier>>,
pub(crate) endpoint_group_arn: ::std::option::Option<::std::string::String>,
}
impl RemoveEndpointsInputBuilder {
pub fn endpoint_identifiers(mut self, input: crate::types::EndpointIdentifier) -> Self {
let mut v = self.endpoint_identifiers.unwrap_or_default();
v.push(input);
self.endpoint_identifiers = ::std::option::Option::Some(v);
self
}
pub fn set_endpoint_identifiers(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::EndpointIdentifier>>) -> Self {
self.endpoint_identifiers = input;
self
}
pub fn get_endpoint_identifiers(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::EndpointIdentifier>> {
&self.endpoint_identifiers
}
pub fn endpoint_group_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.endpoint_group_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_endpoint_group_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.endpoint_group_arn = input;
self
}
pub fn get_endpoint_group_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.endpoint_group_arn
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::remove_endpoints::RemoveEndpointsInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::remove_endpoints::RemoveEndpointsInput {
endpoint_identifiers: self.endpoint_identifiers,
endpoint_group_arn: self.endpoint_group_arn,
})
}
}