#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ValidationExceptionField {
#[doc(hidden)]
pub name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl ValidationExceptionField {
pub fn name(&self) -> std::option::Option<&str> {
self.name.as_deref()
}
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
pub mod validation_exception_field {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) name: std::option::Option<std::string::String>,
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
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 message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::model::ValidationExceptionField {
crate::model::ValidationExceptionField {
name: self.name,
message: self.message,
}
}
}
}
impl ValidationExceptionField {
pub fn builder() -> crate::model::validation_exception_field::Builder {
crate::model::validation_exception_field::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum ValidationExceptionReason {
#[allow(missing_docs)] CannotParse,
#[allow(missing_docs)] FieldValidationFailed,
#[allow(missing_docs)] Other,
#[allow(missing_docs)] UnknownOperation,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for ValidationExceptionReason {
fn from(s: &str) -> Self {
match s {
"cannotParse" => ValidationExceptionReason::CannotParse,
"fieldValidationFailed" => ValidationExceptionReason::FieldValidationFailed,
"other" => ValidationExceptionReason::Other,
"unknownOperation" => ValidationExceptionReason::UnknownOperation,
other => ValidationExceptionReason::Unknown(crate::types::UnknownVariantValue(
other.to_owned(),
)),
}
}
}
impl std::str::FromStr for ValidationExceptionReason {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(ValidationExceptionReason::from(s))
}
}
impl ValidationExceptionReason {
pub fn as_str(&self) -> &str {
match self {
ValidationExceptionReason::CannotParse => "cannotParse",
ValidationExceptionReason::FieldValidationFailed => "fieldValidationFailed",
ValidationExceptionReason::Other => "other",
ValidationExceptionReason::UnknownOperation => "unknownOperation",
ValidationExceptionReason::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&[
"cannotParse",
"fieldValidationFailed",
"other",
"unknownOperation",
]
}
}
impl AsRef<str> for ValidationExceptionReason {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Cluster {
#[doc(hidden)]
pub cluster_name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub cluster_arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub status: std::option::Option<crate::model::Status>,
#[doc(hidden)]
pub cluster_endpoint: std::option::Option<std::string::String>,
#[doc(hidden)]
pub create_time: std::option::Option<std::string::String>,
#[doc(hidden)]
pub admin_user_name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub auth_type: std::option::Option<crate::model::Auth>,
#[doc(hidden)]
pub shard_capacity: std::option::Option<i32>,
#[doc(hidden)]
pub shard_count: std::option::Option<i32>,
#[doc(hidden)]
pub vpc_security_group_ids: std::option::Option<std::vec::Vec<std::string::String>>,
#[doc(hidden)]
pub subnet_ids: std::option::Option<std::vec::Vec<std::string::String>>,
#[doc(hidden)]
pub preferred_maintenance_window: std::option::Option<std::string::String>,
#[doc(hidden)]
pub kms_key_id: std::option::Option<std::string::String>,
}
impl Cluster {
pub fn cluster_name(&self) -> std::option::Option<&str> {
self.cluster_name.as_deref()
}
pub fn cluster_arn(&self) -> std::option::Option<&str> {
self.cluster_arn.as_deref()
}
pub fn status(&self) -> std::option::Option<&crate::model::Status> {
self.status.as_ref()
}
pub fn cluster_endpoint(&self) -> std::option::Option<&str> {
self.cluster_endpoint.as_deref()
}
pub fn create_time(&self) -> std::option::Option<&str> {
self.create_time.as_deref()
}
pub fn admin_user_name(&self) -> std::option::Option<&str> {
self.admin_user_name.as_deref()
}
pub fn auth_type(&self) -> std::option::Option<&crate::model::Auth> {
self.auth_type.as_ref()
}
pub fn shard_capacity(&self) -> std::option::Option<i32> {
self.shard_capacity
}
pub fn shard_count(&self) -> std::option::Option<i32> {
self.shard_count
}
pub fn vpc_security_group_ids(&self) -> std::option::Option<&[std::string::String]> {
self.vpc_security_group_ids.as_deref()
}
pub fn subnet_ids(&self) -> std::option::Option<&[std::string::String]> {
self.subnet_ids.as_deref()
}
pub fn preferred_maintenance_window(&self) -> std::option::Option<&str> {
self.preferred_maintenance_window.as_deref()
}
pub fn kms_key_id(&self) -> std::option::Option<&str> {
self.kms_key_id.as_deref()
}
}
pub mod cluster {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) cluster_name: std::option::Option<std::string::String>,
pub(crate) cluster_arn: std::option::Option<std::string::String>,
pub(crate) status: std::option::Option<crate::model::Status>,
pub(crate) cluster_endpoint: std::option::Option<std::string::String>,
pub(crate) create_time: std::option::Option<std::string::String>,
pub(crate) admin_user_name: std::option::Option<std::string::String>,
pub(crate) auth_type: std::option::Option<crate::model::Auth>,
pub(crate) shard_capacity: std::option::Option<i32>,
pub(crate) shard_count: std::option::Option<i32>,
pub(crate) vpc_security_group_ids: std::option::Option<std::vec::Vec<std::string::String>>,
pub(crate) subnet_ids: std::option::Option<std::vec::Vec<std::string::String>>,
pub(crate) preferred_maintenance_window: std::option::Option<std::string::String>,
pub(crate) kms_key_id: std::option::Option<std::string::String>,
}
impl Builder {
pub fn cluster_name(mut self, input: impl Into<std::string::String>) -> Self {
self.cluster_name = Some(input.into());
self
}
pub fn set_cluster_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.cluster_name = input;
self
}
pub fn cluster_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.cluster_arn = Some(input.into());
self
}
pub fn set_cluster_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.cluster_arn = input;
self
}
pub fn status(mut self, input: crate::model::Status) -> Self {
self.status = Some(input);
self
}
pub fn set_status(mut self, input: std::option::Option<crate::model::Status>) -> Self {
self.status = input;
self
}
pub fn cluster_endpoint(mut self, input: impl Into<std::string::String>) -> Self {
self.cluster_endpoint = Some(input.into());
self
}
pub fn set_cluster_endpoint(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.cluster_endpoint = input;
self
}
pub fn create_time(mut self, input: impl Into<std::string::String>) -> Self {
self.create_time = Some(input.into());
self
}
pub fn set_create_time(mut self, input: std::option::Option<std::string::String>) -> Self {
self.create_time = input;
self
}
pub fn admin_user_name(mut self, input: impl Into<std::string::String>) -> Self {
self.admin_user_name = Some(input.into());
self
}
pub fn set_admin_user_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.admin_user_name = input;
self
}
pub fn auth_type(mut self, input: crate::model::Auth) -> Self {
self.auth_type = Some(input);
self
}
pub fn set_auth_type(mut self, input: std::option::Option<crate::model::Auth>) -> Self {
self.auth_type = input;
self
}
pub fn shard_capacity(mut self, input: i32) -> Self {
self.shard_capacity = Some(input);
self
}
pub fn set_shard_capacity(mut self, input: std::option::Option<i32>) -> Self {
self.shard_capacity = input;
self
}
pub fn shard_count(mut self, input: i32) -> Self {
self.shard_count = Some(input);
self
}
pub fn set_shard_count(mut self, input: std::option::Option<i32>) -> Self {
self.shard_count = input;
self
}
pub fn vpc_security_group_ids(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.vpc_security_group_ids.unwrap_or_default();
v.push(input.into());
self.vpc_security_group_ids = Some(v);
self
}
pub fn set_vpc_security_group_ids(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.vpc_security_group_ids = input;
self
}
pub fn subnet_ids(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.subnet_ids.unwrap_or_default();
v.push(input.into());
self.subnet_ids = Some(v);
self
}
pub fn set_subnet_ids(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.subnet_ids = input;
self
}
pub fn preferred_maintenance_window(
mut self,
input: impl Into<std::string::String>,
) -> Self {
self.preferred_maintenance_window = Some(input.into());
self
}
pub fn set_preferred_maintenance_window(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.preferred_maintenance_window = input;
self
}
pub fn kms_key_id(mut self, input: impl Into<std::string::String>) -> Self {
self.kms_key_id = Some(input.into());
self
}
pub fn set_kms_key_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.kms_key_id = input;
self
}
pub fn build(self) -> crate::model::Cluster {
crate::model::Cluster {
cluster_name: self.cluster_name,
cluster_arn: self.cluster_arn,
status: self.status,
cluster_endpoint: self.cluster_endpoint,
create_time: self.create_time,
admin_user_name: self.admin_user_name,
auth_type: self.auth_type,
shard_capacity: self.shard_capacity,
shard_count: self.shard_count,
vpc_security_group_ids: self.vpc_security_group_ids,
subnet_ids: self.subnet_ids,
preferred_maintenance_window: self.preferred_maintenance_window,
kms_key_id: self.kms_key_id,
}
}
}
}
impl Cluster {
pub fn builder() -> crate::model::cluster::Builder {
crate::model::cluster::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum Auth {
#[allow(missing_docs)] PlainText,
#[allow(missing_docs)] SecretArn,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for Auth {
fn from(s: &str) -> Self {
match s {
"PLAIN_TEXT" => Auth::PlainText,
"SECRET_ARN" => Auth::SecretArn,
other => Auth::Unknown(crate::types::UnknownVariantValue(other.to_owned())),
}
}
}
impl std::str::FromStr for Auth {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(Auth::from(s))
}
}
impl Auth {
pub fn as_str(&self) -> &str {
match self {
Auth::PlainText => "PLAIN_TEXT",
Auth::SecretArn => "SECRET_ARN",
Auth::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["PLAIN_TEXT", "SECRET_ARN"]
}
}
impl AsRef<str> for Auth {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum Status {
#[allow(missing_docs)] Active,
#[allow(missing_docs)] Creating,
#[allow(missing_docs)] Deleting,
#[allow(missing_docs)] InaccessibleEncryptionCreds,
#[allow(missing_docs)] InvalidSecurityGroupId,
#[allow(missing_docs)] InvalidSubnetId,
#[allow(missing_docs)] IpAddressLimitExceeded,
#[allow(missing_docs)] Updating,
#[allow(missing_docs)] VpcEndpointLimitExceeded,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for Status {
fn from(s: &str) -> Self {
match s {
"ACTIVE" => Status::Active,
"CREATING" => Status::Creating,
"DELETING" => Status::Deleting,
"INACCESSIBLE_ENCRYPTION_CREDS" => Status::InaccessibleEncryptionCreds,
"INVALID_SECURITY_GROUP_ID" => Status::InvalidSecurityGroupId,
"INVALID_SUBNET_ID" => Status::InvalidSubnetId,
"IP_ADDRESS_LIMIT_EXCEEDED" => Status::IpAddressLimitExceeded,
"UPDATING" => Status::Updating,
"VPC_ENDPOINT_LIMIT_EXCEEDED" => Status::VpcEndpointLimitExceeded,
other => Status::Unknown(crate::types::UnknownVariantValue(other.to_owned())),
}
}
}
impl std::str::FromStr for Status {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(Status::from(s))
}
}
impl Status {
pub fn as_str(&self) -> &str {
match self {
Status::Active => "ACTIVE",
Status::Creating => "CREATING",
Status::Deleting => "DELETING",
Status::InaccessibleEncryptionCreds => "INACCESSIBLE_ENCRYPTION_CREDS",
Status::InvalidSecurityGroupId => "INVALID_SECURITY_GROUP_ID",
Status::InvalidSubnetId => "INVALID_SUBNET_ID",
Status::IpAddressLimitExceeded => "IP_ADDRESS_LIMIT_EXCEEDED",
Status::Updating => "UPDATING",
Status::VpcEndpointLimitExceeded => "VPC_ENDPOINT_LIMIT_EXCEEDED",
Status::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&[
"ACTIVE",
"CREATING",
"DELETING",
"INACCESSIBLE_ENCRYPTION_CREDS",
"INVALID_SECURITY_GROUP_ID",
"INVALID_SUBNET_ID",
"IP_ADDRESS_LIMIT_EXCEEDED",
"UPDATING",
"VPC_ENDPOINT_LIMIT_EXCEEDED",
]
}
}
impl AsRef<str> for Status {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ClusterSnapshotInList {
#[doc(hidden)]
pub snapshot_name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub snapshot_arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub cluster_arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub status: std::option::Option<crate::model::Status>,
#[doc(hidden)]
pub snapshot_creation_time: std::option::Option<std::string::String>,
}
impl ClusterSnapshotInList {
pub fn snapshot_name(&self) -> std::option::Option<&str> {
self.snapshot_name.as_deref()
}
pub fn snapshot_arn(&self) -> std::option::Option<&str> {
self.snapshot_arn.as_deref()
}
pub fn cluster_arn(&self) -> std::option::Option<&str> {
self.cluster_arn.as_deref()
}
pub fn status(&self) -> std::option::Option<&crate::model::Status> {
self.status.as_ref()
}
pub fn snapshot_creation_time(&self) -> std::option::Option<&str> {
self.snapshot_creation_time.as_deref()
}
}
pub mod cluster_snapshot_in_list {
#[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) snapshot_arn: std::option::Option<std::string::String>,
pub(crate) cluster_arn: std::option::Option<std::string::String>,
pub(crate) status: std::option::Option<crate::model::Status>,
pub(crate) snapshot_creation_time: std::option::Option<std::string::String>,
}
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 snapshot_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.snapshot_arn = Some(input.into());
self
}
pub fn set_snapshot_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.snapshot_arn = input;
self
}
pub fn cluster_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.cluster_arn = Some(input.into());
self
}
pub fn set_cluster_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.cluster_arn = input;
self
}
pub fn status(mut self, input: crate::model::Status) -> Self {
self.status = Some(input);
self
}
pub fn set_status(mut self, input: std::option::Option<crate::model::Status>) -> Self {
self.status = input;
self
}
pub fn snapshot_creation_time(mut self, input: impl Into<std::string::String>) -> Self {
self.snapshot_creation_time = Some(input.into());
self
}
pub fn set_snapshot_creation_time(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.snapshot_creation_time = input;
self
}
pub fn build(self) -> crate::model::ClusterSnapshotInList {
crate::model::ClusterSnapshotInList {
snapshot_name: self.snapshot_name,
snapshot_arn: self.snapshot_arn,
cluster_arn: self.cluster_arn,
status: self.status,
snapshot_creation_time: self.snapshot_creation_time,
}
}
}
}
impl ClusterSnapshotInList {
pub fn builder() -> crate::model::cluster_snapshot_in_list::Builder {
crate::model::cluster_snapshot_in_list::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ClusterInList {
#[doc(hidden)]
pub cluster_name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub cluster_arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub status: std::option::Option<crate::model::Status>,
}
impl ClusterInList {
pub fn cluster_name(&self) -> std::option::Option<&str> {
self.cluster_name.as_deref()
}
pub fn cluster_arn(&self) -> std::option::Option<&str> {
self.cluster_arn.as_deref()
}
pub fn status(&self) -> std::option::Option<&crate::model::Status> {
self.status.as_ref()
}
}
pub mod cluster_in_list {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) cluster_name: std::option::Option<std::string::String>,
pub(crate) cluster_arn: std::option::Option<std::string::String>,
pub(crate) status: std::option::Option<crate::model::Status>,
}
impl Builder {
pub fn cluster_name(mut self, input: impl Into<std::string::String>) -> Self {
self.cluster_name = Some(input.into());
self
}
pub fn set_cluster_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.cluster_name = input;
self
}
pub fn cluster_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.cluster_arn = Some(input.into());
self
}
pub fn set_cluster_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.cluster_arn = input;
self
}
pub fn status(mut self, input: crate::model::Status) -> Self {
self.status = Some(input);
self
}
pub fn set_status(mut self, input: std::option::Option<crate::model::Status>) -> Self {
self.status = input;
self
}
pub fn build(self) -> crate::model::ClusterInList {
crate::model::ClusterInList {
cluster_name: self.cluster_name,
cluster_arn: self.cluster_arn,
status: self.status,
}
}
}
}
impl ClusterInList {
pub fn builder() -> crate::model::cluster_in_list::Builder {
crate::model::cluster_in_list::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ClusterSnapshot {
#[doc(hidden)]
pub subnet_ids: std::option::Option<std::vec::Vec<std::string::String>>,
#[doc(hidden)]
pub snapshot_name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub snapshot_arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub snapshot_creation_time: std::option::Option<std::string::String>,
#[doc(hidden)]
pub cluster_arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub cluster_creation_time: std::option::Option<std::string::String>,
#[doc(hidden)]
pub status: std::option::Option<crate::model::Status>,
#[doc(hidden)]
pub vpc_security_group_ids: std::option::Option<std::vec::Vec<std::string::String>>,
#[doc(hidden)]
pub admin_user_name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub kms_key_id: std::option::Option<std::string::String>,
}
impl ClusterSnapshot {
pub fn subnet_ids(&self) -> std::option::Option<&[std::string::String]> {
self.subnet_ids.as_deref()
}
pub fn snapshot_name(&self) -> std::option::Option<&str> {
self.snapshot_name.as_deref()
}
pub fn snapshot_arn(&self) -> std::option::Option<&str> {
self.snapshot_arn.as_deref()
}
pub fn snapshot_creation_time(&self) -> std::option::Option<&str> {
self.snapshot_creation_time.as_deref()
}
pub fn cluster_arn(&self) -> std::option::Option<&str> {
self.cluster_arn.as_deref()
}
pub fn cluster_creation_time(&self) -> std::option::Option<&str> {
self.cluster_creation_time.as_deref()
}
pub fn status(&self) -> std::option::Option<&crate::model::Status> {
self.status.as_ref()
}
pub fn vpc_security_group_ids(&self) -> std::option::Option<&[std::string::String]> {
self.vpc_security_group_ids.as_deref()
}
pub fn admin_user_name(&self) -> std::option::Option<&str> {
self.admin_user_name.as_deref()
}
pub fn kms_key_id(&self) -> std::option::Option<&str> {
self.kms_key_id.as_deref()
}
}
pub mod cluster_snapshot {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) subnet_ids: std::option::Option<std::vec::Vec<std::string::String>>,
pub(crate) snapshot_name: std::option::Option<std::string::String>,
pub(crate) snapshot_arn: std::option::Option<std::string::String>,
pub(crate) snapshot_creation_time: std::option::Option<std::string::String>,
pub(crate) cluster_arn: std::option::Option<std::string::String>,
pub(crate) cluster_creation_time: std::option::Option<std::string::String>,
pub(crate) status: std::option::Option<crate::model::Status>,
pub(crate) vpc_security_group_ids: std::option::Option<std::vec::Vec<std::string::String>>,
pub(crate) admin_user_name: std::option::Option<std::string::String>,
pub(crate) kms_key_id: std::option::Option<std::string::String>,
}
impl Builder {
pub fn subnet_ids(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.subnet_ids.unwrap_or_default();
v.push(input.into());
self.subnet_ids = Some(v);
self
}
pub fn set_subnet_ids(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.subnet_ids = input;
self
}
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 snapshot_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.snapshot_arn = Some(input.into());
self
}
pub fn set_snapshot_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.snapshot_arn = input;
self
}
pub fn snapshot_creation_time(mut self, input: impl Into<std::string::String>) -> Self {
self.snapshot_creation_time = Some(input.into());
self
}
pub fn set_snapshot_creation_time(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.snapshot_creation_time = input;
self
}
pub fn cluster_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.cluster_arn = Some(input.into());
self
}
pub fn set_cluster_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.cluster_arn = input;
self
}
pub fn cluster_creation_time(mut self, input: impl Into<std::string::String>) -> Self {
self.cluster_creation_time = Some(input.into());
self
}
pub fn set_cluster_creation_time(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.cluster_creation_time = input;
self
}
pub fn status(mut self, input: crate::model::Status) -> Self {
self.status = Some(input);
self
}
pub fn set_status(mut self, input: std::option::Option<crate::model::Status>) -> Self {
self.status = input;
self
}
pub fn vpc_security_group_ids(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.vpc_security_group_ids.unwrap_or_default();
v.push(input.into());
self.vpc_security_group_ids = Some(v);
self
}
pub fn set_vpc_security_group_ids(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.vpc_security_group_ids = input;
self
}
pub fn admin_user_name(mut self, input: impl Into<std::string::String>) -> Self {
self.admin_user_name = Some(input.into());
self
}
pub fn set_admin_user_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.admin_user_name = input;
self
}
pub fn kms_key_id(mut self, input: impl Into<std::string::String>) -> Self {
self.kms_key_id = Some(input.into());
self
}
pub fn set_kms_key_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.kms_key_id = input;
self
}
pub fn build(self) -> crate::model::ClusterSnapshot {
crate::model::ClusterSnapshot {
subnet_ids: self.subnet_ids,
snapshot_name: self.snapshot_name,
snapshot_arn: self.snapshot_arn,
snapshot_creation_time: self.snapshot_creation_time,
cluster_arn: self.cluster_arn,
cluster_creation_time: self.cluster_creation_time,
status: self.status,
vpc_security_group_ids: self.vpc_security_group_ids,
admin_user_name: self.admin_user_name,
kms_key_id: self.kms_key_id,
}
}
}
}
impl ClusterSnapshot {
pub fn builder() -> crate::model::cluster_snapshot::Builder {
crate::model::cluster_snapshot::Builder::default()
}
}