#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetDataSubscriptionOutput {
pub data_subscription_identifier: ::std::string::String,
pub catalog: ::std::string::String,
pub dataset_name: ::std::string::String,
pub delivery_method: crate::types::DeliveryMethod,
pub s3_arn: ::std::string::String,
pub kms_key_arn: ::std::string::String,
pub create_timestamp: ::aws_smithy_types::DateTime,
pub delivery_completeness: ::std::option::Option<::aws_smithy_types::DateTime>,
pub delivery_status: crate::types::DeliveryStatus,
pub delivery_status_message: ::std::option::Option<::std::string::String>,
pub delete_timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
pub delivery_state: ::std::option::Option<crate::types::DeliveryState>,
pub delivered_through: ::std::option::Option<::aws_smithy_types::DateTime>,
pub last_delivery_time: ::std::option::Option<::aws_smithy_types::DateTime>,
pub delivery_state_message: ::std::option::Option<::std::string::String>,
pub initial_delivery_progress: ::std::option::Option<crate::types::InitialDeliveryProgress>,
_request_id: Option<String>,
}
impl GetDataSubscriptionOutput {
pub fn data_subscription_identifier(&self) -> &str {
use std::ops::Deref;
self.data_subscription_identifier.deref()
}
pub fn catalog(&self) -> &str {
use std::ops::Deref;
self.catalog.deref()
}
pub fn dataset_name(&self) -> &str {
use std::ops::Deref;
self.dataset_name.deref()
}
pub fn delivery_method(&self) -> &crate::types::DeliveryMethod {
&self.delivery_method
}
pub fn s3_arn(&self) -> &str {
use std::ops::Deref;
self.s3_arn.deref()
}
pub fn kms_key_arn(&self) -> &str {
use std::ops::Deref;
self.kms_key_arn.deref()
}
pub fn create_timestamp(&self) -> &::aws_smithy_types::DateTime {
&self.create_timestamp
}
pub fn delivery_completeness(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.delivery_completeness.as_ref()
}
pub fn delivery_status(&self) -> &crate::types::DeliveryStatus {
&self.delivery_status
}
pub fn delivery_status_message(&self) -> ::std::option::Option<&str> {
self.delivery_status_message.as_deref()
}
pub fn delete_timestamp(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.delete_timestamp.as_ref()
}
pub fn delivery_state(&self) -> ::std::option::Option<&crate::types::DeliveryState> {
self.delivery_state.as_ref()
}
pub fn delivered_through(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.delivered_through.as_ref()
}
pub fn last_delivery_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.last_delivery_time.as_ref()
}
pub fn delivery_state_message(&self) -> ::std::option::Option<&str> {
self.delivery_state_message.as_deref()
}
pub fn initial_delivery_progress(&self) -> ::std::option::Option<&crate::types::InitialDeliveryProgress> {
self.initial_delivery_progress.as_ref()
}
}
impl ::aws_types::request_id::RequestId for GetDataSubscriptionOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl GetDataSubscriptionOutput {
pub fn builder() -> crate::operation::get_data_subscription::builders::GetDataSubscriptionOutputBuilder {
crate::operation::get_data_subscription::builders::GetDataSubscriptionOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetDataSubscriptionOutputBuilder {
pub(crate) data_subscription_identifier: ::std::option::Option<::std::string::String>,
pub(crate) catalog: ::std::option::Option<::std::string::String>,
pub(crate) dataset_name: ::std::option::Option<::std::string::String>,
pub(crate) delivery_method: ::std::option::Option<crate::types::DeliveryMethod>,
pub(crate) s3_arn: ::std::option::Option<::std::string::String>,
pub(crate) kms_key_arn: ::std::option::Option<::std::string::String>,
pub(crate) create_timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) delivery_completeness: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) delivery_status: ::std::option::Option<crate::types::DeliveryStatus>,
pub(crate) delivery_status_message: ::std::option::Option<::std::string::String>,
pub(crate) delete_timestamp: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) delivery_state: ::std::option::Option<crate::types::DeliveryState>,
pub(crate) delivered_through: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) last_delivery_time: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) delivery_state_message: ::std::option::Option<::std::string::String>,
pub(crate) initial_delivery_progress: ::std::option::Option<crate::types::InitialDeliveryProgress>,
_request_id: Option<String>,
}
impl GetDataSubscriptionOutputBuilder {
pub fn data_subscription_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.data_subscription_identifier = ::std::option::Option::Some(input.into());
self
}
pub fn set_data_subscription_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.data_subscription_identifier = input;
self
}
pub fn get_data_subscription_identifier(&self) -> &::std::option::Option<::std::string::String> {
&self.data_subscription_identifier
}
pub fn catalog(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.catalog = ::std::option::Option::Some(input.into());
self
}
pub fn set_catalog(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.catalog = input;
self
}
pub fn get_catalog(&self) -> &::std::option::Option<::std::string::String> {
&self.catalog
}
pub fn dataset_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.dataset_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_dataset_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.dataset_name = input;
self
}
pub fn get_dataset_name(&self) -> &::std::option::Option<::std::string::String> {
&self.dataset_name
}
pub fn delivery_method(mut self, input: crate::types::DeliveryMethod) -> Self {
self.delivery_method = ::std::option::Option::Some(input);
self
}
pub fn set_delivery_method(mut self, input: ::std::option::Option<crate::types::DeliveryMethod>) -> Self {
self.delivery_method = input;
self
}
pub fn get_delivery_method(&self) -> &::std::option::Option<crate::types::DeliveryMethod> {
&self.delivery_method
}
pub fn s3_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.s3_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_s3_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.s3_arn = input;
self
}
pub fn get_s3_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.s3_arn
}
pub fn kms_key_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.kms_key_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_kms_key_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.kms_key_arn = input;
self
}
pub fn get_kms_key_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.kms_key_arn
}
pub fn create_timestamp(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.create_timestamp = ::std::option::Option::Some(input);
self
}
pub fn set_create_timestamp(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.create_timestamp = input;
self
}
pub fn get_create_timestamp(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.create_timestamp
}
pub fn delivery_completeness(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.delivery_completeness = ::std::option::Option::Some(input);
self
}
pub fn set_delivery_completeness(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.delivery_completeness = input;
self
}
pub fn get_delivery_completeness(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.delivery_completeness
}
pub fn delivery_status(mut self, input: crate::types::DeliveryStatus) -> Self {
self.delivery_status = ::std::option::Option::Some(input);
self
}
pub fn set_delivery_status(mut self, input: ::std::option::Option<crate::types::DeliveryStatus>) -> Self {
self.delivery_status = input;
self
}
pub fn get_delivery_status(&self) -> &::std::option::Option<crate::types::DeliveryStatus> {
&self.delivery_status
}
pub fn delivery_status_message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.delivery_status_message = ::std::option::Option::Some(input.into());
self
}
pub fn set_delivery_status_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.delivery_status_message = input;
self
}
pub fn get_delivery_status_message(&self) -> &::std::option::Option<::std::string::String> {
&self.delivery_status_message
}
pub fn delete_timestamp(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.delete_timestamp = ::std::option::Option::Some(input);
self
}
pub fn set_delete_timestamp(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.delete_timestamp = input;
self
}
pub fn get_delete_timestamp(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.delete_timestamp
}
pub fn delivery_state(mut self, input: crate::types::DeliveryState) -> Self {
self.delivery_state = ::std::option::Option::Some(input);
self
}
pub fn set_delivery_state(mut self, input: ::std::option::Option<crate::types::DeliveryState>) -> Self {
self.delivery_state = input;
self
}
pub fn get_delivery_state(&self) -> &::std::option::Option<crate::types::DeliveryState> {
&self.delivery_state
}
pub fn delivered_through(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.delivered_through = ::std::option::Option::Some(input);
self
}
pub fn set_delivered_through(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.delivered_through = input;
self
}
pub fn get_delivered_through(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.delivered_through
}
pub fn last_delivery_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.last_delivery_time = ::std::option::Option::Some(input);
self
}
pub fn set_last_delivery_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.last_delivery_time = input;
self
}
pub fn get_last_delivery_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.last_delivery_time
}
pub fn delivery_state_message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.delivery_state_message = ::std::option::Option::Some(input.into());
self
}
pub fn set_delivery_state_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.delivery_state_message = input;
self
}
pub fn get_delivery_state_message(&self) -> &::std::option::Option<::std::string::String> {
&self.delivery_state_message
}
pub fn initial_delivery_progress(mut self, input: crate::types::InitialDeliveryProgress) -> Self {
self.initial_delivery_progress = ::std::option::Option::Some(input);
self
}
pub fn set_initial_delivery_progress(mut self, input: ::std::option::Option<crate::types::InitialDeliveryProgress>) -> Self {
self.initial_delivery_progress = input;
self
}
pub fn get_initial_delivery_progress(&self) -> &::std::option::Option<crate::types::InitialDeliveryProgress> {
&self.initial_delivery_progress
}
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_data_subscription::GetDataSubscriptionOutput, ::aws_smithy_types::error::operation::BuildError>
{
::std::result::Result::Ok(crate::operation::get_data_subscription::GetDataSubscriptionOutput {
data_subscription_identifier: self.data_subscription_identifier.ok_or_else(|| {
::aws_smithy_types::error::operation::BuildError::missing_field(
"data_subscription_identifier",
"data_subscription_identifier was not specified but it is required when building GetDataSubscriptionOutput",
)
})?,
catalog: self.catalog.ok_or_else(|| {
::aws_smithy_types::error::operation::BuildError::missing_field(
"catalog",
"catalog was not specified but it is required when building GetDataSubscriptionOutput",
)
})?,
dataset_name: self.dataset_name.ok_or_else(|| {
::aws_smithy_types::error::operation::BuildError::missing_field(
"dataset_name",
"dataset_name was not specified but it is required when building GetDataSubscriptionOutput",
)
})?,
delivery_method: self.delivery_method.ok_or_else(|| {
::aws_smithy_types::error::operation::BuildError::missing_field(
"delivery_method",
"delivery_method was not specified but it is required when building GetDataSubscriptionOutput",
)
})?,
s3_arn: self.s3_arn.ok_or_else(|| {
::aws_smithy_types::error::operation::BuildError::missing_field(
"s3_arn",
"s3_arn was not specified but it is required when building GetDataSubscriptionOutput",
)
})?,
kms_key_arn: self.kms_key_arn.ok_or_else(|| {
::aws_smithy_types::error::operation::BuildError::missing_field(
"kms_key_arn",
"kms_key_arn was not specified but it is required when building GetDataSubscriptionOutput",
)
})?,
create_timestamp: self.create_timestamp.ok_or_else(|| {
::aws_smithy_types::error::operation::BuildError::missing_field(
"create_timestamp",
"create_timestamp was not specified but it is required when building GetDataSubscriptionOutput",
)
})?,
delivery_completeness: self.delivery_completeness,
delivery_status: self.delivery_status.ok_or_else(|| {
::aws_smithy_types::error::operation::BuildError::missing_field(
"delivery_status",
"delivery_status was not specified but it is required when building GetDataSubscriptionOutput",
)
})?,
delivery_status_message: self.delivery_status_message,
delete_timestamp: self.delete_timestamp,
delivery_state: self.delivery_state,
delivered_through: self.delivered_through,
last_delivery_time: self.last_delivery_time,
delivery_state_message: self.delivery_state_message,
initial_delivery_progress: self.initial_delivery_progress,
_request_id: self._request_id,
})
}
}