#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct CreateCustomRoutingEndpointGroupOutput {
pub endpoint_group: ::std::option::Option<crate::types::CustomRoutingEndpointGroup>,
_request_id: Option<String>,
}
impl CreateCustomRoutingEndpointGroupOutput {
pub fn endpoint_group(&self) -> ::std::option::Option<&crate::types::CustomRoutingEndpointGroup> {
self.endpoint_group.as_ref()
}
}
impl ::aws_types::request_id::RequestId for CreateCustomRoutingEndpointGroupOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl CreateCustomRoutingEndpointGroupOutput {
pub fn builder() -> crate::operation::create_custom_routing_endpoint_group::builders::CreateCustomRoutingEndpointGroupOutputBuilder {
crate::operation::create_custom_routing_endpoint_group::builders::CreateCustomRoutingEndpointGroupOutputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct CreateCustomRoutingEndpointGroupOutputBuilder {
pub(crate) endpoint_group: ::std::option::Option<crate::types::CustomRoutingEndpointGroup>,
_request_id: Option<String>,
}
impl CreateCustomRoutingEndpointGroupOutputBuilder {
pub fn endpoint_group(mut self, input: crate::types::CustomRoutingEndpointGroup) -> Self {
self.endpoint_group = ::std::option::Option::Some(input);
self
}
pub fn set_endpoint_group(mut self, input: ::std::option::Option<crate::types::CustomRoutingEndpointGroup>) -> Self {
self.endpoint_group = input;
self
}
pub fn get_endpoint_group(&self) -> &::std::option::Option<crate::types::CustomRoutingEndpointGroup> {
&self.endpoint_group
}
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::create_custom_routing_endpoint_group::CreateCustomRoutingEndpointGroupOutput {
crate::operation::create_custom_routing_endpoint_group::CreateCustomRoutingEndpointGroupOutput {
endpoint_group: self.endpoint_group,
_request_id: self._request_id,
}
}
}