#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct ListReservationsInput {
pub channel_class: ::std::option::Option<::std::string::String>,
pub codec: ::std::option::Option<::std::string::String>,
pub max_results: ::std::option::Option<i32>,
pub maximum_bitrate: ::std::option::Option<::std::string::String>,
pub maximum_framerate: ::std::option::Option<::std::string::String>,
pub next_token: ::std::option::Option<::std::string::String>,
pub resolution: ::std::option::Option<::std::string::String>,
pub resource_type: ::std::option::Option<::std::string::String>,
pub special_feature: ::std::option::Option<::std::string::String>,
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()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
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 ::std::convert::Into<::std::string::String>) -> Self {
self.channel_class = ::std::option::Option::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 get_channel_class(&self) -> &::std::option::Option<::std::string::String> {
&self.channel_class
}
pub fn codec(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.codec = ::std::option::Option::Some(input.into());
self
}
pub fn set_codec(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.codec = input;
self
}
pub fn get_codec(&self) -> &::std::option::Option<::std::string::String> {
&self.codec
}
pub fn max_results(mut self, input: i32) -> Self {
self.max_results = ::std::option::Option::Some(input);
self
}
pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
self.max_results = input;
self
}
pub fn get_max_results(&self) -> &::std::option::Option<i32> {
&self.max_results
}
pub fn maximum_bitrate(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.maximum_bitrate = ::std::option::Option::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 get_maximum_bitrate(&self) -> &::std::option::Option<::std::string::String> {
&self.maximum_bitrate
}
pub fn maximum_framerate(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.maximum_framerate = ::std::option::Option::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 get_maximum_framerate(&self) -> &::std::option::Option<::std::string::String> {
&self.maximum_framerate
}
pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.next_token = ::std::option::Option::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 get_next_token(&self) -> &::std::option::Option<::std::string::String> {
&self.next_token
}
pub fn resolution(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.resolution = ::std::option::Option::Some(input.into());
self
}
pub fn set_resolution(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.resolution = input;
self
}
pub fn get_resolution(&self) -> &::std::option::Option<::std::string::String> {
&self.resolution
}
pub fn resource_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.resource_type = ::std::option::Option::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 get_resource_type(&self) -> &::std::option::Option<::std::string::String> {
&self.resource_type
}
pub fn special_feature(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.special_feature = ::std::option::Option::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 get_special_feature(&self) -> &::std::option::Option<::std::string::String> {
&self.special_feature
}
pub fn video_quality(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.video_quality = ::std::option::Option::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 get_video_quality(&self) -> &::std::option::Option<::std::string::String> {
&self.video_quality
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::list_reservations::ListReservationsInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::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,
})
}
}