#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DescribeWorldOutput {
pub arn: ::std::option::Option<::std::string::String>,
pub generation_job: ::std::option::Option<::std::string::String>,
pub template: ::std::option::Option<::std::string::String>,
pub created_at: ::std::option::Option<::aws_smithy_types::DateTime>,
pub tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
pub world_description_body: ::std::option::Option<::std::string::String>,
_request_id: Option<String>,
}
impl DescribeWorldOutput {
pub fn arn(&self) -> ::std::option::Option<&str> {
self.arn.as_deref()
}
pub fn generation_job(&self) -> ::std::option::Option<&str> {
self.generation_job.as_deref()
}
pub fn template(&self) -> ::std::option::Option<&str> {
self.template.as_deref()
}
pub fn created_at(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.created_at.as_ref()
}
pub fn tags(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, ::std::string::String>> {
self.tags.as_ref()
}
pub fn world_description_body(&self) -> ::std::option::Option<&str> {
self.world_description_body.as_deref()
}
}
impl ::aws_types::request_id::RequestId for DescribeWorldOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl DescribeWorldOutput {
pub fn builder() -> crate::operation::describe_world::builders::DescribeWorldOutputBuilder {
crate::operation::describe_world::builders::DescribeWorldOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeWorldOutputBuilder {
pub(crate) arn: ::std::option::Option<::std::string::String>,
pub(crate) generation_job: ::std::option::Option<::std::string::String>,
pub(crate) template: ::std::option::Option<::std::string::String>,
pub(crate) created_at: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
pub(crate) world_description_body: ::std::option::Option<::std::string::String>,
_request_id: Option<String>,
}
impl DescribeWorldOutputBuilder {
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 generation_job(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.generation_job = ::std::option::Option::Some(input.into());
self
}
pub fn set_generation_job(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.generation_job = input;
self
}
pub fn get_generation_job(&self) -> &::std::option::Option<::std::string::String> {
&self.generation_job
}
pub fn template(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.template = ::std::option::Option::Some(input.into());
self
}
pub fn set_template(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.template = input;
self
}
pub fn get_template(&self) -> &::std::option::Option<::std::string::String> {
&self.template
}
pub fn created_at(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.created_at = ::std::option::Option::Some(input);
self
}
pub fn set_created_at(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.created_at = input;
self
}
pub fn get_created_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.created_at
}
pub fn tags(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut hash_map = self.tags.unwrap_or_default();
hash_map.insert(k.into(), v.into());
self.tags = ::std::option::Option::Some(hash_map);
self
}
pub fn set_tags(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>) -> Self {
self.tags = input;
self
}
pub fn get_tags(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
&self.tags
}
pub fn world_description_body(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.world_description_body = ::std::option::Option::Some(input.into());
self
}
pub fn set_world_description_body(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.world_description_body = input;
self
}
pub fn get_world_description_body(&self) -> &::std::option::Option<::std::string::String> {
&self.world_description_body
}
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::describe_world::DescribeWorldOutput {
crate::operation::describe_world::DescribeWorldOutput {
arn: self.arn,
generation_job: self.generation_job,
template: self.template,
created_at: self.created_at,
tags: self.tags,
world_description_body: self.world_description_body,
_request_id: self._request_id,
}
}
}