#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DescribeEndpointOutput {
#[doc(hidden)]
pub endpoint_properties: std::option::Option<crate::types::EndpointProperties>,
_request_id: Option<String>,
}
impl DescribeEndpointOutput {
pub fn endpoint_properties(&self) -> std::option::Option<&crate::types::EndpointProperties> {
self.endpoint_properties.as_ref()
}
}
impl aws_http::request_id::RequestId for DescribeEndpointOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl DescribeEndpointOutput {
pub fn builder() -> crate::operation::describe_endpoint::builders::DescribeEndpointOutputBuilder
{
crate::operation::describe_endpoint::builders::DescribeEndpointOutputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct DescribeEndpointOutputBuilder {
pub(crate) endpoint_properties: std::option::Option<crate::types::EndpointProperties>,
_request_id: Option<String>,
}
impl DescribeEndpointOutputBuilder {
pub fn endpoint_properties(mut self, input: crate::types::EndpointProperties) -> Self {
self.endpoint_properties = Some(input);
self
}
pub fn set_endpoint_properties(
mut self,
input: std::option::Option<crate::types::EndpointProperties>,
) -> Self {
self.endpoint_properties = 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::describe_endpoint::DescribeEndpointOutput {
crate::operation::describe_endpoint::DescribeEndpointOutput {
endpoint_properties: self.endpoint_properties,
_request_id: self._request_id,
}
}
}