#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DiscoverPollEndpointOutput {
pub endpoint: ::std::option::Option<::std::string::String>,
pub telemetry_endpoint: ::std::option::Option<::std::string::String>,
pub service_connect_endpoint: ::std::option::Option<::std::string::String>,
_request_id: Option<String>,
}
impl DiscoverPollEndpointOutput {
pub fn endpoint(&self) -> ::std::option::Option<&str> {
self.endpoint.as_deref()
}
pub fn telemetry_endpoint(&self) -> ::std::option::Option<&str> {
self.telemetry_endpoint.as_deref()
}
pub fn service_connect_endpoint(&self) -> ::std::option::Option<&str> {
self.service_connect_endpoint.as_deref()
}
}
impl ::aws_types::request_id::RequestId for DiscoverPollEndpointOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl DiscoverPollEndpointOutput {
pub fn builder() -> crate::operation::discover_poll_endpoint::builders::DiscoverPollEndpointOutputBuilder {
crate::operation::discover_poll_endpoint::builders::DiscoverPollEndpointOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DiscoverPollEndpointOutputBuilder {
pub(crate) endpoint: ::std::option::Option<::std::string::String>,
pub(crate) telemetry_endpoint: ::std::option::Option<::std::string::String>,
pub(crate) service_connect_endpoint: ::std::option::Option<::std::string::String>,
_request_id: Option<String>,
}
impl DiscoverPollEndpointOutputBuilder {
pub fn endpoint(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.endpoint = ::std::option::Option::Some(input.into());
self
}
pub fn set_endpoint(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.endpoint = input;
self
}
pub fn get_endpoint(&self) -> &::std::option::Option<::std::string::String> {
&self.endpoint
}
pub fn telemetry_endpoint(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.telemetry_endpoint = ::std::option::Option::Some(input.into());
self
}
pub fn set_telemetry_endpoint(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.telemetry_endpoint = input;
self
}
pub fn get_telemetry_endpoint(&self) -> &::std::option::Option<::std::string::String> {
&self.telemetry_endpoint
}
pub fn service_connect_endpoint(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.service_connect_endpoint = ::std::option::Option::Some(input.into());
self
}
pub fn set_service_connect_endpoint(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.service_connect_endpoint = input;
self
}
pub fn get_service_connect_endpoint(&self) -> &::std::option::Option<::std::string::String> {
&self.service_connect_endpoint
}
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::discover_poll_endpoint::DiscoverPollEndpointOutput {
crate::operation::discover_poll_endpoint::DiscoverPollEndpointOutput {
endpoint: self.endpoint,
telemetry_endpoint: self.telemetry_endpoint,
service_connect_endpoint: self.service_connect_endpoint,
_request_id: self._request_id,
}
}
}