#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct CreateWorkflowOutput {
pub client_token: ::std::option::Option<::std::string::String>,
pub workflow_build_version_arn: ::std::option::Option<::std::string::String>,
pub latest_version_references: ::std::option::Option<crate::types::LatestVersionReferences>,
_request_id: Option<String>,
}
impl CreateWorkflowOutput {
pub fn client_token(&self) -> ::std::option::Option<&str> {
self.client_token.as_deref()
}
pub fn workflow_build_version_arn(&self) -> ::std::option::Option<&str> {
self.workflow_build_version_arn.as_deref()
}
pub fn latest_version_references(&self) -> ::std::option::Option<&crate::types::LatestVersionReferences> {
self.latest_version_references.as_ref()
}
}
impl ::aws_types::request_id::RequestId for CreateWorkflowOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl CreateWorkflowOutput {
pub fn builder() -> crate::operation::create_workflow::builders::CreateWorkflowOutputBuilder {
crate::operation::create_workflow::builders::CreateWorkflowOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct CreateWorkflowOutputBuilder {
pub(crate) client_token: ::std::option::Option<::std::string::String>,
pub(crate) workflow_build_version_arn: ::std::option::Option<::std::string::String>,
pub(crate) latest_version_references: ::std::option::Option<crate::types::LatestVersionReferences>,
_request_id: Option<String>,
}
impl CreateWorkflowOutputBuilder {
pub fn client_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.client_token = ::std::option::Option::Some(input.into());
self
}
pub fn set_client_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.client_token = input;
self
}
pub fn get_client_token(&self) -> &::std::option::Option<::std::string::String> {
&self.client_token
}
pub fn workflow_build_version_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.workflow_build_version_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_workflow_build_version_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.workflow_build_version_arn = input;
self
}
pub fn get_workflow_build_version_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.workflow_build_version_arn
}
pub fn latest_version_references(mut self, input: crate::types::LatestVersionReferences) -> Self {
self.latest_version_references = ::std::option::Option::Some(input);
self
}
pub fn set_latest_version_references(mut self, input: ::std::option::Option<crate::types::LatestVersionReferences>) -> Self {
self.latest_version_references = input;
self
}
pub fn get_latest_version_references(&self) -> &::std::option::Option<crate::types::LatestVersionReferences> {
&self.latest_version_references
}
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::create_workflow::CreateWorkflowOutput {
crate::operation::create_workflow::CreateWorkflowOutput {
client_token: self.client_token,
workflow_build_version_arn: self.workflow_build_version_arn,
latest_version_references: self.latest_version_references,
_request_id: self._request_id,
}
}
}