#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ListWorkgroupsOutput {
#[doc(hidden)]
pub next_token: std::option::Option<std::string::String>,
#[doc(hidden)]
pub workgroups: std::option::Option<std::vec::Vec<crate::model::Workgroup>>,
}
impl ListWorkgroupsOutput {
pub fn next_token(&self) -> std::option::Option<&str> {
self.next_token.as_deref()
}
pub fn workgroups(&self) -> std::option::Option<&[crate::model::Workgroup]> {
self.workgroups.as_deref()
}
}
pub mod list_workgroups_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) next_token: std::option::Option<std::string::String>,
pub(crate) workgroups: std::option::Option<std::vec::Vec<crate::model::Workgroup>>,
}
impl Builder {
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.next_token = Some(input.into());
self
}
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.next_token = input;
self
}
pub fn workgroups(mut self, input: crate::model::Workgroup) -> Self {
let mut v = self.workgroups.unwrap_or_default();
v.push(input);
self.workgroups = Some(v);
self
}
pub fn set_workgroups(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::Workgroup>>,
) -> Self {
self.workgroups = input;
self
}
pub fn build(self) -> crate::output::ListWorkgroupsOutput {
crate::output::ListWorkgroupsOutput {
next_token: self.next_token,
workgroups: self.workgroups,
}
}
}
}
impl ListWorkgroupsOutput {
pub fn builder() -> crate::output::list_workgroups_output::Builder {
crate::output::list_workgroups_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct CreateWorkgroupOutput {
#[doc(hidden)]
pub workgroup: std::option::Option<crate::model::Workgroup>,
}
impl CreateWorkgroupOutput {
pub fn workgroup(&self) -> std::option::Option<&crate::model::Workgroup> {
self.workgroup.as_ref()
}
}
pub mod create_workgroup_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) workgroup: std::option::Option<crate::model::Workgroup>,
}
impl Builder {
pub fn workgroup(mut self, input: crate::model::Workgroup) -> Self {
self.workgroup = Some(input);
self
}
pub fn set_workgroup(
mut self,
input: std::option::Option<crate::model::Workgroup>,
) -> Self {
self.workgroup = input;
self
}
pub fn build(self) -> crate::output::CreateWorkgroupOutput {
crate::output::CreateWorkgroupOutput {
workgroup: self.workgroup,
}
}
}
}
impl CreateWorkgroupOutput {
pub fn builder() -> crate::output::create_workgroup_output::Builder {
crate::output::create_workgroup_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeleteWorkgroupOutput {
#[doc(hidden)]
pub workgroup: std::option::Option<crate::model::Workgroup>,
}
impl DeleteWorkgroupOutput {
pub fn workgroup(&self) -> std::option::Option<&crate::model::Workgroup> {
self.workgroup.as_ref()
}
}
pub mod delete_workgroup_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) workgroup: std::option::Option<crate::model::Workgroup>,
}
impl Builder {
pub fn workgroup(mut self, input: crate::model::Workgroup) -> Self {
self.workgroup = Some(input);
self
}
pub fn set_workgroup(
mut self,
input: std::option::Option<crate::model::Workgroup>,
) -> Self {
self.workgroup = input;
self
}
pub fn build(self) -> crate::output::DeleteWorkgroupOutput {
crate::output::DeleteWorkgroupOutput {
workgroup: self.workgroup,
}
}
}
}
impl DeleteWorkgroupOutput {
pub fn builder() -> crate::output::delete_workgroup_output::Builder {
crate::output::delete_workgroup_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct UpdateWorkgroupOutput {
#[doc(hidden)]
pub workgroup: std::option::Option<crate::model::Workgroup>,
}
impl UpdateWorkgroupOutput {
pub fn workgroup(&self) -> std::option::Option<&crate::model::Workgroup> {
self.workgroup.as_ref()
}
}
pub mod update_workgroup_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) workgroup: std::option::Option<crate::model::Workgroup>,
}
impl Builder {
pub fn workgroup(mut self, input: crate::model::Workgroup) -> Self {
self.workgroup = Some(input);
self
}
pub fn set_workgroup(
mut self,
input: std::option::Option<crate::model::Workgroup>,
) -> Self {
self.workgroup = input;
self
}
pub fn build(self) -> crate::output::UpdateWorkgroupOutput {
crate::output::UpdateWorkgroupOutput {
workgroup: self.workgroup,
}
}
}
}
impl UpdateWorkgroupOutput {
pub fn builder() -> crate::output::update_workgroup_output::Builder {
crate::output::update_workgroup_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct GetWorkgroupOutput {
#[doc(hidden)]
pub workgroup: std::option::Option<crate::model::Workgroup>,
}
impl GetWorkgroupOutput {
pub fn workgroup(&self) -> std::option::Option<&crate::model::Workgroup> {
self.workgroup.as_ref()
}
}
pub mod get_workgroup_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) workgroup: std::option::Option<crate::model::Workgroup>,
}
impl Builder {
pub fn workgroup(mut self, input: crate::model::Workgroup) -> Self {
self.workgroup = Some(input);
self
}
pub fn set_workgroup(
mut self,
input: std::option::Option<crate::model::Workgroup>,
) -> Self {
self.workgroup = input;
self
}
pub fn build(self) -> crate::output::GetWorkgroupOutput {
crate::output::GetWorkgroupOutput {
workgroup: self.workgroup,
}
}
}
}
impl GetWorkgroupOutput {
pub fn builder() -> crate::output::get_workgroup_output::Builder {
crate::output::get_workgroup_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct UpdateUsageLimitOutput {
#[doc(hidden)]
pub usage_limit: std::option::Option<crate::model::UsageLimit>,
}
impl UpdateUsageLimitOutput {
pub fn usage_limit(&self) -> std::option::Option<&crate::model::UsageLimit> {
self.usage_limit.as_ref()
}
}
pub mod update_usage_limit_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) usage_limit: std::option::Option<crate::model::UsageLimit>,
}
impl Builder {
pub fn usage_limit(mut self, input: crate::model::UsageLimit) -> Self {
self.usage_limit = Some(input);
self
}
pub fn set_usage_limit(
mut self,
input: std::option::Option<crate::model::UsageLimit>,
) -> Self {
self.usage_limit = input;
self
}
pub fn build(self) -> crate::output::UpdateUsageLimitOutput {
crate::output::UpdateUsageLimitOutput {
usage_limit: self.usage_limit,
}
}
}
}
impl UpdateUsageLimitOutput {
pub fn builder() -> crate::output::update_usage_limit_output::Builder {
crate::output::update_usage_limit_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ListUsageLimitsOutput {
#[doc(hidden)]
pub usage_limits: std::option::Option<std::vec::Vec<crate::model::UsageLimit>>,
#[doc(hidden)]
pub next_token: std::option::Option<std::string::String>,
}
impl ListUsageLimitsOutput {
pub fn usage_limits(&self) -> std::option::Option<&[crate::model::UsageLimit]> {
self.usage_limits.as_deref()
}
pub fn next_token(&self) -> std::option::Option<&str> {
self.next_token.as_deref()
}
}
pub mod list_usage_limits_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) usage_limits: std::option::Option<std::vec::Vec<crate::model::UsageLimit>>,
pub(crate) next_token: std::option::Option<std::string::String>,
}
impl Builder {
pub fn usage_limits(mut self, input: crate::model::UsageLimit) -> Self {
let mut v = self.usage_limits.unwrap_or_default();
v.push(input);
self.usage_limits = Some(v);
self
}
pub fn set_usage_limits(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::UsageLimit>>,
) -> Self {
self.usage_limits = input;
self
}
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.next_token = Some(input.into());
self
}
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.next_token = input;
self
}
pub fn build(self) -> crate::output::ListUsageLimitsOutput {
crate::output::ListUsageLimitsOutput {
usage_limits: self.usage_limits,
next_token: self.next_token,
}
}
}
}
impl ListUsageLimitsOutput {
pub fn builder() -> crate::output::list_usage_limits_output::Builder {
crate::output::list_usage_limits_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct GetUsageLimitOutput {
#[doc(hidden)]
pub usage_limit: std::option::Option<crate::model::UsageLimit>,
}
impl GetUsageLimitOutput {
pub fn usage_limit(&self) -> std::option::Option<&crate::model::UsageLimit> {
self.usage_limit.as_ref()
}
}
pub mod get_usage_limit_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) usage_limit: std::option::Option<crate::model::UsageLimit>,
}
impl Builder {
pub fn usage_limit(mut self, input: crate::model::UsageLimit) -> Self {
self.usage_limit = Some(input);
self
}
pub fn set_usage_limit(
mut self,
input: std::option::Option<crate::model::UsageLimit>,
) -> Self {
self.usage_limit = input;
self
}
pub fn build(self) -> crate::output::GetUsageLimitOutput {
crate::output::GetUsageLimitOutput {
usage_limit: self.usage_limit,
}
}
}
}
impl GetUsageLimitOutput {
pub fn builder() -> crate::output::get_usage_limit_output::Builder {
crate::output::get_usage_limit_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeleteUsageLimitOutput {
#[doc(hidden)]
pub usage_limit: std::option::Option<crate::model::UsageLimit>,
}
impl DeleteUsageLimitOutput {
pub fn usage_limit(&self) -> std::option::Option<&crate::model::UsageLimit> {
self.usage_limit.as_ref()
}
}
pub mod delete_usage_limit_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) usage_limit: std::option::Option<crate::model::UsageLimit>,
}
impl Builder {
pub fn usage_limit(mut self, input: crate::model::UsageLimit) -> Self {
self.usage_limit = Some(input);
self
}
pub fn set_usage_limit(
mut self,
input: std::option::Option<crate::model::UsageLimit>,
) -> Self {
self.usage_limit = input;
self
}
pub fn build(self) -> crate::output::DeleteUsageLimitOutput {
crate::output::DeleteUsageLimitOutput {
usage_limit: self.usage_limit,
}
}
}
}
impl DeleteUsageLimitOutput {
pub fn builder() -> crate::output::delete_usage_limit_output::Builder {
crate::output::delete_usage_limit_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct CreateUsageLimitOutput {
#[doc(hidden)]
pub usage_limit: std::option::Option<crate::model::UsageLimit>,
}
impl CreateUsageLimitOutput {
pub fn usage_limit(&self) -> std::option::Option<&crate::model::UsageLimit> {
self.usage_limit.as_ref()
}
}
pub mod create_usage_limit_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) usage_limit: std::option::Option<crate::model::UsageLimit>,
}
impl Builder {
pub fn usage_limit(mut self, input: crate::model::UsageLimit) -> Self {
self.usage_limit = Some(input);
self
}
pub fn set_usage_limit(
mut self,
input: std::option::Option<crate::model::UsageLimit>,
) -> Self {
self.usage_limit = input;
self
}
pub fn build(self) -> crate::output::CreateUsageLimitOutput {
crate::output::CreateUsageLimitOutput {
usage_limit: self.usage_limit,
}
}
}
}
impl CreateUsageLimitOutput {
pub fn builder() -> crate::output::create_usage_limit_output::Builder {
crate::output::create_usage_limit_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct UpdateSnapshotOutput {
#[doc(hidden)]
pub snapshot: std::option::Option<crate::model::Snapshot>,
}
impl UpdateSnapshotOutput {
pub fn snapshot(&self) -> std::option::Option<&crate::model::Snapshot> {
self.snapshot.as_ref()
}
}
pub mod update_snapshot_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) snapshot: std::option::Option<crate::model::Snapshot>,
}
impl Builder {
pub fn snapshot(mut self, input: crate::model::Snapshot) -> Self {
self.snapshot = Some(input);
self
}
pub fn set_snapshot(mut self, input: std::option::Option<crate::model::Snapshot>) -> Self {
self.snapshot = input;
self
}
pub fn build(self) -> crate::output::UpdateSnapshotOutput {
crate::output::UpdateSnapshotOutput {
snapshot: self.snapshot,
}
}
}
}
impl UpdateSnapshotOutput {
pub fn builder() -> crate::output::update_snapshot_output::Builder {
crate::output::update_snapshot_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct RestoreTableFromSnapshotOutput {
#[doc(hidden)]
pub table_restore_status: std::option::Option<crate::model::TableRestoreStatus>,
}
impl RestoreTableFromSnapshotOutput {
pub fn table_restore_status(&self) -> std::option::Option<&crate::model::TableRestoreStatus> {
self.table_restore_status.as_ref()
}
}
pub mod restore_table_from_snapshot_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) table_restore_status: std::option::Option<crate::model::TableRestoreStatus>,
}
impl Builder {
pub fn table_restore_status(mut self, input: crate::model::TableRestoreStatus) -> Self {
self.table_restore_status = Some(input);
self
}
pub fn set_table_restore_status(
mut self,
input: std::option::Option<crate::model::TableRestoreStatus>,
) -> Self {
self.table_restore_status = input;
self
}
pub fn build(self) -> crate::output::RestoreTableFromSnapshotOutput {
crate::output::RestoreTableFromSnapshotOutput {
table_restore_status: self.table_restore_status,
}
}
}
}
impl RestoreTableFromSnapshotOutput {
pub fn builder() -> crate::output::restore_table_from_snapshot_output::Builder {
crate::output::restore_table_from_snapshot_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct RestoreFromSnapshotOutput {
#[doc(hidden)]
pub snapshot_name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub owner_account: std::option::Option<std::string::String>,
#[doc(hidden)]
pub namespace: std::option::Option<crate::model::Namespace>,
}
impl RestoreFromSnapshotOutput {
pub fn snapshot_name(&self) -> std::option::Option<&str> {
self.snapshot_name.as_deref()
}
pub fn owner_account(&self) -> std::option::Option<&str> {
self.owner_account.as_deref()
}
pub fn namespace(&self) -> std::option::Option<&crate::model::Namespace> {
self.namespace.as_ref()
}
}
pub mod restore_from_snapshot_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) snapshot_name: std::option::Option<std::string::String>,
pub(crate) owner_account: std::option::Option<std::string::String>,
pub(crate) namespace: std::option::Option<crate::model::Namespace>,
}
impl Builder {
pub fn snapshot_name(mut self, input: impl Into<std::string::String>) -> Self {
self.snapshot_name = Some(input.into());
self
}
pub fn set_snapshot_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.snapshot_name = input;
self
}
pub fn owner_account(mut self, input: impl Into<std::string::String>) -> Self {
self.owner_account = Some(input.into());
self
}
pub fn set_owner_account(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.owner_account = input;
self
}
pub fn namespace(mut self, input: crate::model::Namespace) -> Self {
self.namespace = Some(input);
self
}
pub fn set_namespace(
mut self,
input: std::option::Option<crate::model::Namespace>,
) -> Self {
self.namespace = input;
self
}
pub fn build(self) -> crate::output::RestoreFromSnapshotOutput {
crate::output::RestoreFromSnapshotOutput {
snapshot_name: self.snapshot_name,
owner_account: self.owner_account,
namespace: self.namespace,
}
}
}
}
impl RestoreFromSnapshotOutput {
pub fn builder() -> crate::output::restore_from_snapshot_output::Builder {
crate::output::restore_from_snapshot_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ListTableRestoreStatusOutput {
#[doc(hidden)]
pub next_token: std::option::Option<std::string::String>,
#[doc(hidden)]
pub table_restore_statuses:
std::option::Option<std::vec::Vec<crate::model::TableRestoreStatus>>,
}
impl ListTableRestoreStatusOutput {
pub fn next_token(&self) -> std::option::Option<&str> {
self.next_token.as_deref()
}
pub fn table_restore_statuses(
&self,
) -> std::option::Option<&[crate::model::TableRestoreStatus]> {
self.table_restore_statuses.as_deref()
}
}
pub mod list_table_restore_status_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) next_token: std::option::Option<std::string::String>,
pub(crate) table_restore_statuses:
std::option::Option<std::vec::Vec<crate::model::TableRestoreStatus>>,
}
impl Builder {
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.next_token = Some(input.into());
self
}
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.next_token = input;
self
}
pub fn table_restore_statuses(mut self, input: crate::model::TableRestoreStatus) -> Self {
let mut v = self.table_restore_statuses.unwrap_or_default();
v.push(input);
self.table_restore_statuses = Some(v);
self
}
pub fn set_table_restore_statuses(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::TableRestoreStatus>>,
) -> Self {
self.table_restore_statuses = input;
self
}
pub fn build(self) -> crate::output::ListTableRestoreStatusOutput {
crate::output::ListTableRestoreStatusOutput {
next_token: self.next_token,
table_restore_statuses: self.table_restore_statuses,
}
}
}
}
impl ListTableRestoreStatusOutput {
pub fn builder() -> crate::output::list_table_restore_status_output::Builder {
crate::output::list_table_restore_status_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ListSnapshotsOutput {
#[doc(hidden)]
pub next_token: std::option::Option<std::string::String>,
#[doc(hidden)]
pub snapshots: std::option::Option<std::vec::Vec<crate::model::Snapshot>>,
}
impl ListSnapshotsOutput {
pub fn next_token(&self) -> std::option::Option<&str> {
self.next_token.as_deref()
}
pub fn snapshots(&self) -> std::option::Option<&[crate::model::Snapshot]> {
self.snapshots.as_deref()
}
}
pub mod list_snapshots_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) next_token: std::option::Option<std::string::String>,
pub(crate) snapshots: std::option::Option<std::vec::Vec<crate::model::Snapshot>>,
}
impl Builder {
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.next_token = Some(input.into());
self
}
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.next_token = input;
self
}
pub fn snapshots(mut self, input: crate::model::Snapshot) -> Self {
let mut v = self.snapshots.unwrap_or_default();
v.push(input);
self.snapshots = Some(v);
self
}
pub fn set_snapshots(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::Snapshot>>,
) -> Self {
self.snapshots = input;
self
}
pub fn build(self) -> crate::output::ListSnapshotsOutput {
crate::output::ListSnapshotsOutput {
next_token: self.next_token,
snapshots: self.snapshots,
}
}
}
}
impl ListSnapshotsOutput {
pub fn builder() -> crate::output::list_snapshots_output::Builder {
crate::output::list_snapshots_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct GetTableRestoreStatusOutput {
#[doc(hidden)]
pub table_restore_status: std::option::Option<crate::model::TableRestoreStatus>,
}
impl GetTableRestoreStatusOutput {
pub fn table_restore_status(&self) -> std::option::Option<&crate::model::TableRestoreStatus> {
self.table_restore_status.as_ref()
}
}
pub mod get_table_restore_status_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) table_restore_status: std::option::Option<crate::model::TableRestoreStatus>,
}
impl Builder {
pub fn table_restore_status(mut self, input: crate::model::TableRestoreStatus) -> Self {
self.table_restore_status = Some(input);
self
}
pub fn set_table_restore_status(
mut self,
input: std::option::Option<crate::model::TableRestoreStatus>,
) -> Self {
self.table_restore_status = input;
self
}
pub fn build(self) -> crate::output::GetTableRestoreStatusOutput {
crate::output::GetTableRestoreStatusOutput {
table_restore_status: self.table_restore_status,
}
}
}
}
impl GetTableRestoreStatusOutput {
pub fn builder() -> crate::output::get_table_restore_status_output::Builder {
crate::output::get_table_restore_status_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct GetSnapshotOutput {
#[doc(hidden)]
pub snapshot: std::option::Option<crate::model::Snapshot>,
}
impl GetSnapshotOutput {
pub fn snapshot(&self) -> std::option::Option<&crate::model::Snapshot> {
self.snapshot.as_ref()
}
}
pub mod get_snapshot_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) snapshot: std::option::Option<crate::model::Snapshot>,
}
impl Builder {
pub fn snapshot(mut self, input: crate::model::Snapshot) -> Self {
self.snapshot = Some(input);
self
}
pub fn set_snapshot(mut self, input: std::option::Option<crate::model::Snapshot>) -> Self {
self.snapshot = input;
self
}
pub fn build(self) -> crate::output::GetSnapshotOutput {
crate::output::GetSnapshotOutput {
snapshot: self.snapshot,
}
}
}
}
impl GetSnapshotOutput {
pub fn builder() -> crate::output::get_snapshot_output::Builder {
crate::output::get_snapshot_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeleteSnapshotOutput {
#[doc(hidden)]
pub snapshot: std::option::Option<crate::model::Snapshot>,
}
impl DeleteSnapshotOutput {
pub fn snapshot(&self) -> std::option::Option<&crate::model::Snapshot> {
self.snapshot.as_ref()
}
}
pub mod delete_snapshot_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) snapshot: std::option::Option<crate::model::Snapshot>,
}
impl Builder {
pub fn snapshot(mut self, input: crate::model::Snapshot) -> Self {
self.snapshot = Some(input);
self
}
pub fn set_snapshot(mut self, input: std::option::Option<crate::model::Snapshot>) -> Self {
self.snapshot = input;
self
}
pub fn build(self) -> crate::output::DeleteSnapshotOutput {
crate::output::DeleteSnapshotOutput {
snapshot: self.snapshot,
}
}
}
}
impl DeleteSnapshotOutput {
pub fn builder() -> crate::output::delete_snapshot_output::Builder {
crate::output::delete_snapshot_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct CreateSnapshotOutput {
#[doc(hidden)]
pub snapshot: std::option::Option<crate::model::Snapshot>,
}
impl CreateSnapshotOutput {
pub fn snapshot(&self) -> std::option::Option<&crate::model::Snapshot> {
self.snapshot.as_ref()
}
}
pub mod create_snapshot_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) snapshot: std::option::Option<crate::model::Snapshot>,
}
impl Builder {
pub fn snapshot(mut self, input: crate::model::Snapshot) -> Self {
self.snapshot = Some(input);
self
}
pub fn set_snapshot(mut self, input: std::option::Option<crate::model::Snapshot>) -> Self {
self.snapshot = input;
self
}
pub fn build(self) -> crate::output::CreateSnapshotOutput {
crate::output::CreateSnapshotOutput {
snapshot: self.snapshot,
}
}
}
}
impl CreateSnapshotOutput {
pub fn builder() -> crate::output::create_snapshot_output::Builder {
crate::output::create_snapshot_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct RestoreFromRecoveryPointOutput {
#[doc(hidden)]
pub recovery_point_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub namespace: std::option::Option<crate::model::Namespace>,
}
impl RestoreFromRecoveryPointOutput {
pub fn recovery_point_id(&self) -> std::option::Option<&str> {
self.recovery_point_id.as_deref()
}
pub fn namespace(&self) -> std::option::Option<&crate::model::Namespace> {
self.namespace.as_ref()
}
}
pub mod restore_from_recovery_point_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) recovery_point_id: std::option::Option<std::string::String>,
pub(crate) namespace: std::option::Option<crate::model::Namespace>,
}
impl Builder {
pub fn recovery_point_id(mut self, input: impl Into<std::string::String>) -> Self {
self.recovery_point_id = Some(input.into());
self
}
pub fn set_recovery_point_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.recovery_point_id = input;
self
}
pub fn namespace(mut self, input: crate::model::Namespace) -> Self {
self.namespace = Some(input);
self
}
pub fn set_namespace(
mut self,
input: std::option::Option<crate::model::Namespace>,
) -> Self {
self.namespace = input;
self
}
pub fn build(self) -> crate::output::RestoreFromRecoveryPointOutput {
crate::output::RestoreFromRecoveryPointOutput {
recovery_point_id: self.recovery_point_id,
namespace: self.namespace,
}
}
}
}
impl RestoreFromRecoveryPointOutput {
pub fn builder() -> crate::output::restore_from_recovery_point_output::Builder {
crate::output::restore_from_recovery_point_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ListRecoveryPointsOutput {
#[doc(hidden)]
pub recovery_points: std::option::Option<std::vec::Vec<crate::model::RecoveryPoint>>,
#[doc(hidden)]
pub next_token: std::option::Option<std::string::String>,
}
impl ListRecoveryPointsOutput {
pub fn recovery_points(&self) -> std::option::Option<&[crate::model::RecoveryPoint]> {
self.recovery_points.as_deref()
}
pub fn next_token(&self) -> std::option::Option<&str> {
self.next_token.as_deref()
}
}
pub mod list_recovery_points_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) recovery_points: std::option::Option<std::vec::Vec<crate::model::RecoveryPoint>>,
pub(crate) next_token: std::option::Option<std::string::String>,
}
impl Builder {
pub fn recovery_points(mut self, input: crate::model::RecoveryPoint) -> Self {
let mut v = self.recovery_points.unwrap_or_default();
v.push(input);
self.recovery_points = Some(v);
self
}
pub fn set_recovery_points(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::RecoveryPoint>>,
) -> Self {
self.recovery_points = input;
self
}
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.next_token = Some(input.into());
self
}
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.next_token = input;
self
}
pub fn build(self) -> crate::output::ListRecoveryPointsOutput {
crate::output::ListRecoveryPointsOutput {
recovery_points: self.recovery_points,
next_token: self.next_token,
}
}
}
}
impl ListRecoveryPointsOutput {
pub fn builder() -> crate::output::list_recovery_points_output::Builder {
crate::output::list_recovery_points_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct GetRecoveryPointOutput {
#[doc(hidden)]
pub recovery_point: std::option::Option<crate::model::RecoveryPoint>,
}
impl GetRecoveryPointOutput {
pub fn recovery_point(&self) -> std::option::Option<&crate::model::RecoveryPoint> {
self.recovery_point.as_ref()
}
}
pub mod get_recovery_point_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) recovery_point: std::option::Option<crate::model::RecoveryPoint>,
}
impl Builder {
pub fn recovery_point(mut self, input: crate::model::RecoveryPoint) -> Self {
self.recovery_point = Some(input);
self
}
pub fn set_recovery_point(
mut self,
input: std::option::Option<crate::model::RecoveryPoint>,
) -> Self {
self.recovery_point = input;
self
}
pub fn build(self) -> crate::output::GetRecoveryPointOutput {
crate::output::GetRecoveryPointOutput {
recovery_point: self.recovery_point,
}
}
}
}
impl GetRecoveryPointOutput {
pub fn builder() -> crate::output::get_recovery_point_output::Builder {
crate::output::get_recovery_point_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ConvertRecoveryPointToSnapshotOutput {
#[doc(hidden)]
pub snapshot: std::option::Option<crate::model::Snapshot>,
}
impl ConvertRecoveryPointToSnapshotOutput {
pub fn snapshot(&self) -> std::option::Option<&crate::model::Snapshot> {
self.snapshot.as_ref()
}
}
pub mod convert_recovery_point_to_snapshot_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) snapshot: std::option::Option<crate::model::Snapshot>,
}
impl Builder {
pub fn snapshot(mut self, input: crate::model::Snapshot) -> Self {
self.snapshot = Some(input);
self
}
pub fn set_snapshot(mut self, input: std::option::Option<crate::model::Snapshot>) -> Self {
self.snapshot = input;
self
}
pub fn build(self) -> crate::output::ConvertRecoveryPointToSnapshotOutput {
crate::output::ConvertRecoveryPointToSnapshotOutput {
snapshot: self.snapshot,
}
}
}
}
impl ConvertRecoveryPointToSnapshotOutput {
pub fn builder() -> crate::output::convert_recovery_point_to_snapshot_output::Builder {
crate::output::convert_recovery_point_to_snapshot_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ListNamespacesOutput {
#[doc(hidden)]
pub next_token: std::option::Option<std::string::String>,
#[doc(hidden)]
pub namespaces: std::option::Option<std::vec::Vec<crate::model::Namespace>>,
}
impl ListNamespacesOutput {
pub fn next_token(&self) -> std::option::Option<&str> {
self.next_token.as_deref()
}
pub fn namespaces(&self) -> std::option::Option<&[crate::model::Namespace]> {
self.namespaces.as_deref()
}
}
pub mod list_namespaces_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) next_token: std::option::Option<std::string::String>,
pub(crate) namespaces: std::option::Option<std::vec::Vec<crate::model::Namespace>>,
}
impl Builder {
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.next_token = Some(input.into());
self
}
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.next_token = input;
self
}
pub fn namespaces(mut self, input: crate::model::Namespace) -> Self {
let mut v = self.namespaces.unwrap_or_default();
v.push(input);
self.namespaces = Some(v);
self
}
pub fn set_namespaces(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::Namespace>>,
) -> Self {
self.namespaces = input;
self
}
pub fn build(self) -> crate::output::ListNamespacesOutput {
crate::output::ListNamespacesOutput {
next_token: self.next_token,
namespaces: self.namespaces,
}
}
}
}
impl ListNamespacesOutput {
pub fn builder() -> crate::output::list_namespaces_output::Builder {
crate::output::list_namespaces_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct CreateNamespaceOutput {
#[doc(hidden)]
pub namespace: std::option::Option<crate::model::Namespace>,
}
impl CreateNamespaceOutput {
pub fn namespace(&self) -> std::option::Option<&crate::model::Namespace> {
self.namespace.as_ref()
}
}
pub mod create_namespace_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) namespace: std::option::Option<crate::model::Namespace>,
}
impl Builder {
pub fn namespace(mut self, input: crate::model::Namespace) -> Self {
self.namespace = Some(input);
self
}
pub fn set_namespace(
mut self,
input: std::option::Option<crate::model::Namespace>,
) -> Self {
self.namespace = input;
self
}
pub fn build(self) -> crate::output::CreateNamespaceOutput {
crate::output::CreateNamespaceOutput {
namespace: self.namespace,
}
}
}
}
impl CreateNamespaceOutput {
pub fn builder() -> crate::output::create_namespace_output::Builder {
crate::output::create_namespace_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeleteNamespaceOutput {
#[doc(hidden)]
pub namespace: std::option::Option<crate::model::Namespace>,
}
impl DeleteNamespaceOutput {
pub fn namespace(&self) -> std::option::Option<&crate::model::Namespace> {
self.namespace.as_ref()
}
}
pub mod delete_namespace_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) namespace: std::option::Option<crate::model::Namespace>,
}
impl Builder {
pub fn namespace(mut self, input: crate::model::Namespace) -> Self {
self.namespace = Some(input);
self
}
pub fn set_namespace(
mut self,
input: std::option::Option<crate::model::Namespace>,
) -> Self {
self.namespace = input;
self
}
pub fn build(self) -> crate::output::DeleteNamespaceOutput {
crate::output::DeleteNamespaceOutput {
namespace: self.namespace,
}
}
}
}
impl DeleteNamespaceOutput {
pub fn builder() -> crate::output::delete_namespace_output::Builder {
crate::output::delete_namespace_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct UpdateNamespaceOutput {
#[doc(hidden)]
pub namespace: std::option::Option<crate::model::Namespace>,
}
impl UpdateNamespaceOutput {
pub fn namespace(&self) -> std::option::Option<&crate::model::Namespace> {
self.namespace.as_ref()
}
}
pub mod update_namespace_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) namespace: std::option::Option<crate::model::Namespace>,
}
impl Builder {
pub fn namespace(mut self, input: crate::model::Namespace) -> Self {
self.namespace = Some(input);
self
}
pub fn set_namespace(
mut self,
input: std::option::Option<crate::model::Namespace>,
) -> Self {
self.namespace = input;
self
}
pub fn build(self) -> crate::output::UpdateNamespaceOutput {
crate::output::UpdateNamespaceOutput {
namespace: self.namespace,
}
}
}
}
impl UpdateNamespaceOutput {
pub fn builder() -> crate::output::update_namespace_output::Builder {
crate::output::update_namespace_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct GetNamespaceOutput {
#[doc(hidden)]
pub namespace: std::option::Option<crate::model::Namespace>,
}
impl GetNamespaceOutput {
pub fn namespace(&self) -> std::option::Option<&crate::model::Namespace> {
self.namespace.as_ref()
}
}
pub mod get_namespace_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) namespace: std::option::Option<crate::model::Namespace>,
}
impl Builder {
pub fn namespace(mut self, input: crate::model::Namespace) -> Self {
self.namespace = Some(input);
self
}
pub fn set_namespace(
mut self,
input: std::option::Option<crate::model::Namespace>,
) -> Self {
self.namespace = input;
self
}
pub fn build(self) -> crate::output::GetNamespaceOutput {
crate::output::GetNamespaceOutput {
namespace: self.namespace,
}
}
}
}
impl GetNamespaceOutput {
pub fn builder() -> crate::output::get_namespace_output::Builder {
crate::output::get_namespace_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct UpdateEndpointAccessOutput {
#[doc(hidden)]
pub endpoint: std::option::Option<crate::model::EndpointAccess>,
}
impl UpdateEndpointAccessOutput {
pub fn endpoint(&self) -> std::option::Option<&crate::model::EndpointAccess> {
self.endpoint.as_ref()
}
}
pub mod update_endpoint_access_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) endpoint: std::option::Option<crate::model::EndpointAccess>,
}
impl Builder {
pub fn endpoint(mut self, input: crate::model::EndpointAccess) -> Self {
self.endpoint = Some(input);
self
}
pub fn set_endpoint(
mut self,
input: std::option::Option<crate::model::EndpointAccess>,
) -> Self {
self.endpoint = input;
self
}
pub fn build(self) -> crate::output::UpdateEndpointAccessOutput {
crate::output::UpdateEndpointAccessOutput {
endpoint: self.endpoint,
}
}
}
}
impl UpdateEndpointAccessOutput {
pub fn builder() -> crate::output::update_endpoint_access_output::Builder {
crate::output::update_endpoint_access_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ListEndpointAccessOutput {
#[doc(hidden)]
pub next_token: std::option::Option<std::string::String>,
#[doc(hidden)]
pub endpoints: std::option::Option<std::vec::Vec<crate::model::EndpointAccess>>,
}
impl ListEndpointAccessOutput {
pub fn next_token(&self) -> std::option::Option<&str> {
self.next_token.as_deref()
}
pub fn endpoints(&self) -> std::option::Option<&[crate::model::EndpointAccess]> {
self.endpoints.as_deref()
}
}
pub mod list_endpoint_access_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) next_token: std::option::Option<std::string::String>,
pub(crate) endpoints: std::option::Option<std::vec::Vec<crate::model::EndpointAccess>>,
}
impl Builder {
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.next_token = Some(input.into());
self
}
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.next_token = input;
self
}
pub fn endpoints(mut self, input: crate::model::EndpointAccess) -> Self {
let mut v = self.endpoints.unwrap_or_default();
v.push(input);
self.endpoints = Some(v);
self
}
pub fn set_endpoints(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::EndpointAccess>>,
) -> Self {
self.endpoints = input;
self
}
pub fn build(self) -> crate::output::ListEndpointAccessOutput {
crate::output::ListEndpointAccessOutput {
next_token: self.next_token,
endpoints: self.endpoints,
}
}
}
}
impl ListEndpointAccessOutput {
pub fn builder() -> crate::output::list_endpoint_access_output::Builder {
crate::output::list_endpoint_access_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct GetEndpointAccessOutput {
#[doc(hidden)]
pub endpoint: std::option::Option<crate::model::EndpointAccess>,
}
impl GetEndpointAccessOutput {
pub fn endpoint(&self) -> std::option::Option<&crate::model::EndpointAccess> {
self.endpoint.as_ref()
}
}
pub mod get_endpoint_access_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) endpoint: std::option::Option<crate::model::EndpointAccess>,
}
impl Builder {
pub fn endpoint(mut self, input: crate::model::EndpointAccess) -> Self {
self.endpoint = Some(input);
self
}
pub fn set_endpoint(
mut self,
input: std::option::Option<crate::model::EndpointAccess>,
) -> Self {
self.endpoint = input;
self
}
pub fn build(self) -> crate::output::GetEndpointAccessOutput {
crate::output::GetEndpointAccessOutput {
endpoint: self.endpoint,
}
}
}
}
impl GetEndpointAccessOutput {
pub fn builder() -> crate::output::get_endpoint_access_output::Builder {
crate::output::get_endpoint_access_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeleteEndpointAccessOutput {
#[doc(hidden)]
pub endpoint: std::option::Option<crate::model::EndpointAccess>,
}
impl DeleteEndpointAccessOutput {
pub fn endpoint(&self) -> std::option::Option<&crate::model::EndpointAccess> {
self.endpoint.as_ref()
}
}
pub mod delete_endpoint_access_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) endpoint: std::option::Option<crate::model::EndpointAccess>,
}
impl Builder {
pub fn endpoint(mut self, input: crate::model::EndpointAccess) -> Self {
self.endpoint = Some(input);
self
}
pub fn set_endpoint(
mut self,
input: std::option::Option<crate::model::EndpointAccess>,
) -> Self {
self.endpoint = input;
self
}
pub fn build(self) -> crate::output::DeleteEndpointAccessOutput {
crate::output::DeleteEndpointAccessOutput {
endpoint: self.endpoint,
}
}
}
}
impl DeleteEndpointAccessOutput {
pub fn builder() -> crate::output::delete_endpoint_access_output::Builder {
crate::output::delete_endpoint_access_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct CreateEndpointAccessOutput {
#[doc(hidden)]
pub endpoint: std::option::Option<crate::model::EndpointAccess>,
}
impl CreateEndpointAccessOutput {
pub fn endpoint(&self) -> std::option::Option<&crate::model::EndpointAccess> {
self.endpoint.as_ref()
}
}
pub mod create_endpoint_access_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) endpoint: std::option::Option<crate::model::EndpointAccess>,
}
impl Builder {
pub fn endpoint(mut self, input: crate::model::EndpointAccess) -> Self {
self.endpoint = Some(input);
self
}
pub fn set_endpoint(
mut self,
input: std::option::Option<crate::model::EndpointAccess>,
) -> Self {
self.endpoint = input;
self
}
pub fn build(self) -> crate::output::CreateEndpointAccessOutput {
crate::output::CreateEndpointAccessOutput {
endpoint: self.endpoint,
}
}
}
}
impl CreateEndpointAccessOutput {
pub fn builder() -> crate::output::create_endpoint_access_output::Builder {
crate::output::create_endpoint_access_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct UntagResourceOutput {}
pub mod untag_resource_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
pub fn build(self) -> crate::output::UntagResourceOutput {
crate::output::UntagResourceOutput {}
}
}
}
impl UntagResourceOutput {
pub fn builder() -> crate::output::untag_resource_output::Builder {
crate::output::untag_resource_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct TagResourceOutput {}
pub mod tag_resource_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
pub fn build(self) -> crate::output::TagResourceOutput {
crate::output::TagResourceOutput {}
}
}
}
impl TagResourceOutput {
pub fn builder() -> crate::output::tag_resource_output::Builder {
crate::output::tag_resource_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct PutResourcePolicyOutput {
#[doc(hidden)]
pub resource_policy: std::option::Option<crate::model::ResourcePolicy>,
}
impl PutResourcePolicyOutput {
pub fn resource_policy(&self) -> std::option::Option<&crate::model::ResourcePolicy> {
self.resource_policy.as_ref()
}
}
pub mod put_resource_policy_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) resource_policy: std::option::Option<crate::model::ResourcePolicy>,
}
impl Builder {
pub fn resource_policy(mut self, input: crate::model::ResourcePolicy) -> Self {
self.resource_policy = Some(input);
self
}
pub fn set_resource_policy(
mut self,
input: std::option::Option<crate::model::ResourcePolicy>,
) -> Self {
self.resource_policy = input;
self
}
pub fn build(self) -> crate::output::PutResourcePolicyOutput {
crate::output::PutResourcePolicyOutput {
resource_policy: self.resource_policy,
}
}
}
}
impl PutResourcePolicyOutput {
pub fn builder() -> crate::output::put_resource_policy_output::Builder {
crate::output::put_resource_policy_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ListTagsForResourceOutput {
#[doc(hidden)]
pub tags: std::option::Option<std::vec::Vec<crate::model::Tag>>,
}
impl ListTagsForResourceOutput {
pub fn tags(&self) -> std::option::Option<&[crate::model::Tag]> {
self.tags.as_deref()
}
}
pub mod list_tags_for_resource_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) tags: std::option::Option<std::vec::Vec<crate::model::Tag>>,
}
impl Builder {
pub fn tags(mut self, input: crate::model::Tag) -> Self {
let mut v = self.tags.unwrap_or_default();
v.push(input);
self.tags = Some(v);
self
}
pub fn set_tags(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::Tag>>,
) -> Self {
self.tags = input;
self
}
pub fn build(self) -> crate::output::ListTagsForResourceOutput {
crate::output::ListTagsForResourceOutput { tags: self.tags }
}
}
}
impl ListTagsForResourceOutput {
pub fn builder() -> crate::output::list_tags_for_resource_output::Builder {
crate::output::list_tags_for_resource_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct GetResourcePolicyOutput {
#[doc(hidden)]
pub resource_policy: std::option::Option<crate::model::ResourcePolicy>,
}
impl GetResourcePolicyOutput {
pub fn resource_policy(&self) -> std::option::Option<&crate::model::ResourcePolicy> {
self.resource_policy.as_ref()
}
}
pub mod get_resource_policy_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) resource_policy: std::option::Option<crate::model::ResourcePolicy>,
}
impl Builder {
pub fn resource_policy(mut self, input: crate::model::ResourcePolicy) -> Self {
self.resource_policy = Some(input);
self
}
pub fn set_resource_policy(
mut self,
input: std::option::Option<crate::model::ResourcePolicy>,
) -> Self {
self.resource_policy = input;
self
}
pub fn build(self) -> crate::output::GetResourcePolicyOutput {
crate::output::GetResourcePolicyOutput {
resource_policy: self.resource_policy,
}
}
}
}
impl GetResourcePolicyOutput {
pub fn builder() -> crate::output::get_resource_policy_output::Builder {
crate::output::get_resource_policy_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct GetCredentialsOutput {
#[doc(hidden)]
pub db_user: std::option::Option<std::string::String>,
#[doc(hidden)]
pub db_password: std::option::Option<std::string::String>,
#[doc(hidden)]
pub expiration: std::option::Option<aws_smithy_types::DateTime>,
#[doc(hidden)]
pub next_refresh_time: std::option::Option<aws_smithy_types::DateTime>,
}
impl GetCredentialsOutput {
pub fn db_user(&self) -> std::option::Option<&str> {
self.db_user.as_deref()
}
pub fn db_password(&self) -> std::option::Option<&str> {
self.db_password.as_deref()
}
pub fn expiration(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.expiration.as_ref()
}
pub fn next_refresh_time(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.next_refresh_time.as_ref()
}
}
impl std::fmt::Debug for GetCredentialsOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("GetCredentialsOutput");
formatter.field("db_user", &"*** Sensitive Data Redacted ***");
formatter.field("db_password", &"*** Sensitive Data Redacted ***");
formatter.field("expiration", &self.expiration);
formatter.field("next_refresh_time", &self.next_refresh_time);
formatter.finish()
}
}
pub mod get_credentials_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default)]
pub struct Builder {
pub(crate) db_user: std::option::Option<std::string::String>,
pub(crate) db_password: std::option::Option<std::string::String>,
pub(crate) expiration: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) next_refresh_time: std::option::Option<aws_smithy_types::DateTime>,
}
impl Builder {
pub fn db_user(mut self, input: impl Into<std::string::String>) -> Self {
self.db_user = Some(input.into());
self
}
pub fn set_db_user(mut self, input: std::option::Option<std::string::String>) -> Self {
self.db_user = input;
self
}
pub fn db_password(mut self, input: impl Into<std::string::String>) -> Self {
self.db_password = Some(input.into());
self
}
pub fn set_db_password(mut self, input: std::option::Option<std::string::String>) -> Self {
self.db_password = input;
self
}
pub fn expiration(mut self, input: aws_smithy_types::DateTime) -> Self {
self.expiration = Some(input);
self
}
pub fn set_expiration(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.expiration = input;
self
}
pub fn next_refresh_time(mut self, input: aws_smithy_types::DateTime) -> Self {
self.next_refresh_time = Some(input);
self
}
pub fn set_next_refresh_time(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.next_refresh_time = input;
self
}
pub fn build(self) -> crate::output::GetCredentialsOutput {
crate::output::GetCredentialsOutput {
db_user: self.db_user,
db_password: self.db_password,
expiration: self.expiration,
next_refresh_time: self.next_refresh_time,
}
}
}
impl std::fmt::Debug for Builder {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("Builder");
formatter.field("db_user", &"*** Sensitive Data Redacted ***");
formatter.field("db_password", &"*** Sensitive Data Redacted ***");
formatter.field("expiration", &self.expiration);
formatter.field("next_refresh_time", &self.next_refresh_time);
formatter.finish()
}
}
}
impl GetCredentialsOutput {
pub fn builder() -> crate::output::get_credentials_output::Builder {
crate::output::get_credentials_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeleteResourcePolicyOutput {}
pub mod delete_resource_policy_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
pub fn build(self) -> crate::output::DeleteResourcePolicyOutput {
crate::output::DeleteResourcePolicyOutput {}
}
}
}
impl DeleteResourcePolicyOutput {
pub fn builder() -> crate::output::delete_resource_policy_output::Builder {
crate::output::delete_resource_policy_output::Builder::default()
}
}