#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ListEndpointsOutput {
pub endpoints: std::option::Option<std::vec::Vec<crate::model::Endpoint>>,
pub next_token: std::option::Option<std::string::String>,
}
impl ListEndpointsOutput {
pub fn endpoints(&self) -> std::option::Option<&[crate::model::Endpoint]> {
self.endpoints.as_deref()
}
pub fn next_token(&self) -> std::option::Option<&str> {
self.next_token.as_deref()
}
}
impl std::fmt::Debug for ListEndpointsOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ListEndpointsOutput");
formatter.field("endpoints", &self.endpoints);
formatter.field("next_token", &self.next_token);
formatter.finish()
}
}
pub mod list_endpoints_output {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) endpoints: std::option::Option<std::vec::Vec<crate::model::Endpoint>>,
pub(crate) next_token: std::option::Option<std::string::String>,
}
impl Builder {
pub fn endpoints(mut self, input: crate::model::Endpoint) -> Self {
let mut v = self.endpoints.unwrap_or_default();
v.push(input);
self.endpoints = Some(v);
self
}
pub fn set_endpoints(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::Endpoint>>,
) -> Self {
self.endpoints = 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 fn build(self) -> crate::output::ListEndpointsOutput {
crate::output::ListEndpointsOutput {
endpoints: self.endpoints,
next_token: self.next_token,
}
}
}
}
impl ListEndpointsOutput {
pub fn builder() -> crate::output::list_endpoints_output::Builder {
crate::output::list_endpoints_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct DeleteEndpointOutput {}
impl std::fmt::Debug for DeleteEndpointOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("DeleteEndpointOutput");
formatter.finish()
}
}
pub mod delete_endpoint_output {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
pub fn build(self) -> crate::output::DeleteEndpointOutput {
crate::output::DeleteEndpointOutput {}
}
}
}
impl DeleteEndpointOutput {
pub fn builder() -> crate::output::delete_endpoint_output::Builder {
crate::output::delete_endpoint_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct CreateEndpointOutput {
pub endpoint_arn: std::option::Option<std::string::String>,
}
impl CreateEndpointOutput {
pub fn endpoint_arn(&self) -> std::option::Option<&str> {
self.endpoint_arn.as_deref()
}
}
impl std::fmt::Debug for CreateEndpointOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("CreateEndpointOutput");
formatter.field("endpoint_arn", &self.endpoint_arn);
formatter.finish()
}
}
pub mod create_endpoint_output {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) endpoint_arn: std::option::Option<std::string::String>,
}
impl Builder {
pub fn endpoint_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.endpoint_arn = Some(input.into());
self
}
pub fn set_endpoint_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.endpoint_arn = input;
self
}
pub fn build(self) -> crate::output::CreateEndpointOutput {
crate::output::CreateEndpointOutput {
endpoint_arn: self.endpoint_arn,
}
}
}
}
impl CreateEndpointOutput {
pub fn builder() -> crate::output::create_endpoint_output::Builder {
crate::output::create_endpoint_output::Builder::default()
}
}