#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DescribeWorkloadInput {
pub resource_group_name: ::std::option::Option<::std::string::String>,
pub component_name: ::std::option::Option<::std::string::String>,
pub workload_id: ::std::option::Option<::std::string::String>,
pub account_id: ::std::option::Option<::std::string::String>,
}
impl DescribeWorkloadInput {
pub fn resource_group_name(&self) -> ::std::option::Option<&str> {
self.resource_group_name.as_deref()
}
pub fn component_name(&self) -> ::std::option::Option<&str> {
self.component_name.as_deref()
}
pub fn workload_id(&self) -> ::std::option::Option<&str> {
self.workload_id.as_deref()
}
pub fn account_id(&self) -> ::std::option::Option<&str> {
self.account_id.as_deref()
}
}
impl DescribeWorkloadInput {
pub fn builder() -> crate::operation::describe_workload::builders::DescribeWorkloadInputBuilder {
crate::operation::describe_workload::builders::DescribeWorkloadInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeWorkloadInputBuilder {
pub(crate) resource_group_name: ::std::option::Option<::std::string::String>,
pub(crate) component_name: ::std::option::Option<::std::string::String>,
pub(crate) workload_id: ::std::option::Option<::std::string::String>,
pub(crate) account_id: ::std::option::Option<::std::string::String>,
}
impl DescribeWorkloadInputBuilder {
pub fn resource_group_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.resource_group_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_resource_group_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.resource_group_name = input;
self
}
pub fn get_resource_group_name(&self) -> &::std::option::Option<::std::string::String> {
&self.resource_group_name
}
pub fn component_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.component_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_component_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.component_name = input;
self
}
pub fn get_component_name(&self) -> &::std::option::Option<::std::string::String> {
&self.component_name
}
pub fn workload_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.workload_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_workload_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.workload_id = input;
self
}
pub fn get_workload_id(&self) -> &::std::option::Option<::std::string::String> {
&self.workload_id
}
pub fn account_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.account_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_account_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.account_id = input;
self
}
pub fn get_account_id(&self) -> &::std::option::Option<::std::string::String> {
&self.account_id
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::describe_workload::DescribeWorkloadInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::describe_workload::DescribeWorkloadInput {
resource_group_name: self.resource_group_name,
component_name: self.component_name,
workload_id: self.workload_id,
account_id: self.account_id,
})
}
}