#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DescribeAccessPointsOutput {
#[doc(hidden)]
pub access_points: std::option::Option<std::vec::Vec<crate::types::AccessPointDescription>>,
#[doc(hidden)]
pub next_token: std::option::Option<std::string::String>,
_request_id: Option<String>,
}
impl DescribeAccessPointsOutput {
pub fn access_points(&self) -> std::option::Option<&[crate::types::AccessPointDescription]> {
self.access_points.as_deref()
}
pub fn next_token(&self) -> std::option::Option<&str> {
self.next_token.as_deref()
}
}
impl aws_http::request_id::RequestId for DescribeAccessPointsOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl DescribeAccessPointsOutput {
pub fn builder(
) -> crate::operation::describe_access_points::builders::DescribeAccessPointsOutputBuilder {
crate::operation::describe_access_points::builders::DescribeAccessPointsOutputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct DescribeAccessPointsOutputBuilder {
pub(crate) access_points:
std::option::Option<std::vec::Vec<crate::types::AccessPointDescription>>,
pub(crate) next_token: std::option::Option<std::string::String>,
_request_id: Option<String>,
}
impl DescribeAccessPointsOutputBuilder {
pub fn access_points(mut self, input: crate::types::AccessPointDescription) -> Self {
let mut v = self.access_points.unwrap_or_default();
v.push(input);
self.access_points = Some(v);
self
}
pub fn set_access_points(
mut self,
input: std::option::Option<std::vec::Vec<crate::types::AccessPointDescription>>,
) -> Self {
self.access_points = input;
self
}
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.next_token = Some(input.into());
self
}
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.next_token = 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_access_points::DescribeAccessPointsOutput {
crate::operation::describe_access_points::DescribeAccessPointsOutput {
access_points: self.access_points,
next_token: self.next_token,
_request_id: self._request_id,
}
}
}