#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DescribeHubContentOutput {
pub hub_content_name: ::std::option::Option<::std::string::String>,
pub hub_content_arn: ::std::option::Option<::std::string::String>,
pub hub_content_version: ::std::option::Option<::std::string::String>,
pub hub_content_type: ::std::option::Option<crate::types::HubContentType>,
pub document_schema_version: ::std::option::Option<::std::string::String>,
pub hub_name: ::std::option::Option<::std::string::String>,
pub hub_arn: ::std::option::Option<::std::string::String>,
pub hub_content_display_name: ::std::option::Option<::std::string::String>,
pub hub_content_description: ::std::option::Option<::std::string::String>,
pub hub_content_markdown: ::std::option::Option<::std::string::String>,
pub hub_content_document: ::std::option::Option<::std::string::String>,
pub sage_maker_public_hub_content_arn: ::std::option::Option<::std::string::String>,
pub reference_min_version: ::std::option::Option<::std::string::String>,
pub support_status: ::std::option::Option<crate::types::HubContentSupportStatus>,
pub hub_content_search_keywords: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub hub_content_dependencies: ::std::option::Option<::std::vec::Vec<crate::types::HubContentDependency>>,
pub hub_content_status: ::std::option::Option<crate::types::HubContentStatus>,
pub failure_reason: ::std::option::Option<::std::string::String>,
pub creation_time: ::std::option::Option<::aws_smithy_types::DateTime>,
pub last_modified_time: ::std::option::Option<::aws_smithy_types::DateTime>,
_request_id: Option<String>,
}
impl DescribeHubContentOutput {
pub fn hub_content_name(&self) -> ::std::option::Option<&str> {
self.hub_content_name.as_deref()
}
pub fn hub_content_arn(&self) -> ::std::option::Option<&str> {
self.hub_content_arn.as_deref()
}
pub fn hub_content_version(&self) -> ::std::option::Option<&str> {
self.hub_content_version.as_deref()
}
pub fn hub_content_type(&self) -> ::std::option::Option<&crate::types::HubContentType> {
self.hub_content_type.as_ref()
}
pub fn document_schema_version(&self) -> ::std::option::Option<&str> {
self.document_schema_version.as_deref()
}
pub fn hub_name(&self) -> ::std::option::Option<&str> {
self.hub_name.as_deref()
}
pub fn hub_arn(&self) -> ::std::option::Option<&str> {
self.hub_arn.as_deref()
}
pub fn hub_content_display_name(&self) -> ::std::option::Option<&str> {
self.hub_content_display_name.as_deref()
}
pub fn hub_content_description(&self) -> ::std::option::Option<&str> {
self.hub_content_description.as_deref()
}
pub fn hub_content_markdown(&self) -> ::std::option::Option<&str> {
self.hub_content_markdown.as_deref()
}
pub fn hub_content_document(&self) -> ::std::option::Option<&str> {
self.hub_content_document.as_deref()
}
pub fn sage_maker_public_hub_content_arn(&self) -> ::std::option::Option<&str> {
self.sage_maker_public_hub_content_arn.as_deref()
}
pub fn reference_min_version(&self) -> ::std::option::Option<&str> {
self.reference_min_version.as_deref()
}
pub fn support_status(&self) -> ::std::option::Option<&crate::types::HubContentSupportStatus> {
self.support_status.as_ref()
}
pub fn hub_content_search_keywords(&self) -> &[::std::string::String] {
self.hub_content_search_keywords.as_deref().unwrap_or_default()
}
pub fn hub_content_dependencies(&self) -> &[crate::types::HubContentDependency] {
self.hub_content_dependencies.as_deref().unwrap_or_default()
}
pub fn hub_content_status(&self) -> ::std::option::Option<&crate::types::HubContentStatus> {
self.hub_content_status.as_ref()
}
pub fn failure_reason(&self) -> ::std::option::Option<&str> {
self.failure_reason.as_deref()
}
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()
}
}
impl ::aws_types::request_id::RequestId for DescribeHubContentOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl DescribeHubContentOutput {
pub fn builder() -> crate::operation::describe_hub_content::builders::DescribeHubContentOutputBuilder {
crate::operation::describe_hub_content::builders::DescribeHubContentOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeHubContentOutputBuilder {
pub(crate) hub_content_name: ::std::option::Option<::std::string::String>,
pub(crate) hub_content_arn: ::std::option::Option<::std::string::String>,
pub(crate) hub_content_version: ::std::option::Option<::std::string::String>,
pub(crate) hub_content_type: ::std::option::Option<crate::types::HubContentType>,
pub(crate) document_schema_version: ::std::option::Option<::std::string::String>,
pub(crate) hub_name: ::std::option::Option<::std::string::String>,
pub(crate) hub_arn: ::std::option::Option<::std::string::String>,
pub(crate) hub_content_display_name: ::std::option::Option<::std::string::String>,
pub(crate) hub_content_description: ::std::option::Option<::std::string::String>,
pub(crate) hub_content_markdown: ::std::option::Option<::std::string::String>,
pub(crate) hub_content_document: ::std::option::Option<::std::string::String>,
pub(crate) sage_maker_public_hub_content_arn: ::std::option::Option<::std::string::String>,
pub(crate) reference_min_version: ::std::option::Option<::std::string::String>,
pub(crate) support_status: ::std::option::Option<crate::types::HubContentSupportStatus>,
pub(crate) hub_content_search_keywords: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub(crate) hub_content_dependencies: ::std::option::Option<::std::vec::Vec<crate::types::HubContentDependency>>,
pub(crate) hub_content_status: ::std::option::Option<crate::types::HubContentStatus>,
pub(crate) failure_reason: ::std::option::Option<::std::string::String>,
pub(crate) creation_time: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) last_modified_time: ::std::option::Option<::aws_smithy_types::DateTime>,
_request_id: Option<String>,
}
impl DescribeHubContentOutputBuilder {
pub fn hub_content_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.hub_content_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_hub_content_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.hub_content_name = input;
self
}
pub fn get_hub_content_name(&self) -> &::std::option::Option<::std::string::String> {
&self.hub_content_name
}
pub fn hub_content_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.hub_content_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_hub_content_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.hub_content_arn = input;
self
}
pub fn get_hub_content_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.hub_content_arn
}
pub fn hub_content_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.hub_content_version = ::std::option::Option::Some(input.into());
self
}
pub fn set_hub_content_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.hub_content_version = input;
self
}
pub fn get_hub_content_version(&self) -> &::std::option::Option<::std::string::String> {
&self.hub_content_version
}
pub fn hub_content_type(mut self, input: crate::types::HubContentType) -> Self {
self.hub_content_type = ::std::option::Option::Some(input);
self
}
pub fn set_hub_content_type(mut self, input: ::std::option::Option<crate::types::HubContentType>) -> Self {
self.hub_content_type = input;
self
}
pub fn get_hub_content_type(&self) -> &::std::option::Option<crate::types::HubContentType> {
&self.hub_content_type
}
pub fn document_schema_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.document_schema_version = ::std::option::Option::Some(input.into());
self
}
pub fn set_document_schema_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.document_schema_version = input;
self
}
pub fn get_document_schema_version(&self) -> &::std::option::Option<::std::string::String> {
&self.document_schema_version
}
pub fn hub_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.hub_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_hub_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.hub_name = input;
self
}
pub fn get_hub_name(&self) -> &::std::option::Option<::std::string::String> {
&self.hub_name
}
pub fn hub_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.hub_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_hub_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.hub_arn = input;
self
}
pub fn get_hub_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.hub_arn
}
pub fn hub_content_display_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.hub_content_display_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_hub_content_display_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.hub_content_display_name = input;
self
}
pub fn get_hub_content_display_name(&self) -> &::std::option::Option<::std::string::String> {
&self.hub_content_display_name
}
pub fn hub_content_description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.hub_content_description = ::std::option::Option::Some(input.into());
self
}
pub fn set_hub_content_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.hub_content_description = input;
self
}
pub fn get_hub_content_description(&self) -> &::std::option::Option<::std::string::String> {
&self.hub_content_description
}
pub fn hub_content_markdown(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.hub_content_markdown = ::std::option::Option::Some(input.into());
self
}
pub fn set_hub_content_markdown(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.hub_content_markdown = input;
self
}
pub fn get_hub_content_markdown(&self) -> &::std::option::Option<::std::string::String> {
&self.hub_content_markdown
}
pub fn hub_content_document(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.hub_content_document = ::std::option::Option::Some(input.into());
self
}
pub fn set_hub_content_document(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.hub_content_document = input;
self
}
pub fn get_hub_content_document(&self) -> &::std::option::Option<::std::string::String> {
&self.hub_content_document
}
pub fn sage_maker_public_hub_content_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.sage_maker_public_hub_content_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_sage_maker_public_hub_content_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.sage_maker_public_hub_content_arn = input;
self
}
pub fn get_sage_maker_public_hub_content_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.sage_maker_public_hub_content_arn
}
pub fn reference_min_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.reference_min_version = ::std::option::Option::Some(input.into());
self
}
pub fn set_reference_min_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.reference_min_version = input;
self
}
pub fn get_reference_min_version(&self) -> &::std::option::Option<::std::string::String> {
&self.reference_min_version
}
pub fn support_status(mut self, input: crate::types::HubContentSupportStatus) -> Self {
self.support_status = ::std::option::Option::Some(input);
self
}
pub fn set_support_status(mut self, input: ::std::option::Option<crate::types::HubContentSupportStatus>) -> Self {
self.support_status = input;
self
}
pub fn get_support_status(&self) -> &::std::option::Option<crate::types::HubContentSupportStatus> {
&self.support_status
}
pub fn hub_content_search_keywords(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.hub_content_search_keywords.unwrap_or_default();
v.push(input.into());
self.hub_content_search_keywords = ::std::option::Option::Some(v);
self
}
pub fn set_hub_content_search_keywords(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.hub_content_search_keywords = input;
self
}
pub fn get_hub_content_search_keywords(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.hub_content_search_keywords
}
pub fn hub_content_dependencies(mut self, input: crate::types::HubContentDependency) -> Self {
let mut v = self.hub_content_dependencies.unwrap_or_default();
v.push(input);
self.hub_content_dependencies = ::std::option::Option::Some(v);
self
}
pub fn set_hub_content_dependencies(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::HubContentDependency>>) -> Self {
self.hub_content_dependencies = input;
self
}
pub fn get_hub_content_dependencies(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::HubContentDependency>> {
&self.hub_content_dependencies
}
pub fn hub_content_status(mut self, input: crate::types::HubContentStatus) -> Self {
self.hub_content_status = ::std::option::Option::Some(input);
self
}
pub fn set_hub_content_status(mut self, input: ::std::option::Option<crate::types::HubContentStatus>) -> Self {
self.hub_content_status = input;
self
}
pub fn get_hub_content_status(&self) -> &::std::option::Option<crate::types::HubContentStatus> {
&self.hub_content_status
}
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 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(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_hub_content::DescribeHubContentOutput {
crate::operation::describe_hub_content::DescribeHubContentOutput {
hub_content_name: self.hub_content_name,
hub_content_arn: self.hub_content_arn,
hub_content_version: self.hub_content_version,
hub_content_type: self.hub_content_type,
document_schema_version: self.document_schema_version,
hub_name: self.hub_name,
hub_arn: self.hub_arn,
hub_content_display_name: self.hub_content_display_name,
hub_content_description: self.hub_content_description,
hub_content_markdown: self.hub_content_markdown,
hub_content_document: self.hub_content_document,
sage_maker_public_hub_content_arn: self.sage_maker_public_hub_content_arn,
reference_min_version: self.reference_min_version,
support_status: self.support_status,
hub_content_search_keywords: self.hub_content_search_keywords,
hub_content_dependencies: self.hub_content_dependencies,
hub_content_status: self.hub_content_status,
failure_reason: self.failure_reason,
creation_time: self.creation_time,
last_modified_time: self.last_modified_time,
_request_id: self._request_id,
}
}
}