#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct CreateBotVersionOutput {
pub bot_id: ::std::option::Option<::std::string::String>,
pub description: ::std::option::Option<::std::string::String>,
pub bot_version: ::std::option::Option<::std::string::String>,
pub bot_version_locale_specification:
::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::BotVersionLocaleDetails>>,
pub bot_status: ::std::option::Option<crate::types::BotStatus>,
pub creation_date_time: ::std::option::Option<::aws_smithy_types::DateTime>,
_request_id: Option<String>,
}
impl CreateBotVersionOutput {
pub fn bot_id(&self) -> ::std::option::Option<&str> {
self.bot_id.as_deref()
}
pub fn description(&self) -> ::std::option::Option<&str> {
self.description.as_deref()
}
pub fn bot_version(&self) -> ::std::option::Option<&str> {
self.bot_version.as_deref()
}
pub fn bot_version_locale_specification(
&self,
) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, crate::types::BotVersionLocaleDetails>> {
self.bot_version_locale_specification.as_ref()
}
pub fn bot_status(&self) -> ::std::option::Option<&crate::types::BotStatus> {
self.bot_status.as_ref()
}
pub fn creation_date_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.creation_date_time.as_ref()
}
}
impl ::aws_types::request_id::RequestId for CreateBotVersionOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl CreateBotVersionOutput {
pub fn builder() -> crate::operation::create_bot_version::builders::CreateBotVersionOutputBuilder {
crate::operation::create_bot_version::builders::CreateBotVersionOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct CreateBotVersionOutputBuilder {
pub(crate) bot_id: ::std::option::Option<::std::string::String>,
pub(crate) description: ::std::option::Option<::std::string::String>,
pub(crate) bot_version: ::std::option::Option<::std::string::String>,
pub(crate) bot_version_locale_specification:
::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::BotVersionLocaleDetails>>,
pub(crate) bot_status: ::std::option::Option<crate::types::BotStatus>,
pub(crate) creation_date_time: ::std::option::Option<::aws_smithy_types::DateTime>,
_request_id: Option<String>,
}
impl CreateBotVersionOutputBuilder {
pub fn bot_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.bot_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_bot_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.bot_id = input;
self
}
pub fn get_bot_id(&self) -> &::std::option::Option<::std::string::String> {
&self.bot_id
}
pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.description = ::std::option::Option::Some(input.into());
self
}
pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.description = input;
self
}
pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
&self.description
}
pub fn bot_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.bot_version = ::std::option::Option::Some(input.into());
self
}
pub fn set_bot_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.bot_version = input;
self
}
pub fn get_bot_version(&self) -> &::std::option::Option<::std::string::String> {
&self.bot_version
}
pub fn bot_version_locale_specification(
mut self,
k: impl ::std::convert::Into<::std::string::String>,
v: crate::types::BotVersionLocaleDetails,
) -> Self {
let mut hash_map = self.bot_version_locale_specification.unwrap_or_default();
hash_map.insert(k.into(), v);
self.bot_version_locale_specification = ::std::option::Option::Some(hash_map);
self
}
pub fn set_bot_version_locale_specification(
mut self,
input: ::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::BotVersionLocaleDetails>>,
) -> Self {
self.bot_version_locale_specification = input;
self
}
pub fn get_bot_version_locale_specification(
&self,
) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::BotVersionLocaleDetails>> {
&self.bot_version_locale_specification
}
pub fn bot_status(mut self, input: crate::types::BotStatus) -> Self {
self.bot_status = ::std::option::Option::Some(input);
self
}
pub fn set_bot_status(mut self, input: ::std::option::Option<crate::types::BotStatus>) -> Self {
self.bot_status = input;
self
}
pub fn get_bot_status(&self) -> &::std::option::Option<crate::types::BotStatus> {
&self.bot_status
}
pub fn creation_date_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.creation_date_time = ::std::option::Option::Some(input);
self
}
pub fn set_creation_date_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.creation_date_time = input;
self
}
pub fn get_creation_date_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.creation_date_time
}
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) -> crate::operation::create_bot_version::CreateBotVersionOutput {
crate::operation::create_bot_version::CreateBotVersionOutput {
bot_id: self.bot_id,
description: self.description,
bot_version: self.bot_version,
bot_version_locale_specification: self.bot_version_locale_specification,
bot_status: self.bot_status,
creation_date_time: self.creation_date_time,
_request_id: self._request_id,
}
}
}