#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DescribeApplicationsInput {
pub application_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub compute_type_names: ::std::option::Option<::std::vec::Vec<crate::types::Compute>>,
pub license_type: ::std::option::Option<crate::types::WorkSpaceApplicationLicenseType>,
pub operating_system_names: ::std::option::Option<::std::vec::Vec<crate::types::OperatingSystemName>>,
pub owner: ::std::option::Option<::std::string::String>,
pub max_results: ::std::option::Option<i32>,
pub next_token: ::std::option::Option<::std::string::String>,
}
impl DescribeApplicationsInput {
pub fn application_ids(&self) -> &[::std::string::String] {
self.application_ids.as_deref().unwrap_or_default()
}
pub fn compute_type_names(&self) -> &[crate::types::Compute] {
self.compute_type_names.as_deref().unwrap_or_default()
}
pub fn license_type(&self) -> ::std::option::Option<&crate::types::WorkSpaceApplicationLicenseType> {
self.license_type.as_ref()
}
pub fn operating_system_names(&self) -> &[crate::types::OperatingSystemName] {
self.operating_system_names.as_deref().unwrap_or_default()
}
pub fn owner(&self) -> ::std::option::Option<&str> {
self.owner.as_deref()
}
pub fn max_results(&self) -> ::std::option::Option<i32> {
self.max_results
}
pub fn next_token(&self) -> ::std::option::Option<&str> {
self.next_token.as_deref()
}
}
impl DescribeApplicationsInput {
pub fn builder() -> crate::operation::describe_applications::builders::DescribeApplicationsInputBuilder {
crate::operation::describe_applications::builders::DescribeApplicationsInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeApplicationsInputBuilder {
pub(crate) application_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub(crate) compute_type_names: ::std::option::Option<::std::vec::Vec<crate::types::Compute>>,
pub(crate) license_type: ::std::option::Option<crate::types::WorkSpaceApplicationLicenseType>,
pub(crate) operating_system_names: ::std::option::Option<::std::vec::Vec<crate::types::OperatingSystemName>>,
pub(crate) owner: ::std::option::Option<::std::string::String>,
pub(crate) max_results: ::std::option::Option<i32>,
pub(crate) next_token: ::std::option::Option<::std::string::String>,
}
impl DescribeApplicationsInputBuilder {
pub fn application_ids(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.application_ids.unwrap_or_default();
v.push(input.into());
self.application_ids = ::std::option::Option::Some(v);
self
}
pub fn set_application_ids(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.application_ids = input;
self
}
pub fn get_application_ids(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.application_ids
}
pub fn compute_type_names(mut self, input: crate::types::Compute) -> Self {
let mut v = self.compute_type_names.unwrap_or_default();
v.push(input);
self.compute_type_names = ::std::option::Option::Some(v);
self
}
pub fn set_compute_type_names(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Compute>>) -> Self {
self.compute_type_names = input;
self
}
pub fn get_compute_type_names(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Compute>> {
&self.compute_type_names
}
pub fn license_type(mut self, input: crate::types::WorkSpaceApplicationLicenseType) -> Self {
self.license_type = ::std::option::Option::Some(input);
self
}
pub fn set_license_type(mut self, input: ::std::option::Option<crate::types::WorkSpaceApplicationLicenseType>) -> Self {
self.license_type = input;
self
}
pub fn get_license_type(&self) -> &::std::option::Option<crate::types::WorkSpaceApplicationLicenseType> {
&self.license_type
}
pub fn operating_system_names(mut self, input: crate::types::OperatingSystemName) -> Self {
let mut v = self.operating_system_names.unwrap_or_default();
v.push(input);
self.operating_system_names = ::std::option::Option::Some(v);
self
}
pub fn set_operating_system_names(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::OperatingSystemName>>) -> Self {
self.operating_system_names = input;
self
}
pub fn get_operating_system_names(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::OperatingSystemName>> {
&self.operating_system_names
}
pub fn owner(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.owner = ::std::option::Option::Some(input.into());
self
}
pub fn set_owner(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.owner = input;
self
}
pub fn get_owner(&self) -> &::std::option::Option<::std::string::String> {
&self.owner
}
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 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 build(
self,
) -> ::std::result::Result<crate::operation::describe_applications::DescribeApplicationsInput, ::aws_smithy_types::error::operation::BuildError>
{
::std::result::Result::Ok(crate::operation::describe_applications::DescribeApplicationsInput {
application_ids: self.application_ids,
compute_type_names: self.compute_type_names,
license_type: self.license_type,
operating_system_names: self.operating_system_names,
owner: self.owner,
max_results: self.max_results,
next_token: self.next_token,
})
}
}