#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DescribeHostKeyInput {
pub server_id: ::std::option::Option<::std::string::String>,
pub host_key_id: ::std::option::Option<::std::string::String>,
}
impl DescribeHostKeyInput {
pub fn server_id(&self) -> ::std::option::Option<&str> {
self.server_id.as_deref()
}
pub fn host_key_id(&self) -> ::std::option::Option<&str> {
self.host_key_id.as_deref()
}
}
impl DescribeHostKeyInput {
pub fn builder() -> crate::operation::describe_host_key::builders::DescribeHostKeyInputBuilder {
crate::operation::describe_host_key::builders::DescribeHostKeyInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeHostKeyInputBuilder {
pub(crate) server_id: ::std::option::Option<::std::string::String>,
pub(crate) host_key_id: ::std::option::Option<::std::string::String>,
}
impl DescribeHostKeyInputBuilder {
pub fn server_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.server_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_server_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.server_id = input;
self
}
pub fn get_server_id(&self) -> &::std::option::Option<::std::string::String> {
&self.server_id
}
pub fn host_key_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.host_key_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_host_key_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.host_key_id = input;
self
}
pub fn get_host_key_id(&self) -> &::std::option::Option<::std::string::String> {
&self.host_key_id
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::describe_host_key::DescribeHostKeyInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::describe_host_key::DescribeHostKeyInput {
server_id: self.server_id,
host_key_id: self.host_key_id,
})
}
}