#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq)]
pub struct GetTileInput {
pub additional_features: ::std::option::Option<::std::vec::Vec<crate::types::TileAdditionalFeature>>,
pub tileset: ::std::option::Option<::std::string::String>,
pub z: ::std::option::Option<::std::string::String>,
pub x: ::std::option::Option<::std::string::String>,
pub y: ::std::option::Option<::std::string::String>,
pub key: ::std::option::Option<::std::string::String>,
}
impl GetTileInput {
pub fn additional_features(&self) -> &[crate::types::TileAdditionalFeature] {
self.additional_features.as_deref().unwrap_or_default()
}
pub fn tileset(&self) -> ::std::option::Option<&str> {
self.tileset.as_deref()
}
pub fn z(&self) -> ::std::option::Option<&str> {
self.z.as_deref()
}
pub fn x(&self) -> ::std::option::Option<&str> {
self.x.as_deref()
}
pub fn y(&self) -> ::std::option::Option<&str> {
self.y.as_deref()
}
pub fn key(&self) -> ::std::option::Option<&str> {
self.key.as_deref()
}
}
impl ::std::fmt::Debug for GetTileInput {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("GetTileInput");
formatter.field("additional_features", &self.additional_features);
formatter.field("tileset", &self.tileset);
formatter.field("z", &"*** Sensitive Data Redacted ***");
formatter.field("x", &"*** Sensitive Data Redacted ***");
formatter.field("y", &"*** Sensitive Data Redacted ***");
formatter.field("key", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
impl GetTileInput {
pub fn builder() -> crate::operation::get_tile::builders::GetTileInputBuilder {
crate::operation::get_tile::builders::GetTileInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
#[non_exhaustive]
pub struct GetTileInputBuilder {
pub(crate) additional_features: ::std::option::Option<::std::vec::Vec<crate::types::TileAdditionalFeature>>,
pub(crate) tileset: ::std::option::Option<::std::string::String>,
pub(crate) z: ::std::option::Option<::std::string::String>,
pub(crate) x: ::std::option::Option<::std::string::String>,
pub(crate) y: ::std::option::Option<::std::string::String>,
pub(crate) key: ::std::option::Option<::std::string::String>,
}
impl GetTileInputBuilder {
pub fn additional_features(mut self, input: crate::types::TileAdditionalFeature) -> Self {
let mut v = self.additional_features.unwrap_or_default();
v.push(input);
self.additional_features = ::std::option::Option::Some(v);
self
}
pub fn set_additional_features(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::TileAdditionalFeature>>) -> Self {
self.additional_features = input;
self
}
pub fn get_additional_features(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::TileAdditionalFeature>> {
&self.additional_features
}
pub fn tileset(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.tileset = ::std::option::Option::Some(input.into());
self
}
pub fn set_tileset(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.tileset = input;
self
}
pub fn get_tileset(&self) -> &::std::option::Option<::std::string::String> {
&self.tileset
}
pub fn z(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.z = ::std::option::Option::Some(input.into());
self
}
pub fn set_z(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.z = input;
self
}
pub fn get_z(&self) -> &::std::option::Option<::std::string::String> {
&self.z
}
pub fn x(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.x = ::std::option::Option::Some(input.into());
self
}
pub fn set_x(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.x = input;
self
}
pub fn get_x(&self) -> &::std::option::Option<::std::string::String> {
&self.x
}
pub fn y(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.y = ::std::option::Option::Some(input.into());
self
}
pub fn set_y(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.y = input;
self
}
pub fn get_y(&self) -> &::std::option::Option<::std::string::String> {
&self.y
}
pub fn key(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.key = ::std::option::Option::Some(input.into());
self
}
pub fn set_key(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.key = input;
self
}
pub fn get_key(&self) -> &::std::option::Option<::std::string::String> {
&self.key
}
pub fn build(self) -> ::std::result::Result<crate::operation::get_tile::GetTileInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::get_tile::GetTileInput {
additional_features: self.additional_features,
tileset: self.tileset,
z: self.z,
x: self.x,
y: self.y,
key: self.key,
})
}
}
impl ::std::fmt::Debug for GetTileInputBuilder {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("GetTileInputBuilder");
formatter.field("additional_features", &self.additional_features);
formatter.field("tileset", &self.tileset);
formatter.field("z", &"*** Sensitive Data Redacted ***");
formatter.field("x", &"*** Sensitive Data Redacted ***");
formatter.field("y", &"*** Sensitive Data Redacted ***");
formatter.field("key", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}