#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteGraphOutput {
pub id: ::std::string::String,
pub name: ::std::string::String,
pub arn: ::std::string::String,
pub status: ::std::option::Option<crate::types::GraphStatus>,
pub status_reason: ::std::option::Option<::std::string::String>,
pub create_time: ::std::option::Option<::aws_smithy_types::DateTime>,
pub provisioned_memory: ::std::option::Option<i32>,
pub endpoint: ::std::option::Option<::std::string::String>,
pub public_connectivity: ::std::option::Option<bool>,
pub vector_search_configuration: ::std::option::Option<crate::types::VectorSearchConfiguration>,
pub replica_count: ::std::option::Option<i32>,
pub kms_key_identifier: ::std::option::Option<::std::string::String>,
pub source_snapshot_id: ::std::option::Option<::std::string::String>,
pub deletion_protection: ::std::option::Option<bool>,
pub build_number: ::std::option::Option<::std::string::String>,
_request_id: Option<String>,
}
impl DeleteGraphOutput {
pub fn id(&self) -> &str {
use std::ops::Deref;
self.id.deref()
}
pub fn name(&self) -> &str {
use std::ops::Deref;
self.name.deref()
}
pub fn arn(&self) -> &str {
use std::ops::Deref;
self.arn.deref()
}
pub fn status(&self) -> ::std::option::Option<&crate::types::GraphStatus> {
self.status.as_ref()
}
pub fn status_reason(&self) -> ::std::option::Option<&str> {
self.status_reason.as_deref()
}
pub fn create_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.create_time.as_ref()
}
pub fn provisioned_memory(&self) -> ::std::option::Option<i32> {
self.provisioned_memory
}
pub fn endpoint(&self) -> ::std::option::Option<&str> {
self.endpoint.as_deref()
}
pub fn public_connectivity(&self) -> ::std::option::Option<bool> {
self.public_connectivity
}
pub fn vector_search_configuration(&self) -> ::std::option::Option<&crate::types::VectorSearchConfiguration> {
self.vector_search_configuration.as_ref()
}
pub fn replica_count(&self) -> ::std::option::Option<i32> {
self.replica_count
}
pub fn kms_key_identifier(&self) -> ::std::option::Option<&str> {
self.kms_key_identifier.as_deref()
}
pub fn source_snapshot_id(&self) -> ::std::option::Option<&str> {
self.source_snapshot_id.as_deref()
}
pub fn deletion_protection(&self) -> ::std::option::Option<bool> {
self.deletion_protection
}
pub fn build_number(&self) -> ::std::option::Option<&str> {
self.build_number.as_deref()
}
}
impl ::aws_types::request_id::RequestId for DeleteGraphOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl DeleteGraphOutput {
pub fn builder() -> crate::operation::delete_graph::builders::DeleteGraphOutputBuilder {
crate::operation::delete_graph::builders::DeleteGraphOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteGraphOutputBuilder {
pub(crate) id: ::std::option::Option<::std::string::String>,
pub(crate) name: ::std::option::Option<::std::string::String>,
pub(crate) arn: ::std::option::Option<::std::string::String>,
pub(crate) status: ::std::option::Option<crate::types::GraphStatus>,
pub(crate) status_reason: ::std::option::Option<::std::string::String>,
pub(crate) create_time: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) provisioned_memory: ::std::option::Option<i32>,
pub(crate) endpoint: ::std::option::Option<::std::string::String>,
pub(crate) public_connectivity: ::std::option::Option<bool>,
pub(crate) vector_search_configuration: ::std::option::Option<crate::types::VectorSearchConfiguration>,
pub(crate) replica_count: ::std::option::Option<i32>,
pub(crate) kms_key_identifier: ::std::option::Option<::std::string::String>,
pub(crate) source_snapshot_id: ::std::option::Option<::std::string::String>,
pub(crate) deletion_protection: ::std::option::Option<bool>,
pub(crate) build_number: ::std::option::Option<::std::string::String>,
_request_id: Option<String>,
}
impl DeleteGraphOutputBuilder {
pub fn id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.id = ::std::option::Option::Some(input.into());
self
}
pub fn set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.id = input;
self
}
pub fn get_id(&self) -> &::std::option::Option<::std::string::String> {
&self.id
}
pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.name = ::std::option::Option::Some(input.into());
self
}
pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.name = input;
self
}
pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
&self.name
}
pub fn arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.arn = input;
self
}
pub fn get_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.arn
}
pub fn status(mut self, input: crate::types::GraphStatus) -> Self {
self.status = ::std::option::Option::Some(input);
self
}
pub fn set_status(mut self, input: ::std::option::Option<crate::types::GraphStatus>) -> Self {
self.status = input;
self
}
pub fn get_status(&self) -> &::std::option::Option<crate::types::GraphStatus> {
&self.status
}
pub fn status_reason(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.status_reason = ::std::option::Option::Some(input.into());
self
}
pub fn set_status_reason(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.status_reason = input;
self
}
pub fn get_status_reason(&self) -> &::std::option::Option<::std::string::String> {
&self.status_reason
}
pub fn create_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.create_time = ::std::option::Option::Some(input);
self
}
pub fn set_create_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.create_time = input;
self
}
pub fn get_create_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.create_time
}
pub fn provisioned_memory(mut self, input: i32) -> Self {
self.provisioned_memory = ::std::option::Option::Some(input);
self
}
pub fn set_provisioned_memory(mut self, input: ::std::option::Option<i32>) -> Self {
self.provisioned_memory = input;
self
}
pub fn get_provisioned_memory(&self) -> &::std::option::Option<i32> {
&self.provisioned_memory
}
pub fn endpoint(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.endpoint = ::std::option::Option::Some(input.into());
self
}
pub fn set_endpoint(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.endpoint = input;
self
}
pub fn get_endpoint(&self) -> &::std::option::Option<::std::string::String> {
&self.endpoint
}
pub fn public_connectivity(mut self, input: bool) -> Self {
self.public_connectivity = ::std::option::Option::Some(input);
self
}
pub fn set_public_connectivity(mut self, input: ::std::option::Option<bool>) -> Self {
self.public_connectivity = input;
self
}
pub fn get_public_connectivity(&self) -> &::std::option::Option<bool> {
&self.public_connectivity
}
pub fn vector_search_configuration(mut self, input: crate::types::VectorSearchConfiguration) -> Self {
self.vector_search_configuration = ::std::option::Option::Some(input);
self
}
pub fn set_vector_search_configuration(mut self, input: ::std::option::Option<crate::types::VectorSearchConfiguration>) -> Self {
self.vector_search_configuration = input;
self
}
pub fn get_vector_search_configuration(&self) -> &::std::option::Option<crate::types::VectorSearchConfiguration> {
&self.vector_search_configuration
}
pub fn replica_count(mut self, input: i32) -> Self {
self.replica_count = ::std::option::Option::Some(input);
self
}
pub fn set_replica_count(mut self, input: ::std::option::Option<i32>) -> Self {
self.replica_count = input;
self
}
pub fn get_replica_count(&self) -> &::std::option::Option<i32> {
&self.replica_count
}
pub fn kms_key_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.kms_key_identifier = ::std::option::Option::Some(input.into());
self
}
pub fn set_kms_key_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.kms_key_identifier = input;
self
}
pub fn get_kms_key_identifier(&self) -> &::std::option::Option<::std::string::String> {
&self.kms_key_identifier
}
pub fn source_snapshot_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.source_snapshot_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_source_snapshot_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.source_snapshot_id = input;
self
}
pub fn get_source_snapshot_id(&self) -> &::std::option::Option<::std::string::String> {
&self.source_snapshot_id
}
pub fn deletion_protection(mut self, input: bool) -> Self {
self.deletion_protection = ::std::option::Option::Some(input);
self
}
pub fn set_deletion_protection(mut self, input: ::std::option::Option<bool>) -> Self {
self.deletion_protection = input;
self
}
pub fn get_deletion_protection(&self) -> &::std::option::Option<bool> {
&self.deletion_protection
}
pub fn build_number(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.build_number = ::std::option::Option::Some(input.into());
self
}
pub fn set_build_number(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.build_number = input;
self
}
pub fn get_build_number(&self) -> &::std::option::Option<::std::string::String> {
&self.build_number
}
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::delete_graph::DeleteGraphOutput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::delete_graph::DeleteGraphOutput {
id: self.id.ok_or_else(|| {
::aws_smithy_types::error::operation::BuildError::missing_field(
"id",
"id was not specified but it is required when building DeleteGraphOutput",
)
})?,
name: self.name.ok_or_else(|| {
::aws_smithy_types::error::operation::BuildError::missing_field(
"name",
"name was not specified but it is required when building DeleteGraphOutput",
)
})?,
arn: self.arn.ok_or_else(|| {
::aws_smithy_types::error::operation::BuildError::missing_field(
"arn",
"arn was not specified but it is required when building DeleteGraphOutput",
)
})?,
status: self.status,
status_reason: self.status_reason,
create_time: self.create_time,
provisioned_memory: self.provisioned_memory,
endpoint: self.endpoint,
public_connectivity: self.public_connectivity,
vector_search_configuration: self.vector_search_configuration,
replica_count: self.replica_count,
kms_key_identifier: self.kms_key_identifier,
source_snapshot_id: self.source_snapshot_id,
deletion_protection: self.deletion_protection,
build_number: self.build_number,
_request_id: self._request_id,
})
}
}