-
Notifications
You must be signed in to change notification settings - Fork 242
/
_flow_template_description.rs
94 lines (92 loc) · 4.71 KB
/
_flow_template_description.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// <p>An object that contains a workflow's definition and summary information.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct FlowTemplateDescription {
/// <p>An object that contains summary information about a workflow.</p>
pub summary: ::std::option::Option<crate::types::FlowTemplateSummary>,
/// <p>A workflow's definition document.</p>
pub definition: ::std::option::Option<crate::types::DefinitionDocument>,
/// <p>The version of the user's namespace against which the workflow was validated. Use this value in your system instance.</p>
pub validated_namespace_version: ::std::option::Option<i64>,
}
impl FlowTemplateDescription {
/// <p>An object that contains summary information about a workflow.</p>
pub fn summary(&self) -> ::std::option::Option<&crate::types::FlowTemplateSummary> {
self.summary.as_ref()
}
/// <p>A workflow's definition document.</p>
pub fn definition(&self) -> ::std::option::Option<&crate::types::DefinitionDocument> {
self.definition.as_ref()
}
/// <p>The version of the user's namespace against which the workflow was validated. Use this value in your system instance.</p>
pub fn validated_namespace_version(&self) -> ::std::option::Option<i64> {
self.validated_namespace_version
}
}
impl FlowTemplateDescription {
/// Creates a new builder-style object to manufacture [`FlowTemplateDescription`](crate::types::FlowTemplateDescription).
pub fn builder() -> crate::types::builders::FlowTemplateDescriptionBuilder {
crate::types::builders::FlowTemplateDescriptionBuilder::default()
}
}
/// A builder for [`FlowTemplateDescription`](crate::types::FlowTemplateDescription).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct FlowTemplateDescriptionBuilder {
pub(crate) summary: ::std::option::Option<crate::types::FlowTemplateSummary>,
pub(crate) definition: ::std::option::Option<crate::types::DefinitionDocument>,
pub(crate) validated_namespace_version: ::std::option::Option<i64>,
}
impl FlowTemplateDescriptionBuilder {
/// <p>An object that contains summary information about a workflow.</p>
pub fn summary(mut self, input: crate::types::FlowTemplateSummary) -> Self {
self.summary = ::std::option::Option::Some(input);
self
}
/// <p>An object that contains summary information about a workflow.</p>
pub fn set_summary(mut self, input: ::std::option::Option<crate::types::FlowTemplateSummary>) -> Self {
self.summary = input;
self
}
/// <p>An object that contains summary information about a workflow.</p>
pub fn get_summary(&self) -> &::std::option::Option<crate::types::FlowTemplateSummary> {
&self.summary
}
/// <p>A workflow's definition document.</p>
pub fn definition(mut self, input: crate::types::DefinitionDocument) -> Self {
self.definition = ::std::option::Option::Some(input);
self
}
/// <p>A workflow's definition document.</p>
pub fn set_definition(mut self, input: ::std::option::Option<crate::types::DefinitionDocument>) -> Self {
self.definition = input;
self
}
/// <p>A workflow's definition document.</p>
pub fn get_definition(&self) -> &::std::option::Option<crate::types::DefinitionDocument> {
&self.definition
}
/// <p>The version of the user's namespace against which the workflow was validated. Use this value in your system instance.</p>
pub fn validated_namespace_version(mut self, input: i64) -> Self {
self.validated_namespace_version = ::std::option::Option::Some(input);
self
}
/// <p>The version of the user's namespace against which the workflow was validated. Use this value in your system instance.</p>
pub fn set_validated_namespace_version(mut self, input: ::std::option::Option<i64>) -> Self {
self.validated_namespace_version = input;
self
}
/// <p>The version of the user's namespace against which the workflow was validated. Use this value in your system instance.</p>
pub fn get_validated_namespace_version(&self) -> &::std::option::Option<i64> {
&self.validated_namespace_version
}
/// Consumes the builder and constructs a [`FlowTemplateDescription`](crate::types::FlowTemplateDescription).
pub fn build(self) -> crate::types::FlowTemplateDescription {
crate::types::FlowTemplateDescription {
summary: self.summary,
definition: self.definition,
validated_namespace_version: self.validated_namespace_version,
}
}
}