#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct DescribePipeOutput {
#[doc(hidden)]
pub arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub description: std::option::Option<std::string::String>,
#[doc(hidden)]
pub desired_state: std::option::Option<crate::types::RequestedPipeStateDescribeResponse>,
#[doc(hidden)]
pub current_state: std::option::Option<crate::types::PipeState>,
#[doc(hidden)]
pub state_reason: std::option::Option<std::string::String>,
#[doc(hidden)]
pub source: std::option::Option<std::string::String>,
#[doc(hidden)]
pub source_parameters: std::option::Option<crate::types::PipeSourceParameters>,
#[doc(hidden)]
pub enrichment: std::option::Option<std::string::String>,
#[doc(hidden)]
pub enrichment_parameters: std::option::Option<crate::types::PipeEnrichmentParameters>,
#[doc(hidden)]
pub target: std::option::Option<std::string::String>,
#[doc(hidden)]
pub target_parameters: std::option::Option<crate::types::PipeTargetParameters>,
#[doc(hidden)]
pub role_arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub tags:
std::option::Option<std::collections::HashMap<std::string::String, std::string::String>>,
#[doc(hidden)]
pub creation_time: std::option::Option<aws_smithy_types::DateTime>,
#[doc(hidden)]
pub last_modified_time: std::option::Option<aws_smithy_types::DateTime>,
_request_id: Option<String>,
}
impl DescribePipeOutput {
pub fn arn(&self) -> std::option::Option<&str> {
self.arn.as_deref()
}
pub fn name(&self) -> std::option::Option<&str> {
self.name.as_deref()
}
pub fn description(&self) -> std::option::Option<&str> {
self.description.as_deref()
}
pub fn desired_state(
&self,
) -> std::option::Option<&crate::types::RequestedPipeStateDescribeResponse> {
self.desired_state.as_ref()
}
pub fn current_state(&self) -> std::option::Option<&crate::types::PipeState> {
self.current_state.as_ref()
}
pub fn state_reason(&self) -> std::option::Option<&str> {
self.state_reason.as_deref()
}
pub fn source(&self) -> std::option::Option<&str> {
self.source.as_deref()
}
pub fn source_parameters(&self) -> std::option::Option<&crate::types::PipeSourceParameters> {
self.source_parameters.as_ref()
}
pub fn enrichment(&self) -> std::option::Option<&str> {
self.enrichment.as_deref()
}
pub fn enrichment_parameters(
&self,
) -> std::option::Option<&crate::types::PipeEnrichmentParameters> {
self.enrichment_parameters.as_ref()
}
pub fn target(&self) -> std::option::Option<&str> {
self.target.as_deref()
}
pub fn target_parameters(&self) -> std::option::Option<&crate::types::PipeTargetParameters> {
self.target_parameters.as_ref()
}
pub fn role_arn(&self) -> std::option::Option<&str> {
self.role_arn.as_deref()
}
pub fn tags(
&self,
) -> std::option::Option<&std::collections::HashMap<std::string::String, std::string::String>>
{
self.tags.as_ref()
}
pub fn creation_time(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.creation_time.as_ref()
}
pub fn last_modified_time(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.last_modified_time.as_ref()
}
}
impl std::fmt::Debug for DescribePipeOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("DescribePipeOutput");
formatter.field("arn", &self.arn);
formatter.field("name", &self.name);
formatter.field("description", &"*** Sensitive Data Redacted ***");
formatter.field("desired_state", &self.desired_state);
formatter.field("current_state", &self.current_state);
formatter.field("state_reason", &self.state_reason);
formatter.field("source", &self.source);
formatter.field("source_parameters", &self.source_parameters);
formatter.field("enrichment", &self.enrichment);
formatter.field("enrichment_parameters", &self.enrichment_parameters);
formatter.field("target", &self.target);
formatter.field("target_parameters", &self.target_parameters);
formatter.field("role_arn", &self.role_arn);
formatter.field("tags", &self.tags);
formatter.field("creation_time", &self.creation_time);
formatter.field("last_modified_time", &self.last_modified_time);
formatter.field("_request_id", &self._request_id);
formatter.finish()
}
}
impl aws_http::request_id::RequestId for DescribePipeOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl DescribePipeOutput {
pub fn builder() -> crate::operation::describe_pipe::builders::DescribePipeOutputBuilder {
crate::operation::describe_pipe::builders::DescribePipeOutputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default)]
pub struct DescribePipeOutputBuilder {
pub(crate) arn: std::option::Option<std::string::String>,
pub(crate) name: std::option::Option<std::string::String>,
pub(crate) description: std::option::Option<std::string::String>,
pub(crate) desired_state: std::option::Option<crate::types::RequestedPipeStateDescribeResponse>,
pub(crate) current_state: std::option::Option<crate::types::PipeState>,
pub(crate) state_reason: std::option::Option<std::string::String>,
pub(crate) source: std::option::Option<std::string::String>,
pub(crate) source_parameters: std::option::Option<crate::types::PipeSourceParameters>,
pub(crate) enrichment: std::option::Option<std::string::String>,
pub(crate) enrichment_parameters: std::option::Option<crate::types::PipeEnrichmentParameters>,
pub(crate) target: std::option::Option<std::string::String>,
pub(crate) target_parameters: std::option::Option<crate::types::PipeTargetParameters>,
pub(crate) role_arn: std::option::Option<std::string::String>,
pub(crate) tags:
std::option::Option<std::collections::HashMap<std::string::String, std::string::String>>,
pub(crate) creation_time: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) last_modified_time: std::option::Option<aws_smithy_types::DateTime>,
_request_id: Option<String>,
}
impl DescribePipeOutputBuilder {
pub fn arn(mut self, input: impl Into<std::string::String>) -> Self {
self.arn = Some(input.into());
self
}
pub fn set_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.arn = input;
self
}
pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
self.name = Some(input.into());
self
}
pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.name = input;
self
}
pub fn description(mut self, input: impl Into<std::string::String>) -> Self {
self.description = Some(input.into());
self
}
pub fn set_description(mut self, input: std::option::Option<std::string::String>) -> Self {
self.description = input;
self
}
pub fn desired_state(
mut self,
input: crate::types::RequestedPipeStateDescribeResponse,
) -> Self {
self.desired_state = Some(input);
self
}
pub fn set_desired_state(
mut self,
input: std::option::Option<crate::types::RequestedPipeStateDescribeResponse>,
) -> Self {
self.desired_state = input;
self
}
pub fn current_state(mut self, input: crate::types::PipeState) -> Self {
self.current_state = Some(input);
self
}
pub fn set_current_state(
mut self,
input: std::option::Option<crate::types::PipeState>,
) -> Self {
self.current_state = input;
self
}
pub fn state_reason(mut self, input: impl Into<std::string::String>) -> Self {
self.state_reason = Some(input.into());
self
}
pub fn set_state_reason(mut self, input: std::option::Option<std::string::String>) -> Self {
self.state_reason = input;
self
}
pub fn source(mut self, input: impl Into<std::string::String>) -> Self {
self.source = Some(input.into());
self
}
pub fn set_source(mut self, input: std::option::Option<std::string::String>) -> Self {
self.source = input;
self
}
pub fn source_parameters(mut self, input: crate::types::PipeSourceParameters) -> Self {
self.source_parameters = Some(input);
self
}
pub fn set_source_parameters(
mut self,
input: std::option::Option<crate::types::PipeSourceParameters>,
) -> Self {
self.source_parameters = input;
self
}
pub fn enrichment(mut self, input: impl Into<std::string::String>) -> Self {
self.enrichment = Some(input.into());
self
}
pub fn set_enrichment(mut self, input: std::option::Option<std::string::String>) -> Self {
self.enrichment = input;
self
}
pub fn enrichment_parameters(mut self, input: crate::types::PipeEnrichmentParameters) -> Self {
self.enrichment_parameters = Some(input);
self
}
pub fn set_enrichment_parameters(
mut self,
input: std::option::Option<crate::types::PipeEnrichmentParameters>,
) -> Self {
self.enrichment_parameters = input;
self
}
pub fn target(mut self, input: impl Into<std::string::String>) -> Self {
self.target = Some(input.into());
self
}
pub fn set_target(mut self, input: std::option::Option<std::string::String>) -> Self {
self.target = input;
self
}
pub fn target_parameters(mut self, input: crate::types::PipeTargetParameters) -> Self {
self.target_parameters = Some(input);
self
}
pub fn set_target_parameters(
mut self,
input: std::option::Option<crate::types::PipeTargetParameters>,
) -> Self {
self.target_parameters = input;
self
}
pub fn role_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.role_arn = Some(input.into());
self
}
pub fn set_role_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.role_arn = input;
self
}
pub fn tags(
mut self,
k: impl Into<std::string::String>,
v: impl Into<std::string::String>,
) -> Self {
let mut hash_map = self.tags.unwrap_or_default();
hash_map.insert(k.into(), v.into());
self.tags = Some(hash_map);
self
}
pub fn set_tags(
mut self,
input: std::option::Option<
std::collections::HashMap<std::string::String, std::string::String>,
>,
) -> Self {
self.tags = input;
self
}
pub fn creation_time(mut self, input: aws_smithy_types::DateTime) -> Self {
self.creation_time = Some(input);
self
}
pub fn set_creation_time(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.creation_time = input;
self
}
pub fn last_modified_time(mut self, input: aws_smithy_types::DateTime) -> Self {
self.last_modified_time = Some(input);
self
}
pub fn set_last_modified_time(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.last_modified_time = 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_pipe::DescribePipeOutput {
crate::operation::describe_pipe::DescribePipeOutput {
arn: self.arn,
name: self.name,
description: self.description,
desired_state: self.desired_state,
current_state: self.current_state,
state_reason: self.state_reason,
source: self.source,
source_parameters: self.source_parameters,
enrichment: self.enrichment,
enrichment_parameters: self.enrichment_parameters,
target: self.target,
target_parameters: self.target_parameters,
role_arn: self.role_arn,
tags: self.tags,
creation_time: self.creation_time,
last_modified_time: self.last_modified_time,
_request_id: self._request_id,
}
}
}
impl std::fmt::Debug for DescribePipeOutputBuilder {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("DescribePipeOutputBuilder");
formatter.field("arn", &self.arn);
formatter.field("name", &self.name);
formatter.field("description", &"*** Sensitive Data Redacted ***");
formatter.field("desired_state", &self.desired_state);
formatter.field("current_state", &self.current_state);
formatter.field("state_reason", &self.state_reason);
formatter.field("source", &self.source);
formatter.field("source_parameters", &self.source_parameters);
formatter.field("enrichment", &self.enrichment);
formatter.field("enrichment_parameters", &self.enrichment_parameters);
formatter.field("target", &self.target);
formatter.field("target_parameters", &self.target_parameters);
formatter.field("role_arn", &self.role_arn);
formatter.field("tags", &self.tags);
formatter.field("creation_time", &self.creation_time);
formatter.field("last_modified_time", &self.last_modified_time);
formatter.field("_request_id", &self._request_id);
formatter.finish()
}
}