#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DescribeWorkloadOutput {
pub workload_id: ::std::option::Option<::std::string::String>,
pub workload_remarks: ::std::option::Option<::std::string::String>,
pub workload_configuration: ::std::option::Option<crate::types::WorkloadConfiguration>,
_request_id: Option<String>,
}
impl DescribeWorkloadOutput {
pub fn workload_id(&self) -> ::std::option::Option<&str> {
self.workload_id.as_deref()
}
pub fn workload_remarks(&self) -> ::std::option::Option<&str> {
self.workload_remarks.as_deref()
}
pub fn workload_configuration(&self) -> ::std::option::Option<&crate::types::WorkloadConfiguration> {
self.workload_configuration.as_ref()
}
}
impl ::aws_types::request_id::RequestId for DescribeWorkloadOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl DescribeWorkloadOutput {
pub fn builder() -> crate::operation::describe_workload::builders::DescribeWorkloadOutputBuilder {
crate::operation::describe_workload::builders::DescribeWorkloadOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeWorkloadOutputBuilder {
pub(crate) workload_id: ::std::option::Option<::std::string::String>,
pub(crate) workload_remarks: ::std::option::Option<::std::string::String>,
pub(crate) workload_configuration: ::std::option::Option<crate::types::WorkloadConfiguration>,
_request_id: Option<String>,
}
impl DescribeWorkloadOutputBuilder {
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 workload_remarks(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.workload_remarks = ::std::option::Option::Some(input.into());
self
}
pub fn set_workload_remarks(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.workload_remarks = input;
self
}
pub fn get_workload_remarks(&self) -> &::std::option::Option<::std::string::String> {
&self.workload_remarks
}
pub fn workload_configuration(mut self, input: crate::types::WorkloadConfiguration) -> Self {
self.workload_configuration = ::std::option::Option::Some(input);
self
}
pub fn set_workload_configuration(mut self, input: ::std::option::Option<crate::types::WorkloadConfiguration>) -> Self {
self.workload_configuration = input;
self
}
pub fn get_workload_configuration(&self) -> &::std::option::Option<crate::types::WorkloadConfiguration> {
&self.workload_configuration
}
pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
self._request_id = Some(request_id.into());
self
}
pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
self._request_id = request_id;
self
}
pub fn build(self) -> crate::operation::describe_workload::DescribeWorkloadOutput {
crate::operation::describe_workload::DescribeWorkloadOutput {
workload_id: self.workload_id,
workload_remarks: self.workload_remarks,
workload_configuration: self.workload_configuration,
_request_id: self._request_id,
}
}
}