#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetReportInput {
pub report_id: ::std::option::Option<::std::string::String>,
pub report_version: ::std::option::Option<i64>,
pub term_token: ::std::option::Option<::std::string::String>,
}
impl GetReportInput {
pub fn report_id(&self) -> ::std::option::Option<&str> {
self.report_id.as_deref()
}
pub fn report_version(&self) -> ::std::option::Option<i64> {
self.report_version
}
pub fn term_token(&self) -> ::std::option::Option<&str> {
self.term_token.as_deref()
}
}
impl GetReportInput {
pub fn builder() -> crate::operation::get_report::builders::GetReportInputBuilder {
crate::operation::get_report::builders::GetReportInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetReportInputBuilder {
pub(crate) report_id: ::std::option::Option<::std::string::String>,
pub(crate) report_version: ::std::option::Option<i64>,
pub(crate) term_token: ::std::option::Option<::std::string::String>,
}
impl GetReportInputBuilder {
pub fn report_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.report_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_report_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.report_id = input;
self
}
pub fn get_report_id(&self) -> &::std::option::Option<::std::string::String> {
&self.report_id
}
pub fn report_version(mut self, input: i64) -> Self {
self.report_version = ::std::option::Option::Some(input);
self
}
pub fn set_report_version(mut self, input: ::std::option::Option<i64>) -> Self {
self.report_version = input;
self
}
pub fn get_report_version(&self) -> &::std::option::Option<i64> {
&self.report_version
}
pub fn term_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.term_token = ::std::option::Option::Some(input.into());
self
}
pub fn set_term_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.term_token = input;
self
}
pub fn get_term_token(&self) -> &::std::option::Option<::std::string::String> {
&self.term_token
}
pub fn build(self) -> ::std::result::Result<crate::operation::get_report::GetReportInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::get_report::GetReportInput {
report_id: self.report_id,
report_version: self.report_version,
term_token: self.term_token,
})
}
}