#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ListReservationsInput {
#[doc(hidden)]
pub channel_class: std::option::Option<std::string::String>,
#[doc(hidden)]
pub codec: std::option::Option<std::string::String>,
#[doc(hidden)]
pub max_results: std::option::Option<i32>,
#[doc(hidden)]
pub maximum_bitrate: std::option::Option<std::string::String>,
#[doc(hidden)]
pub maximum_framerate: std::option::Option<std::string::String>,
#[doc(hidden)]
pub next_token: std::option::Option<std::string::String>,
#[doc(hidden)]
pub resolution: std::option::Option<std::string::String>,
#[doc(hidden)]
pub resource_type: std::option::Option<std::string::String>,
#[doc(hidden)]
pub special_feature: std::option::Option<std::string::String>,
#[doc(hidden)]
pub video_quality: std::option::Option<std::string::String>,
}
impl ListReservationsInput {
pub fn channel_class(&self) -> std::option::Option<&str> {
self.channel_class.as_deref()
}
pub fn codec(&self) -> std::option::Option<&str> {
self.codec.as_deref()
}
pub fn max_results(&self) -> std::option::Option<i32> {
self.max_results
}
pub fn maximum_bitrate(&self) -> std::option::Option<&str> {
self.maximum_bitrate.as_deref()
}
pub fn maximum_framerate(&self) -> std::option::Option<&str> {
self.maximum_framerate.as_deref()
}
pub fn next_token(&self) -> std::option::Option<&str> {
self.next_token.as_deref()
}
pub fn resolution(&self) -> std::option::Option<&str> {
self.resolution.as_deref()
}
pub fn resource_type(&self) -> std::option::Option<&str> {
self.resource_type.as_deref()
}
pub fn special_feature(&self) -> std::option::Option<&str> {
self.special_feature.as_deref()
}
pub fn video_quality(&self) -> std::option::Option<&str> {
self.video_quality.as_deref()
}
}
impl ListReservationsInput {
pub fn builder() -> crate::operation::list_reservations::builders::ListReservationsInputBuilder
{
crate::operation::list_reservations::builders::ListReservationsInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct ListReservationsInputBuilder {
pub(crate) channel_class: std::option::Option<std::string::String>,
pub(crate) codec: std::option::Option<std::string::String>,
pub(crate) max_results: std::option::Option<i32>,
pub(crate) maximum_bitrate: std::option::Option<std::string::String>,
pub(crate) maximum_framerate: std::option::Option<std::string::String>,
pub(crate) next_token: std::option::Option<std::string::String>,
pub(crate) resolution: std::option::Option<std::string::String>,
pub(crate) resource_type: std::option::Option<std::string::String>,
pub(crate) special_feature: std::option::Option<std::string::String>,
pub(crate) video_quality: std::option::Option<std::string::String>,
}
impl ListReservationsInputBuilder {
pub fn channel_class(mut self, input: impl Into<std::string::String>) -> Self {
self.channel_class = Some(input.into());
self
}
pub fn set_channel_class(mut self, input: std::option::Option<std::string::String>) -> Self {
self.channel_class = input;
self
}
pub fn codec(mut self, input: impl Into<std::string::String>) -> Self {
self.codec = Some(input.into());
self
}
pub fn set_codec(mut self, input: std::option::Option<std::string::String>) -> Self {
self.codec = input;
self
}
pub fn max_results(mut self, input: i32) -> Self {
self.max_results = Some(input);
self
}
pub fn set_max_results(mut self, input: std::option::Option<i32>) -> Self {
self.max_results = input;
self
}
pub fn maximum_bitrate(mut self, input: impl Into<std::string::String>) -> Self {
self.maximum_bitrate = Some(input.into());
self
}
pub fn set_maximum_bitrate(mut self, input: std::option::Option<std::string::String>) -> Self {
self.maximum_bitrate = input;
self
}
pub fn maximum_framerate(mut self, input: impl Into<std::string::String>) -> Self {
self.maximum_framerate = Some(input.into());
self
}
pub fn set_maximum_framerate(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.maximum_framerate = input;
self
}
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.next_token = Some(input.into());
self
}
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.next_token = input;
self
}
pub fn resolution(mut self, input: impl Into<std::string::String>) -> Self {
self.resolution = Some(input.into());
self
}
pub fn set_resolution(mut self, input: std::option::Option<std::string::String>) -> Self {
self.resolution = input;
self
}
pub fn resource_type(mut self, input: impl Into<std::string::String>) -> Self {
self.resource_type = Some(input.into());
self
}
pub fn set_resource_type(mut self, input: std::option::Option<std::string::String>) -> Self {
self.resource_type = input;
self
}
pub fn special_feature(mut self, input: impl Into<std::string::String>) -> Self {
self.special_feature = Some(input.into());
self
}
pub fn set_special_feature(mut self, input: std::option::Option<std::string::String>) -> Self {
self.special_feature = input;
self
}
pub fn video_quality(mut self, input: impl Into<std::string::String>) -> Self {
self.video_quality = Some(input.into());
self
}
pub fn set_video_quality(mut self, input: std::option::Option<std::string::String>) -> Self {
self.video_quality = input;
self
}
pub fn build(
self,
) -> Result<
crate::operation::list_reservations::ListReservationsInput,
aws_smithy_http::operation::error::BuildError,
> {
Ok(crate::operation::list_reservations::ListReservationsInput {
channel_class: self.channel_class,
codec: self.codec,
max_results: self.max_results,
maximum_bitrate: self.maximum_bitrate,
maximum_framerate: self.maximum_framerate,
next_token: self.next_token,
resolution: self.resolution,
resource_type: self.resource_type,
special_feature: self.special_feature,
video_quality: self.video_quality,
})
}
}