#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetIntegrationConfigurationOutput {
pub integration_name: ::std::string::String,
pub integration_arn: ::std::string::String,
pub integration_type_id: ::std::string::String,
pub resource_configuration: ::std::option::Option<crate::types::ResourceConfiguration>,
pub created_at: ::aws_smithy_types::DateTime,
pub updated_at: ::std::option::Option<::aws_smithy_types::DateTime>,
pub environment_variables: ::std::vec::Vec<crate::types::IntegrationEnvironmentVariable>,
_request_id: Option<String>,
}
impl GetIntegrationConfigurationOutput {
pub fn integration_name(&self) -> &str {
use std::ops::Deref;
self.integration_name.deref()
}
pub fn integration_arn(&self) -> &str {
use std::ops::Deref;
self.integration_arn.deref()
}
pub fn integration_type_id(&self) -> &str {
use std::ops::Deref;
self.integration_type_id.deref()
}
pub fn resource_configuration(&self) -> ::std::option::Option<&crate::types::ResourceConfiguration> {
self.resource_configuration.as_ref()
}
pub fn created_at(&self) -> &::aws_smithy_types::DateTime {
&self.created_at
}
pub fn updated_at(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.updated_at.as_ref()
}
pub fn environment_variables(&self) -> &[crate::types::IntegrationEnvironmentVariable] {
use std::ops::Deref;
self.environment_variables.deref()
}
}
impl ::aws_types::request_id::RequestId for GetIntegrationConfigurationOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl GetIntegrationConfigurationOutput {
pub fn builder() -> crate::operation::get_integration_configuration::builders::GetIntegrationConfigurationOutputBuilder {
crate::operation::get_integration_configuration::builders::GetIntegrationConfigurationOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetIntegrationConfigurationOutputBuilder {
pub(crate) integration_name: ::std::option::Option<::std::string::String>,
pub(crate) integration_arn: ::std::option::Option<::std::string::String>,
pub(crate) integration_type_id: ::std::option::Option<::std::string::String>,
pub(crate) resource_configuration: ::std::option::Option<crate::types::ResourceConfiguration>,
pub(crate) created_at: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) updated_at: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) environment_variables: ::std::option::Option<::std::vec::Vec<crate::types::IntegrationEnvironmentVariable>>,
_request_id: Option<String>,
}
impl GetIntegrationConfigurationOutputBuilder {
pub fn integration_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.integration_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_integration_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.integration_name = input;
self
}
pub fn get_integration_name(&self) -> &::std::option::Option<::std::string::String> {
&self.integration_name
}
pub fn integration_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.integration_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_integration_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.integration_arn = input;
self
}
pub fn get_integration_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.integration_arn
}
pub fn integration_type_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.integration_type_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_integration_type_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.integration_type_id = input;
self
}
pub fn get_integration_type_id(&self) -> &::std::option::Option<::std::string::String> {
&self.integration_type_id
}
pub fn resource_configuration(mut self, input: crate::types::ResourceConfiguration) -> Self {
self.resource_configuration = ::std::option::Option::Some(input);
self
}
pub fn set_resource_configuration(mut self, input: ::std::option::Option<crate::types::ResourceConfiguration>) -> Self {
self.resource_configuration = input;
self
}
pub fn get_resource_configuration(&self) -> &::std::option::Option<crate::types::ResourceConfiguration> {
&self.resource_configuration
}
pub fn created_at(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.created_at = ::std::option::Option::Some(input);
self
}
pub fn set_created_at(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.created_at = input;
self
}
pub fn get_created_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.created_at
}
pub fn updated_at(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.updated_at = ::std::option::Option::Some(input);
self
}
pub fn set_updated_at(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.updated_at = input;
self
}
pub fn get_updated_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.updated_at
}
pub fn environment_variables(mut self, input: crate::types::IntegrationEnvironmentVariable) -> Self {
let mut v = self.environment_variables.unwrap_or_default();
v.push(input);
self.environment_variables = ::std::option::Option::Some(v);
self
}
pub fn set_environment_variables(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::IntegrationEnvironmentVariable>>) -> Self {
self.environment_variables = input;
self
}
pub fn get_environment_variables(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::IntegrationEnvironmentVariable>> {
&self.environment_variables
}
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,
) -> ::std::result::Result<
crate::operation::get_integration_configuration::GetIntegrationConfigurationOutput,
::aws_smithy_types::error::operation::BuildError,
> {
::std::result::Result::Ok(crate::operation::get_integration_configuration::GetIntegrationConfigurationOutput {
integration_name: self.integration_name.ok_or_else(|| {
::aws_smithy_types::error::operation::BuildError::missing_field(
"integration_name",
"integration_name was not specified but it is required when building GetIntegrationConfigurationOutput",
)
})?,
integration_arn: self.integration_arn.ok_or_else(|| {
::aws_smithy_types::error::operation::BuildError::missing_field(
"integration_arn",
"integration_arn was not specified but it is required when building GetIntegrationConfigurationOutput",
)
})?,
integration_type_id: self.integration_type_id.ok_or_else(|| {
::aws_smithy_types::error::operation::BuildError::missing_field(
"integration_type_id",
"integration_type_id was not specified but it is required when building GetIntegrationConfigurationOutput",
)
})?,
resource_configuration: self.resource_configuration,
created_at: self.created_at.ok_or_else(|| {
::aws_smithy_types::error::operation::BuildError::missing_field(
"created_at",
"created_at was not specified but it is required when building GetIntegrationConfigurationOutput",
)
})?,
updated_at: self.updated_at,
environment_variables: self.environment_variables.ok_or_else(|| {
::aws_smithy_types::error::operation::BuildError::missing_field(
"environment_variables",
"environment_variables was not specified but it is required when building GetIntegrationConfigurationOutput",
)
})?,
_request_id: self._request_id,
})
}
}