#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DefinitionDocument {
#[doc(hidden)]
pub language: std::option::Option<crate::model::DefinitionLanguage>,
#[doc(hidden)]
pub text: std::option::Option<std::string::String>,
}
impl DefinitionDocument {
pub fn language(&self) -> std::option::Option<&crate::model::DefinitionLanguage> {
self.language.as_ref()
}
pub fn text(&self) -> std::option::Option<&str> {
self.text.as_deref()
}
}
pub mod definition_document {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) language: std::option::Option<crate::model::DefinitionLanguage>,
pub(crate) text: std::option::Option<std::string::String>,
}
impl Builder {
pub fn language(mut self, input: crate::model::DefinitionLanguage) -> Self {
self.language = Some(input);
self
}
pub fn set_language(
mut self,
input: std::option::Option<crate::model::DefinitionLanguage>,
) -> Self {
self.language = input;
self
}
pub fn text(mut self, input: impl Into<std::string::String>) -> Self {
self.text = Some(input.into());
self
}
pub fn set_text(mut self, input: std::option::Option<std::string::String>) -> Self {
self.text = input;
self
}
pub fn build(self) -> crate::model::DefinitionDocument {
crate::model::DefinitionDocument {
language: self.language,
text: self.text,
}
}
}
}
impl DefinitionDocument {
pub fn builder() -> crate::model::definition_document::Builder {
crate::model::definition_document::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum DefinitionLanguage {
#[allow(missing_docs)] Graphql,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for DefinitionLanguage {
fn from(s: &str) -> Self {
match s {
"GRAPHQL" => DefinitionLanguage::Graphql,
other => {
DefinitionLanguage::Unknown(crate::types::UnknownVariantValue(other.to_owned()))
}
}
}
}
impl std::str::FromStr for DefinitionLanguage {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(DefinitionLanguage::from(s))
}
}
impl DefinitionLanguage {
pub fn as_str(&self) -> &str {
match self {
DefinitionLanguage::Graphql => "GRAPHQL",
DefinitionLanguage::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["GRAPHQL"]
}
}
impl AsRef<str> for DefinitionLanguage {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct SystemTemplateSummary {
#[doc(hidden)]
pub id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub revision_number: std::option::Option<i64>,
#[doc(hidden)]
pub created_at: std::option::Option<aws_smithy_types::DateTime>,
}
impl SystemTemplateSummary {
pub fn id(&self) -> std::option::Option<&str> {
self.id.as_deref()
}
pub fn arn(&self) -> std::option::Option<&str> {
self.arn.as_deref()
}
pub fn revision_number(&self) -> std::option::Option<i64> {
self.revision_number
}
pub fn created_at(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.created_at.as_ref()
}
}
pub mod system_template_summary {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) id: std::option::Option<std::string::String>,
pub(crate) arn: std::option::Option<std::string::String>,
pub(crate) revision_number: std::option::Option<i64>,
pub(crate) created_at: std::option::Option<aws_smithy_types::DateTime>,
}
impl Builder {
pub fn id(mut self, input: impl Into<std::string::String>) -> Self {
self.id = Some(input.into());
self
}
pub fn set_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.id = input;
self
}
pub fn arn(mut self, input: impl Into<std::string::String>) -> Self {
self.arn = Some(input.into());
self
}
pub fn set_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.arn = input;
self
}
pub fn revision_number(mut self, input: i64) -> Self {
self.revision_number = Some(input);
self
}
pub fn set_revision_number(mut self, input: std::option::Option<i64>) -> Self {
self.revision_number = input;
self
}
pub fn created_at(mut self, input: aws_smithy_types::DateTime) -> Self {
self.created_at = Some(input);
self
}
pub fn set_created_at(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.created_at = input;
self
}
pub fn build(self) -> crate::model::SystemTemplateSummary {
crate::model::SystemTemplateSummary {
id: self.id,
arn: self.arn,
revision_number: self.revision_number,
created_at: self.created_at,
}
}
}
}
impl SystemTemplateSummary {
pub fn builder() -> crate::model::system_template_summary::Builder {
crate::model::system_template_summary::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct FlowTemplateSummary {
#[doc(hidden)]
pub id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub revision_number: std::option::Option<i64>,
#[doc(hidden)]
pub created_at: std::option::Option<aws_smithy_types::DateTime>,
}
impl FlowTemplateSummary {
pub fn id(&self) -> std::option::Option<&str> {
self.id.as_deref()
}
pub fn arn(&self) -> std::option::Option<&str> {
self.arn.as_deref()
}
pub fn revision_number(&self) -> std::option::Option<i64> {
self.revision_number
}
pub fn created_at(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.created_at.as_ref()
}
}
pub mod flow_template_summary {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) id: std::option::Option<std::string::String>,
pub(crate) arn: std::option::Option<std::string::String>,
pub(crate) revision_number: std::option::Option<i64>,
pub(crate) created_at: std::option::Option<aws_smithy_types::DateTime>,
}
impl Builder {
pub fn id(mut self, input: impl Into<std::string::String>) -> Self {
self.id = Some(input.into());
self
}
pub fn set_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.id = input;
self
}
pub fn arn(mut self, input: impl Into<std::string::String>) -> Self {
self.arn = Some(input.into());
self
}
pub fn set_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.arn = input;
self
}
pub fn revision_number(mut self, input: i64) -> Self {
self.revision_number = Some(input);
self
}
pub fn set_revision_number(mut self, input: std::option::Option<i64>) -> Self {
self.revision_number = input;
self
}
pub fn created_at(mut self, input: aws_smithy_types::DateTime) -> Self {
self.created_at = Some(input);
self
}
pub fn set_created_at(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.created_at = input;
self
}
pub fn build(self) -> crate::model::FlowTemplateSummary {
crate::model::FlowTemplateSummary {
id: self.id,
arn: self.arn,
revision_number: self.revision_number,
created_at: self.created_at,
}
}
}
}
impl FlowTemplateSummary {
pub fn builder() -> crate::model::flow_template_summary::Builder {
crate::model::flow_template_summary::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct SystemInstanceSummary {
#[doc(hidden)]
pub id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub status: std::option::Option<crate::model::SystemInstanceDeploymentStatus>,
#[doc(hidden)]
pub target: std::option::Option<crate::model::DeploymentTarget>,
#[doc(hidden)]
pub greengrass_group_name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub created_at: std::option::Option<aws_smithy_types::DateTime>,
#[doc(hidden)]
pub updated_at: std::option::Option<aws_smithy_types::DateTime>,
#[doc(hidden)]
pub greengrass_group_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub greengrass_group_version_id: std::option::Option<std::string::String>,
}
impl SystemInstanceSummary {
pub fn id(&self) -> std::option::Option<&str> {
self.id.as_deref()
}
pub fn arn(&self) -> std::option::Option<&str> {
self.arn.as_deref()
}
pub fn status(&self) -> std::option::Option<&crate::model::SystemInstanceDeploymentStatus> {
self.status.as_ref()
}
pub fn target(&self) -> std::option::Option<&crate::model::DeploymentTarget> {
self.target.as_ref()
}
pub fn greengrass_group_name(&self) -> std::option::Option<&str> {
self.greengrass_group_name.as_deref()
}
pub fn created_at(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.created_at.as_ref()
}
pub fn updated_at(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.updated_at.as_ref()
}
pub fn greengrass_group_id(&self) -> std::option::Option<&str> {
self.greengrass_group_id.as_deref()
}
pub fn greengrass_group_version_id(&self) -> std::option::Option<&str> {
self.greengrass_group_version_id.as_deref()
}
}
pub mod system_instance_summary {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) id: std::option::Option<std::string::String>,
pub(crate) arn: std::option::Option<std::string::String>,
pub(crate) status: std::option::Option<crate::model::SystemInstanceDeploymentStatus>,
pub(crate) target: std::option::Option<crate::model::DeploymentTarget>,
pub(crate) greengrass_group_name: std::option::Option<std::string::String>,
pub(crate) created_at: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) updated_at: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) greengrass_group_id: std::option::Option<std::string::String>,
pub(crate) greengrass_group_version_id: std::option::Option<std::string::String>,
}
impl Builder {
pub fn id(mut self, input: impl Into<std::string::String>) -> Self {
self.id = Some(input.into());
self
}
pub fn set_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.id = input;
self
}
pub fn arn(mut self, input: impl Into<std::string::String>) -> Self {
self.arn = Some(input.into());
self
}
pub fn set_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.arn = input;
self
}
pub fn status(mut self, input: crate::model::SystemInstanceDeploymentStatus) -> Self {
self.status = Some(input);
self
}
pub fn set_status(
mut self,
input: std::option::Option<crate::model::SystemInstanceDeploymentStatus>,
) -> Self {
self.status = input;
self
}
pub fn target(mut self, input: crate::model::DeploymentTarget) -> Self {
self.target = Some(input);
self
}
pub fn set_target(
mut self,
input: std::option::Option<crate::model::DeploymentTarget>,
) -> Self {
self.target = input;
self
}
pub fn greengrass_group_name(mut self, input: impl Into<std::string::String>) -> Self {
self.greengrass_group_name = Some(input.into());
self
}
pub fn set_greengrass_group_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.greengrass_group_name = input;
self
}
pub fn created_at(mut self, input: aws_smithy_types::DateTime) -> Self {
self.created_at = Some(input);
self
}
pub fn set_created_at(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.created_at = input;
self
}
pub fn updated_at(mut self, input: aws_smithy_types::DateTime) -> Self {
self.updated_at = Some(input);
self
}
pub fn set_updated_at(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.updated_at = input;
self
}
pub fn greengrass_group_id(mut self, input: impl Into<std::string::String>) -> Self {
self.greengrass_group_id = Some(input.into());
self
}
pub fn set_greengrass_group_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.greengrass_group_id = input;
self
}
pub fn greengrass_group_version_id(
mut self,
input: impl Into<std::string::String>,
) -> Self {
self.greengrass_group_version_id = Some(input.into());
self
}
pub fn set_greengrass_group_version_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.greengrass_group_version_id = input;
self
}
pub fn build(self) -> crate::model::SystemInstanceSummary {
crate::model::SystemInstanceSummary {
id: self.id,
arn: self.arn,
status: self.status,
target: self.target,
greengrass_group_name: self.greengrass_group_name,
created_at: self.created_at,
updated_at: self.updated_at,
greengrass_group_id: self.greengrass_group_id,
greengrass_group_version_id: self.greengrass_group_version_id,
}
}
}
}
impl SystemInstanceSummary {
pub fn builder() -> crate::model::system_instance_summary::Builder {
crate::model::system_instance_summary::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum DeploymentTarget {
#[allow(missing_docs)] Cloud,
#[allow(missing_docs)] Greengrass,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for DeploymentTarget {
fn from(s: &str) -> Self {
match s {
"CLOUD" => DeploymentTarget::Cloud,
"GREENGRASS" => DeploymentTarget::Greengrass,
other => DeploymentTarget::Unknown(crate::types::UnknownVariantValue(other.to_owned())),
}
}
}
impl std::str::FromStr for DeploymentTarget {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(DeploymentTarget::from(s))
}
}
impl DeploymentTarget {
pub fn as_str(&self) -> &str {
match self {
DeploymentTarget::Cloud => "CLOUD",
DeploymentTarget::Greengrass => "GREENGRASS",
DeploymentTarget::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["CLOUD", "GREENGRASS"]
}
}
impl AsRef<str> for DeploymentTarget {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum SystemInstanceDeploymentStatus {
#[allow(missing_docs)] Bootstrap,
#[allow(missing_docs)] DeletedInTarget,
#[allow(missing_docs)] DeployedInTarget,
#[allow(missing_docs)] DeployInProgress,
#[allow(missing_docs)] Failed,
#[allow(missing_docs)] NotDeployed,
#[allow(missing_docs)] PendingDelete,
#[allow(missing_docs)] UndeployInProgress,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for SystemInstanceDeploymentStatus {
fn from(s: &str) -> Self {
match s {
"BOOTSTRAP" => SystemInstanceDeploymentStatus::Bootstrap,
"DELETED_IN_TARGET" => SystemInstanceDeploymentStatus::DeletedInTarget,
"DEPLOYED_IN_TARGET" => SystemInstanceDeploymentStatus::DeployedInTarget,
"DEPLOY_IN_PROGRESS" => SystemInstanceDeploymentStatus::DeployInProgress,
"FAILED" => SystemInstanceDeploymentStatus::Failed,
"NOT_DEPLOYED" => SystemInstanceDeploymentStatus::NotDeployed,
"PENDING_DELETE" => SystemInstanceDeploymentStatus::PendingDelete,
"UNDEPLOY_IN_PROGRESS" => SystemInstanceDeploymentStatus::UndeployInProgress,
other => SystemInstanceDeploymentStatus::Unknown(crate::types::UnknownVariantValue(
other.to_owned(),
)),
}
}
}
impl std::str::FromStr for SystemInstanceDeploymentStatus {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(SystemInstanceDeploymentStatus::from(s))
}
}
impl SystemInstanceDeploymentStatus {
pub fn as_str(&self) -> &str {
match self {
SystemInstanceDeploymentStatus::Bootstrap => "BOOTSTRAP",
SystemInstanceDeploymentStatus::DeletedInTarget => "DELETED_IN_TARGET",
SystemInstanceDeploymentStatus::DeployedInTarget => "DEPLOYED_IN_TARGET",
SystemInstanceDeploymentStatus::DeployInProgress => "DEPLOY_IN_PROGRESS",
SystemInstanceDeploymentStatus::Failed => "FAILED",
SystemInstanceDeploymentStatus::NotDeployed => "NOT_DEPLOYED",
SystemInstanceDeploymentStatus::PendingDelete => "PENDING_DELETE",
SystemInstanceDeploymentStatus::UndeployInProgress => "UNDEPLOY_IN_PROGRESS",
SystemInstanceDeploymentStatus::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&[
"BOOTSTRAP",
"DELETED_IN_TARGET",
"DEPLOYED_IN_TARGET",
"DEPLOY_IN_PROGRESS",
"FAILED",
"NOT_DEPLOYED",
"PENDING_DELETE",
"UNDEPLOY_IN_PROGRESS",
]
}
}
impl AsRef<str> for SystemInstanceDeploymentStatus {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Tag {
#[doc(hidden)]
pub key: std::option::Option<std::string::String>,
#[doc(hidden)]
pub value: std::option::Option<std::string::String>,
}
impl Tag {
pub fn key(&self) -> std::option::Option<&str> {
self.key.as_deref()
}
pub fn value(&self) -> std::option::Option<&str> {
self.value.as_deref()
}
}
pub mod tag {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) key: std::option::Option<std::string::String>,
pub(crate) value: std::option::Option<std::string::String>,
}
impl Builder {
pub fn key(mut self, input: impl Into<std::string::String>) -> Self {
self.key = Some(input.into());
self
}
pub fn set_key(mut self, input: std::option::Option<std::string::String>) -> Self {
self.key = input;
self
}
pub fn value(mut self, input: impl Into<std::string::String>) -> Self {
self.value = Some(input.into());
self
}
pub fn set_value(mut self, input: std::option::Option<std::string::String>) -> Self {
self.value = input;
self
}
pub fn build(self) -> crate::model::Tag {
crate::model::Tag {
key: self.key,
value: self.value,
}
}
}
}
impl Tag {
pub fn builder() -> crate::model::tag::Builder {
crate::model::tag::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Thing {
#[doc(hidden)]
pub thing_arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub thing_name: std::option::Option<std::string::String>,
}
impl Thing {
pub fn thing_arn(&self) -> std::option::Option<&str> {
self.thing_arn.as_deref()
}
pub fn thing_name(&self) -> std::option::Option<&str> {
self.thing_name.as_deref()
}
}
pub mod thing {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) thing_arn: std::option::Option<std::string::String>,
pub(crate) thing_name: std::option::Option<std::string::String>,
}
impl Builder {
pub fn thing_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.thing_arn = Some(input.into());
self
}
pub fn set_thing_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.thing_arn = input;
self
}
pub fn thing_name(mut self, input: impl Into<std::string::String>) -> Self {
self.thing_name = Some(input.into());
self
}
pub fn set_thing_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.thing_name = input;
self
}
pub fn build(self) -> crate::model::Thing {
crate::model::Thing {
thing_arn: self.thing_arn,
thing_name: self.thing_name,
}
}
}
}
impl Thing {
pub fn builder() -> crate::model::thing::Builder {
crate::model::thing::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct SystemTemplateFilter {
#[doc(hidden)]
pub name: std::option::Option<crate::model::SystemTemplateFilterName>,
#[doc(hidden)]
pub value: std::option::Option<std::vec::Vec<std::string::String>>,
}
impl SystemTemplateFilter {
pub fn name(&self) -> std::option::Option<&crate::model::SystemTemplateFilterName> {
self.name.as_ref()
}
pub fn value(&self) -> std::option::Option<&[std::string::String]> {
self.value.as_deref()
}
}
pub mod system_template_filter {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) name: std::option::Option<crate::model::SystemTemplateFilterName>,
pub(crate) value: std::option::Option<std::vec::Vec<std::string::String>>,
}
impl Builder {
pub fn name(mut self, input: crate::model::SystemTemplateFilterName) -> Self {
self.name = Some(input);
self
}
pub fn set_name(
mut self,
input: std::option::Option<crate::model::SystemTemplateFilterName>,
) -> Self {
self.name = input;
self
}
pub fn value(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.value.unwrap_or_default();
v.push(input.into());
self.value = Some(v);
self
}
pub fn set_value(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.value = input;
self
}
pub fn build(self) -> crate::model::SystemTemplateFilter {
crate::model::SystemTemplateFilter {
name: self.name,
value: self.value,
}
}
}
}
impl SystemTemplateFilter {
pub fn builder() -> crate::model::system_template_filter::Builder {
crate::model::system_template_filter::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum SystemTemplateFilterName {
#[allow(missing_docs)] FlowTemplateId,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for SystemTemplateFilterName {
fn from(s: &str) -> Self {
match s {
"FLOW_TEMPLATE_ID" => SystemTemplateFilterName::FlowTemplateId,
other => SystemTemplateFilterName::Unknown(crate::types::UnknownVariantValue(
other.to_owned(),
)),
}
}
}
impl std::str::FromStr for SystemTemplateFilterName {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(SystemTemplateFilterName::from(s))
}
}
impl SystemTemplateFilterName {
pub fn as_str(&self) -> &str {
match self {
SystemTemplateFilterName::FlowTemplateId => "FLOW_TEMPLATE_ID",
SystemTemplateFilterName::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["FLOW_TEMPLATE_ID"]
}
}
impl AsRef<str> for SystemTemplateFilterName {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct SystemInstanceFilter {
#[doc(hidden)]
pub name: std::option::Option<crate::model::SystemInstanceFilterName>,
#[doc(hidden)]
pub value: std::option::Option<std::vec::Vec<std::string::String>>,
}
impl SystemInstanceFilter {
pub fn name(&self) -> std::option::Option<&crate::model::SystemInstanceFilterName> {
self.name.as_ref()
}
pub fn value(&self) -> std::option::Option<&[std::string::String]> {
self.value.as_deref()
}
}
pub mod system_instance_filter {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) name: std::option::Option<crate::model::SystemInstanceFilterName>,
pub(crate) value: std::option::Option<std::vec::Vec<std::string::String>>,
}
impl Builder {
pub fn name(mut self, input: crate::model::SystemInstanceFilterName) -> Self {
self.name = Some(input);
self
}
pub fn set_name(
mut self,
input: std::option::Option<crate::model::SystemInstanceFilterName>,
) -> Self {
self.name = input;
self
}
pub fn value(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.value.unwrap_or_default();
v.push(input.into());
self.value = Some(v);
self
}
pub fn set_value(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.value = input;
self
}
pub fn build(self) -> crate::model::SystemInstanceFilter {
crate::model::SystemInstanceFilter {
name: self.name,
value: self.value,
}
}
}
}
impl SystemInstanceFilter {
pub fn builder() -> crate::model::system_instance_filter::Builder {
crate::model::system_instance_filter::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum SystemInstanceFilterName {
#[allow(missing_docs)] GreengrassGroupName,
#[allow(missing_docs)] Status,
#[allow(missing_docs)] SystemTemplateId,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for SystemInstanceFilterName {
fn from(s: &str) -> Self {
match s {
"GREENGRASS_GROUP_NAME" => SystemInstanceFilterName::GreengrassGroupName,
"STATUS" => SystemInstanceFilterName::Status,
"SYSTEM_TEMPLATE_ID" => SystemInstanceFilterName::SystemTemplateId,
other => SystemInstanceFilterName::Unknown(crate::types::UnknownVariantValue(
other.to_owned(),
)),
}
}
}
impl std::str::FromStr for SystemInstanceFilterName {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(SystemInstanceFilterName::from(s))
}
}
impl SystemInstanceFilterName {
pub fn as_str(&self) -> &str {
match self {
SystemInstanceFilterName::GreengrassGroupName => "GREENGRASS_GROUP_NAME",
SystemInstanceFilterName::Status => "STATUS",
SystemInstanceFilterName::SystemTemplateId => "SYSTEM_TEMPLATE_ID",
SystemInstanceFilterName::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["GREENGRASS_GROUP_NAME", "STATUS", "SYSTEM_TEMPLATE_ID"]
}
}
impl AsRef<str> for SystemInstanceFilterName {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct FlowTemplateFilter {
#[doc(hidden)]
pub name: std::option::Option<crate::model::FlowTemplateFilterName>,
#[doc(hidden)]
pub value: std::option::Option<std::vec::Vec<std::string::String>>,
}
impl FlowTemplateFilter {
pub fn name(&self) -> std::option::Option<&crate::model::FlowTemplateFilterName> {
self.name.as_ref()
}
pub fn value(&self) -> std::option::Option<&[std::string::String]> {
self.value.as_deref()
}
}
pub mod flow_template_filter {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) name: std::option::Option<crate::model::FlowTemplateFilterName>,
pub(crate) value: std::option::Option<std::vec::Vec<std::string::String>>,
}
impl Builder {
pub fn name(mut self, input: crate::model::FlowTemplateFilterName) -> Self {
self.name = Some(input);
self
}
pub fn set_name(
mut self,
input: std::option::Option<crate::model::FlowTemplateFilterName>,
) -> Self {
self.name = input;
self
}
pub fn value(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.value.unwrap_or_default();
v.push(input.into());
self.value = Some(v);
self
}
pub fn set_value(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.value = input;
self
}
pub fn build(self) -> crate::model::FlowTemplateFilter {
crate::model::FlowTemplateFilter {
name: self.name,
value: self.value,
}
}
}
}
impl FlowTemplateFilter {
pub fn builder() -> crate::model::flow_template_filter::Builder {
crate::model::flow_template_filter::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum FlowTemplateFilterName {
#[allow(missing_docs)] DeviceModelId,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for FlowTemplateFilterName {
fn from(s: &str) -> Self {
match s {
"DEVICE_MODEL_ID" => FlowTemplateFilterName::DeviceModelId,
other => {
FlowTemplateFilterName::Unknown(crate::types::UnknownVariantValue(other.to_owned()))
}
}
}
}
impl std::str::FromStr for FlowTemplateFilterName {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(FlowTemplateFilterName::from(s))
}
}
impl FlowTemplateFilterName {
pub fn as_str(&self) -> &str {
match self {
FlowTemplateFilterName::DeviceModelId => "DEVICE_MODEL_ID",
FlowTemplateFilterName::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["DEVICE_MODEL_ID"]
}
}
impl AsRef<str> for FlowTemplateFilterName {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct FlowExecutionSummary {
#[doc(hidden)]
pub flow_execution_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub status: std::option::Option<crate::model::FlowExecutionStatus>,
#[doc(hidden)]
pub system_instance_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub flow_template_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub created_at: std::option::Option<aws_smithy_types::DateTime>,
#[doc(hidden)]
pub updated_at: std::option::Option<aws_smithy_types::DateTime>,
}
impl FlowExecutionSummary {
pub fn flow_execution_id(&self) -> std::option::Option<&str> {
self.flow_execution_id.as_deref()
}
pub fn status(&self) -> std::option::Option<&crate::model::FlowExecutionStatus> {
self.status.as_ref()
}
pub fn system_instance_id(&self) -> std::option::Option<&str> {
self.system_instance_id.as_deref()
}
pub fn flow_template_id(&self) -> std::option::Option<&str> {
self.flow_template_id.as_deref()
}
pub fn created_at(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.created_at.as_ref()
}
pub fn updated_at(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.updated_at.as_ref()
}
}
pub mod flow_execution_summary {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) flow_execution_id: std::option::Option<std::string::String>,
pub(crate) status: std::option::Option<crate::model::FlowExecutionStatus>,
pub(crate) system_instance_id: std::option::Option<std::string::String>,
pub(crate) flow_template_id: std::option::Option<std::string::String>,
pub(crate) created_at: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) updated_at: std::option::Option<aws_smithy_types::DateTime>,
}
impl Builder {
pub fn flow_execution_id(mut self, input: impl Into<std::string::String>) -> Self {
self.flow_execution_id = Some(input.into());
self
}
pub fn set_flow_execution_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.flow_execution_id = input;
self
}
pub fn status(mut self, input: crate::model::FlowExecutionStatus) -> Self {
self.status = Some(input);
self
}
pub fn set_status(
mut self,
input: std::option::Option<crate::model::FlowExecutionStatus>,
) -> Self {
self.status = input;
self
}
pub fn system_instance_id(mut self, input: impl Into<std::string::String>) -> Self {
self.system_instance_id = Some(input.into());
self
}
pub fn set_system_instance_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.system_instance_id = input;
self
}
pub fn flow_template_id(mut self, input: impl Into<std::string::String>) -> Self {
self.flow_template_id = Some(input.into());
self
}
pub fn set_flow_template_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.flow_template_id = input;
self
}
pub fn created_at(mut self, input: aws_smithy_types::DateTime) -> Self {
self.created_at = Some(input);
self
}
pub fn set_created_at(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.created_at = input;
self
}
pub fn updated_at(mut self, input: aws_smithy_types::DateTime) -> Self {
self.updated_at = Some(input);
self
}
pub fn set_updated_at(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.updated_at = input;
self
}
pub fn build(self) -> crate::model::FlowExecutionSummary {
crate::model::FlowExecutionSummary {
flow_execution_id: self.flow_execution_id,
status: self.status,
system_instance_id: self.system_instance_id,
flow_template_id: self.flow_template_id,
created_at: self.created_at,
updated_at: self.updated_at,
}
}
}
}
impl FlowExecutionSummary {
pub fn builder() -> crate::model::flow_execution_summary::Builder {
crate::model::flow_execution_summary::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum FlowExecutionStatus {
#[allow(missing_docs)] Aborted,
#[allow(missing_docs)] Failed,
#[allow(missing_docs)] Running,
#[allow(missing_docs)] Succeeded,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for FlowExecutionStatus {
fn from(s: &str) -> Self {
match s {
"ABORTED" => FlowExecutionStatus::Aborted,
"FAILED" => FlowExecutionStatus::Failed,
"RUNNING" => FlowExecutionStatus::Running,
"SUCCEEDED" => FlowExecutionStatus::Succeeded,
other => {
FlowExecutionStatus::Unknown(crate::types::UnknownVariantValue(other.to_owned()))
}
}
}
}
impl std::str::FromStr for FlowExecutionStatus {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(FlowExecutionStatus::from(s))
}
}
impl FlowExecutionStatus {
pub fn as_str(&self) -> &str {
match self {
FlowExecutionStatus::Aborted => "ABORTED",
FlowExecutionStatus::Failed => "FAILED",
FlowExecutionStatus::Running => "RUNNING",
FlowExecutionStatus::Succeeded => "SUCCEEDED",
FlowExecutionStatus::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["ABORTED", "FAILED", "RUNNING", "SUCCEEDED"]
}
}
impl AsRef<str> for FlowExecutionStatus {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct EntityDescription {
#[doc(hidden)]
pub id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub r#type: std::option::Option<crate::model::EntityType>,
#[doc(hidden)]
pub created_at: std::option::Option<aws_smithy_types::DateTime>,
#[doc(hidden)]
pub definition: std::option::Option<crate::model::DefinitionDocument>,
}
impl EntityDescription {
pub fn id(&self) -> std::option::Option<&str> {
self.id.as_deref()
}
pub fn arn(&self) -> std::option::Option<&str> {
self.arn.as_deref()
}
pub fn r#type(&self) -> std::option::Option<&crate::model::EntityType> {
self.r#type.as_ref()
}
pub fn created_at(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.created_at.as_ref()
}
pub fn definition(&self) -> std::option::Option<&crate::model::DefinitionDocument> {
self.definition.as_ref()
}
}
pub mod entity_description {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) id: std::option::Option<std::string::String>,
pub(crate) arn: std::option::Option<std::string::String>,
pub(crate) r#type: std::option::Option<crate::model::EntityType>,
pub(crate) created_at: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) definition: std::option::Option<crate::model::DefinitionDocument>,
}
impl Builder {
pub fn id(mut self, input: impl Into<std::string::String>) -> Self {
self.id = Some(input.into());
self
}
pub fn set_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.id = input;
self
}
pub fn arn(mut self, input: impl Into<std::string::String>) -> Self {
self.arn = Some(input.into());
self
}
pub fn set_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.arn = input;
self
}
pub fn r#type(mut self, input: crate::model::EntityType) -> Self {
self.r#type = Some(input);
self
}
pub fn set_type(mut self, input: std::option::Option<crate::model::EntityType>) -> Self {
self.r#type = input;
self
}
pub fn created_at(mut self, input: aws_smithy_types::DateTime) -> Self {
self.created_at = Some(input);
self
}
pub fn set_created_at(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.created_at = input;
self
}
pub fn definition(mut self, input: crate::model::DefinitionDocument) -> Self {
self.definition = Some(input);
self
}
pub fn set_definition(
mut self,
input: std::option::Option<crate::model::DefinitionDocument>,
) -> Self {
self.definition = input;
self
}
pub fn build(self) -> crate::model::EntityDescription {
crate::model::EntityDescription {
id: self.id,
arn: self.arn,
r#type: self.r#type,
created_at: self.created_at,
definition: self.definition,
}
}
}
}
impl EntityDescription {
pub fn builder() -> crate::model::entity_description::Builder {
crate::model::entity_description::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum EntityType {
#[allow(missing_docs)] Action,
#[allow(missing_docs)] Capability,
#[allow(missing_docs)] Device,
#[allow(missing_docs)] DeviceModel,
#[allow(missing_docs)] Enum,
#[allow(missing_docs)] Event,
#[allow(missing_docs)] Mapping,
#[allow(missing_docs)] Property,
#[allow(missing_docs)] Service,
#[allow(missing_docs)] State,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for EntityType {
fn from(s: &str) -> Self {
match s {
"ACTION" => EntityType::Action,
"CAPABILITY" => EntityType::Capability,
"DEVICE" => EntityType::Device,
"DEVICE_MODEL" => EntityType::DeviceModel,
"ENUM" => EntityType::Enum,
"EVENT" => EntityType::Event,
"MAPPING" => EntityType::Mapping,
"PROPERTY" => EntityType::Property,
"SERVICE" => EntityType::Service,
"STATE" => EntityType::State,
other => EntityType::Unknown(crate::types::UnknownVariantValue(other.to_owned())),
}
}
}
impl std::str::FromStr for EntityType {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(EntityType::from(s))
}
}
impl EntityType {
pub fn as_str(&self) -> &str {
match self {
EntityType::Action => "ACTION",
EntityType::Capability => "CAPABILITY",
EntityType::Device => "DEVICE",
EntityType::DeviceModel => "DEVICE_MODEL",
EntityType::Enum => "ENUM",
EntityType::Event => "EVENT",
EntityType::Mapping => "MAPPING",
EntityType::Property => "PROPERTY",
EntityType::Service => "SERVICE",
EntityType::State => "STATE",
EntityType::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&[
"ACTION",
"CAPABILITY",
"DEVICE",
"DEVICE_MODEL",
"ENUM",
"EVENT",
"MAPPING",
"PROPERTY",
"SERVICE",
"STATE",
]
}
}
impl AsRef<str> for EntityType {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct EntityFilter {
#[doc(hidden)]
pub name: std::option::Option<crate::model::EntityFilterName>,
#[doc(hidden)]
pub value: std::option::Option<std::vec::Vec<std::string::String>>,
}
impl EntityFilter {
pub fn name(&self) -> std::option::Option<&crate::model::EntityFilterName> {
self.name.as_ref()
}
pub fn value(&self) -> std::option::Option<&[std::string::String]> {
self.value.as_deref()
}
}
pub mod entity_filter {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) name: std::option::Option<crate::model::EntityFilterName>,
pub(crate) value: std::option::Option<std::vec::Vec<std::string::String>>,
}
impl Builder {
pub fn name(mut self, input: crate::model::EntityFilterName) -> Self {
self.name = Some(input);
self
}
pub fn set_name(
mut self,
input: std::option::Option<crate::model::EntityFilterName>,
) -> Self {
self.name = input;
self
}
pub fn value(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.value.unwrap_or_default();
v.push(input.into());
self.value = Some(v);
self
}
pub fn set_value(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.value = input;
self
}
pub fn build(self) -> crate::model::EntityFilter {
crate::model::EntityFilter {
name: self.name,
value: self.value,
}
}
}
}
impl EntityFilter {
pub fn builder() -> crate::model::entity_filter::Builder {
crate::model::entity_filter::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum EntityFilterName {
#[allow(missing_docs)] Name,
#[allow(missing_docs)] Namespace,
#[allow(missing_docs)] ReferencedEntityId,
#[allow(missing_docs)] SemanticTypePath,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for EntityFilterName {
fn from(s: &str) -> Self {
match s {
"NAME" => EntityFilterName::Name,
"NAMESPACE" => EntityFilterName::Namespace,
"REFERENCED_ENTITY_ID" => EntityFilterName::ReferencedEntityId,
"SEMANTIC_TYPE_PATH" => EntityFilterName::SemanticTypePath,
other => EntityFilterName::Unknown(crate::types::UnknownVariantValue(other.to_owned())),
}
}
}
impl std::str::FromStr for EntityFilterName {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(EntityFilterName::from(s))
}
}
impl EntityFilterName {
pub fn as_str(&self) -> &str {
match self {
EntityFilterName::Name => "NAME",
EntityFilterName::Namespace => "NAMESPACE",
EntityFilterName::ReferencedEntityId => "REFERENCED_ENTITY_ID",
EntityFilterName::SemanticTypePath => "SEMANTIC_TYPE_PATH",
EntityFilterName::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&[
"NAME",
"NAMESPACE",
"REFERENCED_ENTITY_ID",
"SEMANTIC_TYPE_PATH",
]
}
}
impl AsRef<str> for EntityFilterName {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct FlowExecutionMessage {
#[doc(hidden)]
pub message_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub event_type: std::option::Option<crate::model::FlowExecutionEventType>,
#[doc(hidden)]
pub timestamp: std::option::Option<aws_smithy_types::DateTime>,
#[doc(hidden)]
pub payload: std::option::Option<std::string::String>,
}
impl FlowExecutionMessage {
pub fn message_id(&self) -> std::option::Option<&str> {
self.message_id.as_deref()
}
pub fn event_type(&self) -> std::option::Option<&crate::model::FlowExecutionEventType> {
self.event_type.as_ref()
}
pub fn timestamp(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.timestamp.as_ref()
}
pub fn payload(&self) -> std::option::Option<&str> {
self.payload.as_deref()
}
}
pub mod flow_execution_message {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message_id: std::option::Option<std::string::String>,
pub(crate) event_type: std::option::Option<crate::model::FlowExecutionEventType>,
pub(crate) timestamp: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) payload: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message_id(mut self, input: impl Into<std::string::String>) -> Self {
self.message_id = Some(input.into());
self
}
pub fn set_message_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message_id = input;
self
}
pub fn event_type(mut self, input: crate::model::FlowExecutionEventType) -> Self {
self.event_type = Some(input);
self
}
pub fn set_event_type(
mut self,
input: std::option::Option<crate::model::FlowExecutionEventType>,
) -> Self {
self.event_type = input;
self
}
pub fn timestamp(mut self, input: aws_smithy_types::DateTime) -> Self {
self.timestamp = Some(input);
self
}
pub fn set_timestamp(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.timestamp = input;
self
}
pub fn payload(mut self, input: impl Into<std::string::String>) -> Self {
self.payload = Some(input.into());
self
}
pub fn set_payload(mut self, input: std::option::Option<std::string::String>) -> Self {
self.payload = input;
self
}
pub fn build(self) -> crate::model::FlowExecutionMessage {
crate::model::FlowExecutionMessage {
message_id: self.message_id,
event_type: self.event_type,
timestamp: self.timestamp,
payload: self.payload,
}
}
}
}
impl FlowExecutionMessage {
pub fn builder() -> crate::model::flow_execution_message::Builder {
crate::model::flow_execution_message::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum FlowExecutionEventType {
#[allow(missing_docs)] AcknowledgeTaskMessage,
#[allow(missing_docs)] ActivityFailed,
#[allow(missing_docs)] ActivityScheduled,
#[allow(missing_docs)] ActivityStarted,
#[allow(missing_docs)] ActivitySucceeded,
#[allow(missing_docs)] ExecutionAborted,
#[allow(missing_docs)] ExecutionFailed,
#[allow(missing_docs)] ExecutionStarted,
#[allow(missing_docs)] ExecutionSucceeded,
#[allow(missing_docs)] ScheduleNextReadyStepsTask,
#[allow(missing_docs)] StartFlowExecutionTask,
#[allow(missing_docs)] StepFailed,
#[allow(missing_docs)] StepStarted,
#[allow(missing_docs)] StepSucceeded,
#[allow(missing_docs)] ThingActionTask,
#[allow(missing_docs)] ThingActionTaskFailed,
#[allow(missing_docs)] ThingActionTaskSucceeded,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for FlowExecutionEventType {
fn from(s: &str) -> Self {
match s {
"ACKNOWLEDGE_TASK_MESSAGE" => FlowExecutionEventType::AcknowledgeTaskMessage,
"ACTIVITY_FAILED" => FlowExecutionEventType::ActivityFailed,
"ACTIVITY_SCHEDULED" => FlowExecutionEventType::ActivityScheduled,
"ACTIVITY_STARTED" => FlowExecutionEventType::ActivityStarted,
"ACTIVITY_SUCCEEDED" => FlowExecutionEventType::ActivitySucceeded,
"EXECUTION_ABORTED" => FlowExecutionEventType::ExecutionAborted,
"EXECUTION_FAILED" => FlowExecutionEventType::ExecutionFailed,
"EXECUTION_STARTED" => FlowExecutionEventType::ExecutionStarted,
"EXECUTION_SUCCEEDED" => FlowExecutionEventType::ExecutionSucceeded,
"SCHEDULE_NEXT_READY_STEPS_TASK" => FlowExecutionEventType::ScheduleNextReadyStepsTask,
"START_FLOW_EXECUTION_TASK" => FlowExecutionEventType::StartFlowExecutionTask,
"STEP_FAILED" => FlowExecutionEventType::StepFailed,
"STEP_STARTED" => FlowExecutionEventType::StepStarted,
"STEP_SUCCEEDED" => FlowExecutionEventType::StepSucceeded,
"THING_ACTION_TASK" => FlowExecutionEventType::ThingActionTask,
"THING_ACTION_TASK_FAILED" => FlowExecutionEventType::ThingActionTaskFailed,
"THING_ACTION_TASK_SUCCEEDED" => FlowExecutionEventType::ThingActionTaskSucceeded,
other => {
FlowExecutionEventType::Unknown(crate::types::UnknownVariantValue(other.to_owned()))
}
}
}
}
impl std::str::FromStr for FlowExecutionEventType {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(FlowExecutionEventType::from(s))
}
}
impl FlowExecutionEventType {
pub fn as_str(&self) -> &str {
match self {
FlowExecutionEventType::AcknowledgeTaskMessage => "ACKNOWLEDGE_TASK_MESSAGE",
FlowExecutionEventType::ActivityFailed => "ACTIVITY_FAILED",
FlowExecutionEventType::ActivityScheduled => "ACTIVITY_SCHEDULED",
FlowExecutionEventType::ActivityStarted => "ACTIVITY_STARTED",
FlowExecutionEventType::ActivitySucceeded => "ACTIVITY_SUCCEEDED",
FlowExecutionEventType::ExecutionAborted => "EXECUTION_ABORTED",
FlowExecutionEventType::ExecutionFailed => "EXECUTION_FAILED",
FlowExecutionEventType::ExecutionStarted => "EXECUTION_STARTED",
FlowExecutionEventType::ExecutionSucceeded => "EXECUTION_SUCCEEDED",
FlowExecutionEventType::ScheduleNextReadyStepsTask => "SCHEDULE_NEXT_READY_STEPS_TASK",
FlowExecutionEventType::StartFlowExecutionTask => "START_FLOW_EXECUTION_TASK",
FlowExecutionEventType::StepFailed => "STEP_FAILED",
FlowExecutionEventType::StepStarted => "STEP_STARTED",
FlowExecutionEventType::StepSucceeded => "STEP_SUCCEEDED",
FlowExecutionEventType::ThingActionTask => "THING_ACTION_TASK",
FlowExecutionEventType::ThingActionTaskFailed => "THING_ACTION_TASK_FAILED",
FlowExecutionEventType::ThingActionTaskSucceeded => "THING_ACTION_TASK_SUCCEEDED",
FlowExecutionEventType::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&[
"ACKNOWLEDGE_TASK_MESSAGE",
"ACTIVITY_FAILED",
"ACTIVITY_SCHEDULED",
"ACTIVITY_STARTED",
"ACTIVITY_SUCCEEDED",
"EXECUTION_ABORTED",
"EXECUTION_FAILED",
"EXECUTION_STARTED",
"EXECUTION_SUCCEEDED",
"SCHEDULE_NEXT_READY_STEPS_TASK",
"START_FLOW_EXECUTION_TASK",
"STEP_FAILED",
"STEP_STARTED",
"STEP_SUCCEEDED",
"THING_ACTION_TASK",
"THING_ACTION_TASK_FAILED",
"THING_ACTION_TASK_SUCCEEDED",
]
}
}
impl AsRef<str> for FlowExecutionEventType {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum UploadStatus {
#[allow(missing_docs)] Failed,
#[allow(missing_docs)] InProgress,
#[allow(missing_docs)] Succeeded,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for UploadStatus {
fn from(s: &str) -> Self {
match s {
"FAILED" => UploadStatus::Failed,
"IN_PROGRESS" => UploadStatus::InProgress,
"SUCCEEDED" => UploadStatus::Succeeded,
other => UploadStatus::Unknown(crate::types::UnknownVariantValue(other.to_owned())),
}
}
}
impl std::str::FromStr for UploadStatus {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(UploadStatus::from(s))
}
}
impl UploadStatus {
pub fn as_str(&self) -> &str {
match self {
UploadStatus::Failed => "FAILED",
UploadStatus::InProgress => "IN_PROGRESS",
UploadStatus::Succeeded => "SUCCEEDED",
UploadStatus::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["FAILED", "IN_PROGRESS", "SUCCEEDED"]
}
}
impl AsRef<str> for UploadStatus {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct SystemTemplateDescription {
#[doc(hidden)]
pub summary: std::option::Option<crate::model::SystemTemplateSummary>,
#[doc(hidden)]
pub definition: std::option::Option<crate::model::DefinitionDocument>,
#[doc(hidden)]
pub validated_namespace_version: std::option::Option<i64>,
}
impl SystemTemplateDescription {
pub fn summary(&self) -> std::option::Option<&crate::model::SystemTemplateSummary> {
self.summary.as_ref()
}
pub fn definition(&self) -> std::option::Option<&crate::model::DefinitionDocument> {
self.definition.as_ref()
}
pub fn validated_namespace_version(&self) -> std::option::Option<i64> {
self.validated_namespace_version
}
}
pub mod system_template_description {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) summary: std::option::Option<crate::model::SystemTemplateSummary>,
pub(crate) definition: std::option::Option<crate::model::DefinitionDocument>,
pub(crate) validated_namespace_version: std::option::Option<i64>,
}
impl Builder {
pub fn summary(mut self, input: crate::model::SystemTemplateSummary) -> Self {
self.summary = Some(input);
self
}
pub fn set_summary(
mut self,
input: std::option::Option<crate::model::SystemTemplateSummary>,
) -> Self {
self.summary = input;
self
}
pub fn definition(mut self, input: crate::model::DefinitionDocument) -> Self {
self.definition = Some(input);
self
}
pub fn set_definition(
mut self,
input: std::option::Option<crate::model::DefinitionDocument>,
) -> Self {
self.definition = input;
self
}
pub fn validated_namespace_version(mut self, input: i64) -> Self {
self.validated_namespace_version = Some(input);
self
}
pub fn set_validated_namespace_version(mut self, input: std::option::Option<i64>) -> Self {
self.validated_namespace_version = input;
self
}
pub fn build(self) -> crate::model::SystemTemplateDescription {
crate::model::SystemTemplateDescription {
summary: self.summary,
definition: self.definition,
validated_namespace_version: self.validated_namespace_version,
}
}
}
}
impl SystemTemplateDescription {
pub fn builder() -> crate::model::system_template_description::Builder {
crate::model::system_template_description::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct SystemInstanceDescription {
#[doc(hidden)]
pub summary: std::option::Option<crate::model::SystemInstanceSummary>,
#[doc(hidden)]
pub definition: std::option::Option<crate::model::DefinitionDocument>,
#[doc(hidden)]
pub s3_bucket_name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub metrics_configuration: std::option::Option<crate::model::MetricsConfiguration>,
#[doc(hidden)]
pub validated_namespace_version: std::option::Option<i64>,
#[doc(hidden)]
pub validated_dependency_revisions:
std::option::Option<std::vec::Vec<crate::model::DependencyRevision>>,
#[doc(hidden)]
pub flow_actions_role_arn: std::option::Option<std::string::String>,
}
impl SystemInstanceDescription {
pub fn summary(&self) -> std::option::Option<&crate::model::SystemInstanceSummary> {
self.summary.as_ref()
}
pub fn definition(&self) -> std::option::Option<&crate::model::DefinitionDocument> {
self.definition.as_ref()
}
pub fn s3_bucket_name(&self) -> std::option::Option<&str> {
self.s3_bucket_name.as_deref()
}
pub fn metrics_configuration(
&self,
) -> std::option::Option<&crate::model::MetricsConfiguration> {
self.metrics_configuration.as_ref()
}
pub fn validated_namespace_version(&self) -> std::option::Option<i64> {
self.validated_namespace_version
}
pub fn validated_dependency_revisions(
&self,
) -> std::option::Option<&[crate::model::DependencyRevision]> {
self.validated_dependency_revisions.as_deref()
}
pub fn flow_actions_role_arn(&self) -> std::option::Option<&str> {
self.flow_actions_role_arn.as_deref()
}
}
pub mod system_instance_description {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) summary: std::option::Option<crate::model::SystemInstanceSummary>,
pub(crate) definition: std::option::Option<crate::model::DefinitionDocument>,
pub(crate) s3_bucket_name: std::option::Option<std::string::String>,
pub(crate) metrics_configuration: std::option::Option<crate::model::MetricsConfiguration>,
pub(crate) validated_namespace_version: std::option::Option<i64>,
pub(crate) validated_dependency_revisions:
std::option::Option<std::vec::Vec<crate::model::DependencyRevision>>,
pub(crate) flow_actions_role_arn: std::option::Option<std::string::String>,
}
impl Builder {
pub fn summary(mut self, input: crate::model::SystemInstanceSummary) -> Self {
self.summary = Some(input);
self
}
pub fn set_summary(
mut self,
input: std::option::Option<crate::model::SystemInstanceSummary>,
) -> Self {
self.summary = input;
self
}
pub fn definition(mut self, input: crate::model::DefinitionDocument) -> Self {
self.definition = Some(input);
self
}
pub fn set_definition(
mut self,
input: std::option::Option<crate::model::DefinitionDocument>,
) -> Self {
self.definition = input;
self
}
pub fn s3_bucket_name(mut self, input: impl Into<std::string::String>) -> Self {
self.s3_bucket_name = Some(input.into());
self
}
pub fn set_s3_bucket_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.s3_bucket_name = input;
self
}
pub fn metrics_configuration(mut self, input: crate::model::MetricsConfiguration) -> Self {
self.metrics_configuration = Some(input);
self
}
pub fn set_metrics_configuration(
mut self,
input: std::option::Option<crate::model::MetricsConfiguration>,
) -> Self {
self.metrics_configuration = input;
self
}
pub fn validated_namespace_version(mut self, input: i64) -> Self {
self.validated_namespace_version = Some(input);
self
}
pub fn set_validated_namespace_version(mut self, input: std::option::Option<i64>) -> Self {
self.validated_namespace_version = input;
self
}
pub fn validated_dependency_revisions(
mut self,
input: crate::model::DependencyRevision,
) -> Self {
let mut v = self.validated_dependency_revisions.unwrap_or_default();
v.push(input);
self.validated_dependency_revisions = Some(v);
self
}
pub fn set_validated_dependency_revisions(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::DependencyRevision>>,
) -> Self {
self.validated_dependency_revisions = input;
self
}
pub fn flow_actions_role_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.flow_actions_role_arn = Some(input.into());
self
}
pub fn set_flow_actions_role_arn(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.flow_actions_role_arn = input;
self
}
pub fn build(self) -> crate::model::SystemInstanceDescription {
crate::model::SystemInstanceDescription {
summary: self.summary,
definition: self.definition,
s3_bucket_name: self.s3_bucket_name,
metrics_configuration: self.metrics_configuration,
validated_namespace_version: self.validated_namespace_version,
validated_dependency_revisions: self.validated_dependency_revisions,
flow_actions_role_arn: self.flow_actions_role_arn,
}
}
}
}
impl SystemInstanceDescription {
pub fn builder() -> crate::model::system_instance_description::Builder {
crate::model::system_instance_description::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DependencyRevision {
#[doc(hidden)]
pub id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub revision_number: std::option::Option<i64>,
}
impl DependencyRevision {
pub fn id(&self) -> std::option::Option<&str> {
self.id.as_deref()
}
pub fn revision_number(&self) -> std::option::Option<i64> {
self.revision_number
}
}
pub mod dependency_revision {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) id: std::option::Option<std::string::String>,
pub(crate) revision_number: std::option::Option<i64>,
}
impl Builder {
pub fn id(mut self, input: impl Into<std::string::String>) -> Self {
self.id = Some(input.into());
self
}
pub fn set_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.id = input;
self
}
pub fn revision_number(mut self, input: i64) -> Self {
self.revision_number = Some(input);
self
}
pub fn set_revision_number(mut self, input: std::option::Option<i64>) -> Self {
self.revision_number = input;
self
}
pub fn build(self) -> crate::model::DependencyRevision {
crate::model::DependencyRevision {
id: self.id,
revision_number: self.revision_number,
}
}
}
}
impl DependencyRevision {
pub fn builder() -> crate::model::dependency_revision::Builder {
crate::model::dependency_revision::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct MetricsConfiguration {
#[doc(hidden)]
pub cloud_metric_enabled: bool,
#[doc(hidden)]
pub metric_rule_role_arn: std::option::Option<std::string::String>,
}
impl MetricsConfiguration {
pub fn cloud_metric_enabled(&self) -> bool {
self.cloud_metric_enabled
}
pub fn metric_rule_role_arn(&self) -> std::option::Option<&str> {
self.metric_rule_role_arn.as_deref()
}
}
pub mod metrics_configuration {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) cloud_metric_enabled: std::option::Option<bool>,
pub(crate) metric_rule_role_arn: std::option::Option<std::string::String>,
}
impl Builder {
pub fn cloud_metric_enabled(mut self, input: bool) -> Self {
self.cloud_metric_enabled = Some(input);
self
}
pub fn set_cloud_metric_enabled(mut self, input: std::option::Option<bool>) -> Self {
self.cloud_metric_enabled = input;
self
}
pub fn metric_rule_role_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.metric_rule_role_arn = Some(input.into());
self
}
pub fn set_metric_rule_role_arn(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.metric_rule_role_arn = input;
self
}
pub fn build(self) -> crate::model::MetricsConfiguration {
crate::model::MetricsConfiguration {
cloud_metric_enabled: self.cloud_metric_enabled.unwrap_or_default(),
metric_rule_role_arn: self.metric_rule_role_arn,
}
}
}
}
impl MetricsConfiguration {
pub fn builder() -> crate::model::metrics_configuration::Builder {
crate::model::metrics_configuration::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum NamespaceDeletionStatusErrorCodes {
#[allow(missing_docs)] ValidationFailed,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for NamespaceDeletionStatusErrorCodes {
fn from(s: &str) -> Self {
match s {
"VALIDATION_FAILED" => NamespaceDeletionStatusErrorCodes::ValidationFailed,
other => NamespaceDeletionStatusErrorCodes::Unknown(crate::types::UnknownVariantValue(
other.to_owned(),
)),
}
}
}
impl std::str::FromStr for NamespaceDeletionStatusErrorCodes {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(NamespaceDeletionStatusErrorCodes::from(s))
}
}
impl NamespaceDeletionStatusErrorCodes {
pub fn as_str(&self) -> &str {
match self {
NamespaceDeletionStatusErrorCodes::ValidationFailed => "VALIDATION_FAILED",
NamespaceDeletionStatusErrorCodes::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["VALIDATION_FAILED"]
}
}
impl AsRef<str> for NamespaceDeletionStatusErrorCodes {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum NamespaceDeletionStatus {
#[allow(missing_docs)] Failed,
#[allow(missing_docs)] InProgress,
#[allow(missing_docs)] Succeeded,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for NamespaceDeletionStatus {
fn from(s: &str) -> Self {
match s {
"FAILED" => NamespaceDeletionStatus::Failed,
"IN_PROGRESS" => NamespaceDeletionStatus::InProgress,
"SUCCEEDED" => NamespaceDeletionStatus::Succeeded,
other => NamespaceDeletionStatus::Unknown(crate::types::UnknownVariantValue(
other.to_owned(),
)),
}
}
}
impl std::str::FromStr for NamespaceDeletionStatus {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(NamespaceDeletionStatus::from(s))
}
}
impl NamespaceDeletionStatus {
pub fn as_str(&self) -> &str {
match self {
NamespaceDeletionStatus::Failed => "FAILED",
NamespaceDeletionStatus::InProgress => "IN_PROGRESS",
NamespaceDeletionStatus::Succeeded => "SUCCEEDED",
NamespaceDeletionStatus::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["FAILED", "IN_PROGRESS", "SUCCEEDED"]
}
}
impl AsRef<str> for NamespaceDeletionStatus {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct FlowTemplateDescription {
#[doc(hidden)]
pub summary: std::option::Option<crate::model::FlowTemplateSummary>,
#[doc(hidden)]
pub definition: std::option::Option<crate::model::DefinitionDocument>,
#[doc(hidden)]
pub validated_namespace_version: std::option::Option<i64>,
}
impl FlowTemplateDescription {
pub fn summary(&self) -> std::option::Option<&crate::model::FlowTemplateSummary> {
self.summary.as_ref()
}
pub fn definition(&self) -> std::option::Option<&crate::model::DefinitionDocument> {
self.definition.as_ref()
}
pub fn validated_namespace_version(&self) -> std::option::Option<i64> {
self.validated_namespace_version
}
}
pub mod flow_template_description {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) summary: std::option::Option<crate::model::FlowTemplateSummary>,
pub(crate) definition: std::option::Option<crate::model::DefinitionDocument>,
pub(crate) validated_namespace_version: std::option::Option<i64>,
}
impl Builder {
pub fn summary(mut self, input: crate::model::FlowTemplateSummary) -> Self {
self.summary = Some(input);
self
}
pub fn set_summary(
mut self,
input: std::option::Option<crate::model::FlowTemplateSummary>,
) -> Self {
self.summary = input;
self
}
pub fn definition(mut self, input: crate::model::DefinitionDocument) -> Self {
self.definition = Some(input);
self
}
pub fn set_definition(
mut self,
input: std::option::Option<crate::model::DefinitionDocument>,
) -> Self {
self.definition = input;
self
}
pub fn validated_namespace_version(mut self, input: i64) -> Self {
self.validated_namespace_version = Some(input);
self
}
pub fn set_validated_namespace_version(mut self, input: std::option::Option<i64>) -> Self {
self.validated_namespace_version = input;
self
}
pub fn build(self) -> crate::model::FlowTemplateDescription {
crate::model::FlowTemplateDescription {
summary: self.summary,
definition: self.definition,
validated_namespace_version: self.validated_namespace_version,
}
}
}
}
impl FlowTemplateDescription {
pub fn builder() -> crate::model::flow_template_description::Builder {
crate::model::flow_template_description::Builder::default()
}
}