#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq)]
pub struct TestConnectionFunctionInput {
pub id: ::std::option::Option<::std::string::String>,
pub if_match: ::std::option::Option<::std::string::String>,
pub stage: ::std::option::Option<crate::types::FunctionStage>,
pub connection_object: ::std::option::Option<::aws_smithy_types::Blob>,
}
impl TestConnectionFunctionInput {
pub fn id(&self) -> ::std::option::Option<&str> {
self.id.as_deref()
}
pub fn if_match(&self) -> ::std::option::Option<&str> {
self.if_match.as_deref()
}
pub fn stage(&self) -> ::std::option::Option<&crate::types::FunctionStage> {
self.stage.as_ref()
}
pub fn connection_object(&self) -> ::std::option::Option<&::aws_smithy_types::Blob> {
self.connection_object.as_ref()
}
}
impl ::std::fmt::Debug for TestConnectionFunctionInput {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("TestConnectionFunctionInput");
formatter.field("id", &self.id);
formatter.field("if_match", &self.if_match);
formatter.field("stage", &self.stage);
formatter.field("connection_object", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
impl TestConnectionFunctionInput {
pub fn builder() -> crate::operation::test_connection_function::builders::TestConnectionFunctionInputBuilder {
crate::operation::test_connection_function::builders::TestConnectionFunctionInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
#[non_exhaustive]
pub struct TestConnectionFunctionInputBuilder {
pub(crate) id: ::std::option::Option<::std::string::String>,
pub(crate) if_match: ::std::option::Option<::std::string::String>,
pub(crate) stage: ::std::option::Option<crate::types::FunctionStage>,
pub(crate) connection_object: ::std::option::Option<::aws_smithy_types::Blob>,
}
impl TestConnectionFunctionInputBuilder {
pub fn id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.id = ::std::option::Option::Some(input.into());
self
}
pub fn set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.id = input;
self
}
pub fn get_id(&self) -> &::std::option::Option<::std::string::String> {
&self.id
}
pub fn if_match(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.if_match = ::std::option::Option::Some(input.into());
self
}
pub fn set_if_match(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.if_match = input;
self
}
pub fn get_if_match(&self) -> &::std::option::Option<::std::string::String> {
&self.if_match
}
pub fn stage(mut self, input: crate::types::FunctionStage) -> Self {
self.stage = ::std::option::Option::Some(input);
self
}
pub fn set_stage(mut self, input: ::std::option::Option<crate::types::FunctionStage>) -> Self {
self.stage = input;
self
}
pub fn get_stage(&self) -> &::std::option::Option<crate::types::FunctionStage> {
&self.stage
}
pub fn connection_object(mut self, input: ::aws_smithy_types::Blob) -> Self {
self.connection_object = ::std::option::Option::Some(input);
self
}
pub fn set_connection_object(mut self, input: ::std::option::Option<::aws_smithy_types::Blob>) -> Self {
self.connection_object = input;
self
}
pub fn get_connection_object(&self) -> &::std::option::Option<::aws_smithy_types::Blob> {
&self.connection_object
}
pub fn build(
self,
) -> ::std::result::Result<
crate::operation::test_connection_function::TestConnectionFunctionInput,
::aws_smithy_types::error::operation::BuildError,
> {
::std::result::Result::Ok(crate::operation::test_connection_function::TestConnectionFunctionInput {
id: self.id,
if_match: self.if_match,
stage: self.stage,
connection_object: self.connection_object,
})
}
}
impl ::std::fmt::Debug for TestConnectionFunctionInputBuilder {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("TestConnectionFunctionInputBuilder");
formatter.field("id", &self.id);
formatter.field("if_match", &self.if_match);
formatter.field("stage", &self.stage);
formatter.field("connection_object", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}