#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DescribeInferenceComponentOutput {
pub inference_component_name: ::std::option::Option<::std::string::String>,
pub inference_component_arn: ::std::option::Option<::std::string::String>,
pub endpoint_name: ::std::option::Option<::std::string::String>,
pub endpoint_arn: ::std::option::Option<::std::string::String>,
pub variant_name: ::std::option::Option<::std::string::String>,
pub failure_reason: ::std::option::Option<::std::string::String>,
pub specification: ::std::option::Option<crate::types::InferenceComponentSpecificationSummary>,
pub runtime_config: ::std::option::Option<crate::types::InferenceComponentRuntimeConfigSummary>,
pub creation_time: ::std::option::Option<::aws_smithy_types::DateTime>,
pub last_modified_time: ::std::option::Option<::aws_smithy_types::DateTime>,
pub inference_component_status: ::std::option::Option<crate::types::InferenceComponentStatus>,
pub last_deployment_config: ::std::option::Option<crate::types::InferenceComponentDeploymentConfig>,
_request_id: Option<String>,
}
impl DescribeInferenceComponentOutput {
pub fn inference_component_name(&self) -> ::std::option::Option<&str> {
self.inference_component_name.as_deref()
}
pub fn inference_component_arn(&self) -> ::std::option::Option<&str> {
self.inference_component_arn.as_deref()
}
pub fn endpoint_name(&self) -> ::std::option::Option<&str> {
self.endpoint_name.as_deref()
}
pub fn endpoint_arn(&self) -> ::std::option::Option<&str> {
self.endpoint_arn.as_deref()
}
pub fn variant_name(&self) -> ::std::option::Option<&str> {
self.variant_name.as_deref()
}
pub fn failure_reason(&self) -> ::std::option::Option<&str> {
self.failure_reason.as_deref()
}
pub fn specification(&self) -> ::std::option::Option<&crate::types::InferenceComponentSpecificationSummary> {
self.specification.as_ref()
}
pub fn runtime_config(&self) -> ::std::option::Option<&crate::types::InferenceComponentRuntimeConfigSummary> {
self.runtime_config.as_ref()
}
pub fn creation_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.creation_time.as_ref()
}
pub fn last_modified_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.last_modified_time.as_ref()
}
pub fn inference_component_status(&self) -> ::std::option::Option<&crate::types::InferenceComponentStatus> {
self.inference_component_status.as_ref()
}
pub fn last_deployment_config(&self) -> ::std::option::Option<&crate::types::InferenceComponentDeploymentConfig> {
self.last_deployment_config.as_ref()
}
}
impl ::aws_types::request_id::RequestId for DescribeInferenceComponentOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl DescribeInferenceComponentOutput {
pub fn builder() -> crate::operation::describe_inference_component::builders::DescribeInferenceComponentOutputBuilder {
crate::operation::describe_inference_component::builders::DescribeInferenceComponentOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeInferenceComponentOutputBuilder {
pub(crate) inference_component_name: ::std::option::Option<::std::string::String>,
pub(crate) inference_component_arn: ::std::option::Option<::std::string::String>,
pub(crate) endpoint_name: ::std::option::Option<::std::string::String>,
pub(crate) endpoint_arn: ::std::option::Option<::std::string::String>,
pub(crate) variant_name: ::std::option::Option<::std::string::String>,
pub(crate) failure_reason: ::std::option::Option<::std::string::String>,
pub(crate) specification: ::std::option::Option<crate::types::InferenceComponentSpecificationSummary>,
pub(crate) runtime_config: ::std::option::Option<crate::types::InferenceComponentRuntimeConfigSummary>,
pub(crate) creation_time: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) last_modified_time: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) inference_component_status: ::std::option::Option<crate::types::InferenceComponentStatus>,
pub(crate) last_deployment_config: ::std::option::Option<crate::types::InferenceComponentDeploymentConfig>,
_request_id: Option<String>,
}
impl DescribeInferenceComponentOutputBuilder {
pub fn inference_component_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inference_component_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_inference_component_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inference_component_name = input;
self
}
pub fn get_inference_component_name(&self) -> &::std::option::Option<::std::string::String> {
&self.inference_component_name
}
pub fn inference_component_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inference_component_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_inference_component_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inference_component_arn = input;
self
}
pub fn get_inference_component_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.inference_component_arn
}
pub fn endpoint_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.endpoint_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_endpoint_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.endpoint_name = input;
self
}
pub fn get_endpoint_name(&self) -> &::std::option::Option<::std::string::String> {
&self.endpoint_name
}
pub fn endpoint_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.endpoint_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_endpoint_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.endpoint_arn = input;
self
}
pub fn get_endpoint_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.endpoint_arn
}
pub fn variant_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.variant_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_variant_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.variant_name = input;
self
}
pub fn get_variant_name(&self) -> &::std::option::Option<::std::string::String> {
&self.variant_name
}
pub fn failure_reason(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.failure_reason = ::std::option::Option::Some(input.into());
self
}
pub fn set_failure_reason(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.failure_reason = input;
self
}
pub fn get_failure_reason(&self) -> &::std::option::Option<::std::string::String> {
&self.failure_reason
}
pub fn specification(mut self, input: crate::types::InferenceComponentSpecificationSummary) -> Self {
self.specification = ::std::option::Option::Some(input);
self
}
pub fn set_specification(mut self, input: ::std::option::Option<crate::types::InferenceComponentSpecificationSummary>) -> Self {
self.specification = input;
self
}
pub fn get_specification(&self) -> &::std::option::Option<crate::types::InferenceComponentSpecificationSummary> {
&self.specification
}
pub fn runtime_config(mut self, input: crate::types::InferenceComponentRuntimeConfigSummary) -> Self {
self.runtime_config = ::std::option::Option::Some(input);
self
}
pub fn set_runtime_config(mut self, input: ::std::option::Option<crate::types::InferenceComponentRuntimeConfigSummary>) -> Self {
self.runtime_config = input;
self
}
pub fn get_runtime_config(&self) -> &::std::option::Option<crate::types::InferenceComponentRuntimeConfigSummary> {
&self.runtime_config
}
pub fn creation_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.creation_time = ::std::option::Option::Some(input);
self
}
pub fn set_creation_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.creation_time = input;
self
}
pub fn get_creation_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.creation_time
}
pub fn last_modified_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.last_modified_time = ::std::option::Option::Some(input);
self
}
pub fn set_last_modified_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.last_modified_time = input;
self
}
pub fn get_last_modified_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.last_modified_time
}
pub fn inference_component_status(mut self, input: crate::types::InferenceComponentStatus) -> Self {
self.inference_component_status = ::std::option::Option::Some(input);
self
}
pub fn set_inference_component_status(mut self, input: ::std::option::Option<crate::types::InferenceComponentStatus>) -> Self {
self.inference_component_status = input;
self
}
pub fn get_inference_component_status(&self) -> &::std::option::Option<crate::types::InferenceComponentStatus> {
&self.inference_component_status
}
pub fn last_deployment_config(mut self, input: crate::types::InferenceComponentDeploymentConfig) -> Self {
self.last_deployment_config = ::std::option::Option::Some(input);
self
}
pub fn set_last_deployment_config(mut self, input: ::std::option::Option<crate::types::InferenceComponentDeploymentConfig>) -> Self {
self.last_deployment_config = input;
self
}
pub fn get_last_deployment_config(&self) -> &::std::option::Option<crate::types::InferenceComponentDeploymentConfig> {
&self.last_deployment_config
}
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_inference_component::DescribeInferenceComponentOutput {
crate::operation::describe_inference_component::DescribeInferenceComponentOutput {
inference_component_name: self.inference_component_name,
inference_component_arn: self.inference_component_arn,
endpoint_name: self.endpoint_name,
endpoint_arn: self.endpoint_arn,
variant_name: self.variant_name,
failure_reason: self.failure_reason,
specification: self.specification,
runtime_config: self.runtime_config,
creation_time: self.creation_time,
last_modified_time: self.last_modified_time,
inference_component_status: self.inference_component_status,
last_deployment_config: self.last_deployment_config,
_request_id: self._request_id,
}
}
}