#[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 FlowStatus {
#[allow(missing_docs)] Active,
#[allow(missing_docs)] Deleted,
#[allow(missing_docs)] Deprecated,
#[allow(missing_docs)] Draft,
#[allow(missing_docs)] Errored,
#[allow(missing_docs)] Suspended,
Unknown(String),
}
impl std::convert::From<&str> for FlowStatus {
fn from(s: &str) -> Self {
match s {
"Active" => FlowStatus::Active,
"Deleted" => FlowStatus::Deleted,
"Deprecated" => FlowStatus::Deprecated,
"Draft" => FlowStatus::Draft,
"Errored" => FlowStatus::Errored,
"Suspended" => FlowStatus::Suspended,
other => FlowStatus::Unknown(other.to_owned()),
}
}
}
impl std::str::FromStr for FlowStatus {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(FlowStatus::from(s))
}
}
impl FlowStatus {
pub fn as_str(&self) -> &str {
match self {
FlowStatus::Active => "Active",
FlowStatus::Deleted => "Deleted",
FlowStatus::Deprecated => "Deprecated",
FlowStatus::Draft => "Draft",
FlowStatus::Errored => "Errored",
FlowStatus::Suspended => "Suspended",
FlowStatus::Unknown(s) => s.as_ref(),
}
}
pub fn values() -> &'static [&'static str] {
&[
"Active",
"Deleted",
"Deprecated",
"Draft",
"Errored",
"Suspended",
]
}
}
impl AsRef<str> for FlowStatus {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct Task {
pub source_fields: std::option::Option<std::vec::Vec<std::string::String>>,
pub connector_operator: std::option::Option<crate::model::ConnectorOperator>,
pub destination_field: std::option::Option<std::string::String>,
pub task_type: std::option::Option<crate::model::TaskType>,
pub task_properties: std::option::Option<
std::collections::HashMap<crate::model::OperatorPropertiesKeys, std::string::String>,
>,
}
impl std::fmt::Debug for Task {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("Task");
formatter.field("source_fields", &self.source_fields);
formatter.field("connector_operator", &self.connector_operator);
formatter.field("destination_field", &self.destination_field);
formatter.field("task_type", &self.task_type);
formatter.field("task_properties", &self.task_properties);
formatter.finish()
}
}
pub mod task {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) source_fields: std::option::Option<std::vec::Vec<std::string::String>>,
pub(crate) connector_operator: std::option::Option<crate::model::ConnectorOperator>,
pub(crate) destination_field: std::option::Option<std::string::String>,
pub(crate) task_type: std::option::Option<crate::model::TaskType>,
pub(crate) task_properties: std::option::Option<
std::collections::HashMap<crate::model::OperatorPropertiesKeys, std::string::String>,
>,
}
impl Builder {
pub fn source_fields(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.source_fields.unwrap_or_default();
v.push(input.into());
self.source_fields = Some(v);
self
}
pub fn set_source_fields(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.source_fields = input;
self
}
pub fn connector_operator(mut self, input: crate::model::ConnectorOperator) -> Self {
self.connector_operator = Some(input);
self
}
pub fn set_connector_operator(
mut self,
input: std::option::Option<crate::model::ConnectorOperator>,
) -> Self {
self.connector_operator = input;
self
}
pub fn destination_field(mut self, input: impl Into<std::string::String>) -> Self {
self.destination_field = Some(input.into());
self
}
pub fn set_destination_field(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.destination_field = input;
self
}
pub fn task_type(mut self, input: crate::model::TaskType) -> Self {
self.task_type = Some(input);
self
}
pub fn set_task_type(mut self, input: std::option::Option<crate::model::TaskType>) -> Self {
self.task_type = input;
self
}
pub fn task_properties(
mut self,
k: impl Into<crate::model::OperatorPropertiesKeys>,
v: impl Into<std::string::String>,
) -> Self {
let mut hash_map = self.task_properties.unwrap_or_default();
hash_map.insert(k.into(), v.into());
self.task_properties = Some(hash_map);
self
}
pub fn set_task_properties(
mut self,
input: std::option::Option<
std::collections::HashMap<
crate::model::OperatorPropertiesKeys,
std::string::String,
>,
>,
) -> Self {
self.task_properties = input;
self
}
pub fn build(self) -> crate::model::Task {
crate::model::Task {
source_fields: self.source_fields,
connector_operator: self.connector_operator,
destination_field: self.destination_field,
task_type: self.task_type,
task_properties: self.task_properties,
}
}
}
}
impl Task {
pub fn builder() -> crate::model::task::Builder {
crate::model::task::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 OperatorPropertiesKeys {
#[allow(missing_docs)] ConcatFormat,
#[allow(missing_docs)] DataType,
#[allow(missing_docs)] DestinationDataType,
#[allow(missing_docs)] ExcludeSourceFieldsList,
#[allow(missing_docs)] LowerBound,
#[allow(missing_docs)] MaskLength,
#[allow(missing_docs)] MaskValue,
#[allow(missing_docs)] MathOperationFieldsOrder,
#[allow(missing_docs)] SourceDataType,
#[allow(missing_docs)] SubfieldCategoryMap,
#[allow(missing_docs)] TruncateLength,
#[allow(missing_docs)] UpperBound,
#[allow(missing_docs)] ValidationAction,
#[allow(missing_docs)] Value,
#[allow(missing_docs)] Values,
Unknown(String),
}
impl std::convert::From<&str> for OperatorPropertiesKeys {
fn from(s: &str) -> Self {
match s {
"CONCAT_FORMAT" => OperatorPropertiesKeys::ConcatFormat,
"DATA_TYPE" => OperatorPropertiesKeys::DataType,
"DESTINATION_DATA_TYPE" => OperatorPropertiesKeys::DestinationDataType,
"EXCLUDE_SOURCE_FIELDS_LIST" => OperatorPropertiesKeys::ExcludeSourceFieldsList,
"LOWER_BOUND" => OperatorPropertiesKeys::LowerBound,
"MASK_LENGTH" => OperatorPropertiesKeys::MaskLength,
"MASK_VALUE" => OperatorPropertiesKeys::MaskValue,
"MATH_OPERATION_FIELDS_ORDER" => OperatorPropertiesKeys::MathOperationFieldsOrder,
"SOURCE_DATA_TYPE" => OperatorPropertiesKeys::SourceDataType,
"SUBFIELD_CATEGORY_MAP" => OperatorPropertiesKeys::SubfieldCategoryMap,
"TRUNCATE_LENGTH" => OperatorPropertiesKeys::TruncateLength,
"UPPER_BOUND" => OperatorPropertiesKeys::UpperBound,
"VALIDATION_ACTION" => OperatorPropertiesKeys::ValidationAction,
"VALUE" => OperatorPropertiesKeys::Value,
"VALUES" => OperatorPropertiesKeys::Values,
other => OperatorPropertiesKeys::Unknown(other.to_owned()),
}
}
}
impl std::str::FromStr for OperatorPropertiesKeys {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(OperatorPropertiesKeys::from(s))
}
}
impl OperatorPropertiesKeys {
pub fn as_str(&self) -> &str {
match self {
OperatorPropertiesKeys::ConcatFormat => "CONCAT_FORMAT",
OperatorPropertiesKeys::DataType => "DATA_TYPE",
OperatorPropertiesKeys::DestinationDataType => "DESTINATION_DATA_TYPE",
OperatorPropertiesKeys::ExcludeSourceFieldsList => "EXCLUDE_SOURCE_FIELDS_LIST",
OperatorPropertiesKeys::LowerBound => "LOWER_BOUND",
OperatorPropertiesKeys::MaskLength => "MASK_LENGTH",
OperatorPropertiesKeys::MaskValue => "MASK_VALUE",
OperatorPropertiesKeys::MathOperationFieldsOrder => "MATH_OPERATION_FIELDS_ORDER",
OperatorPropertiesKeys::SourceDataType => "SOURCE_DATA_TYPE",
OperatorPropertiesKeys::SubfieldCategoryMap => "SUBFIELD_CATEGORY_MAP",
OperatorPropertiesKeys::TruncateLength => "TRUNCATE_LENGTH",
OperatorPropertiesKeys::UpperBound => "UPPER_BOUND",
OperatorPropertiesKeys::ValidationAction => "VALIDATION_ACTION",
OperatorPropertiesKeys::Value => "VALUE",
OperatorPropertiesKeys::Values => "VALUES",
OperatorPropertiesKeys::Unknown(s) => s.as_ref(),
}
}
pub fn values() -> &'static [&'static str] {
&[
"CONCAT_FORMAT",
"DATA_TYPE",
"DESTINATION_DATA_TYPE",
"EXCLUDE_SOURCE_FIELDS_LIST",
"LOWER_BOUND",
"MASK_LENGTH",
"MASK_VALUE",
"MATH_OPERATION_FIELDS_ORDER",
"SOURCE_DATA_TYPE",
"SUBFIELD_CATEGORY_MAP",
"TRUNCATE_LENGTH",
"UPPER_BOUND",
"VALIDATION_ACTION",
"VALUE",
"VALUES",
]
}
}
impl AsRef<str> for OperatorPropertiesKeys {
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 TaskType {
#[allow(missing_docs)] Arithmetic,
#[allow(missing_docs)] Filter,
#[allow(missing_docs)] Map,
#[allow(missing_docs)] MapAll,
#[allow(missing_docs)] Mask,
#[allow(missing_docs)] Merge,
#[allow(missing_docs)] Truncate,
#[allow(missing_docs)] Validate,
Unknown(String),
}
impl std::convert::From<&str> for TaskType {
fn from(s: &str) -> Self {
match s {
"Arithmetic" => TaskType::Arithmetic,
"Filter" => TaskType::Filter,
"Map" => TaskType::Map,
"Map_all" => TaskType::MapAll,
"Mask" => TaskType::Mask,
"Merge" => TaskType::Merge,
"Truncate" => TaskType::Truncate,
"Validate" => TaskType::Validate,
other => TaskType::Unknown(other.to_owned()),
}
}
}
impl std::str::FromStr for TaskType {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(TaskType::from(s))
}
}
impl TaskType {
pub fn as_str(&self) -> &str {
match self {
TaskType::Arithmetic => "Arithmetic",
TaskType::Filter => "Filter",
TaskType::Map => "Map",
TaskType::MapAll => "Map_all",
TaskType::Mask => "Mask",
TaskType::Merge => "Merge",
TaskType::Truncate => "Truncate",
TaskType::Validate => "Validate",
TaskType::Unknown(s) => s.as_ref(),
}
}
pub fn values() -> &'static [&'static str] {
&[
"Arithmetic",
"Filter",
"Map",
"Map_all",
"Mask",
"Merge",
"Truncate",
"Validate",
]
}
}
impl AsRef<str> for TaskType {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ConnectorOperator {
pub amplitude: std::option::Option<crate::model::AmplitudeConnectorOperator>,
pub datadog: std::option::Option<crate::model::DatadogConnectorOperator>,
pub dynatrace: std::option::Option<crate::model::DynatraceConnectorOperator>,
pub google_analytics: std::option::Option<crate::model::GoogleAnalyticsConnectorOperator>,
pub infor_nexus: std::option::Option<crate::model::InforNexusConnectorOperator>,
pub marketo: std::option::Option<crate::model::MarketoConnectorOperator>,
pub s3: std::option::Option<crate::model::S3ConnectorOperator>,
pub salesforce: std::option::Option<crate::model::SalesforceConnectorOperator>,
pub service_now: std::option::Option<crate::model::ServiceNowConnectorOperator>,
pub singular: std::option::Option<crate::model::SingularConnectorOperator>,
pub slack: std::option::Option<crate::model::SlackConnectorOperator>,
pub trendmicro: std::option::Option<crate::model::TrendmicroConnectorOperator>,
pub veeva: std::option::Option<crate::model::VeevaConnectorOperator>,
pub zendesk: std::option::Option<crate::model::ZendeskConnectorOperator>,
pub sapo_data: std::option::Option<crate::model::SapoDataConnectorOperator>,
}
impl std::fmt::Debug for ConnectorOperator {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ConnectorOperator");
formatter.field("amplitude", &self.amplitude);
formatter.field("datadog", &self.datadog);
formatter.field("dynatrace", &self.dynatrace);
formatter.field("google_analytics", &self.google_analytics);
formatter.field("infor_nexus", &self.infor_nexus);
formatter.field("marketo", &self.marketo);
formatter.field("s3", &self.s3);
formatter.field("salesforce", &self.salesforce);
formatter.field("service_now", &self.service_now);
formatter.field("singular", &self.singular);
formatter.field("slack", &self.slack);
formatter.field("trendmicro", &self.trendmicro);
formatter.field("veeva", &self.veeva);
formatter.field("zendesk", &self.zendesk);
formatter.field("sapo_data", &self.sapo_data);
formatter.finish()
}
}
pub mod connector_operator {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) amplitude: std::option::Option<crate::model::AmplitudeConnectorOperator>,
pub(crate) datadog: std::option::Option<crate::model::DatadogConnectorOperator>,
pub(crate) dynatrace: std::option::Option<crate::model::DynatraceConnectorOperator>,
pub(crate) google_analytics:
std::option::Option<crate::model::GoogleAnalyticsConnectorOperator>,
pub(crate) infor_nexus: std::option::Option<crate::model::InforNexusConnectorOperator>,
pub(crate) marketo: std::option::Option<crate::model::MarketoConnectorOperator>,
pub(crate) s3: std::option::Option<crate::model::S3ConnectorOperator>,
pub(crate) salesforce: std::option::Option<crate::model::SalesforceConnectorOperator>,
pub(crate) service_now: std::option::Option<crate::model::ServiceNowConnectorOperator>,
pub(crate) singular: std::option::Option<crate::model::SingularConnectorOperator>,
pub(crate) slack: std::option::Option<crate::model::SlackConnectorOperator>,
pub(crate) trendmicro: std::option::Option<crate::model::TrendmicroConnectorOperator>,
pub(crate) veeva: std::option::Option<crate::model::VeevaConnectorOperator>,
pub(crate) zendesk: std::option::Option<crate::model::ZendeskConnectorOperator>,
pub(crate) sapo_data: std::option::Option<crate::model::SapoDataConnectorOperator>,
}
impl Builder {
pub fn amplitude(mut self, input: crate::model::AmplitudeConnectorOperator) -> Self {
self.amplitude = Some(input);
self
}
pub fn set_amplitude(
mut self,
input: std::option::Option<crate::model::AmplitudeConnectorOperator>,
) -> Self {
self.amplitude = input;
self
}
pub fn datadog(mut self, input: crate::model::DatadogConnectorOperator) -> Self {
self.datadog = Some(input);
self
}
pub fn set_datadog(
mut self,
input: std::option::Option<crate::model::DatadogConnectorOperator>,
) -> Self {
self.datadog = input;
self
}
pub fn dynatrace(mut self, input: crate::model::DynatraceConnectorOperator) -> Self {
self.dynatrace = Some(input);
self
}
pub fn set_dynatrace(
mut self,
input: std::option::Option<crate::model::DynatraceConnectorOperator>,
) -> Self {
self.dynatrace = input;
self
}
pub fn google_analytics(
mut self,
input: crate::model::GoogleAnalyticsConnectorOperator,
) -> Self {
self.google_analytics = Some(input);
self
}
pub fn set_google_analytics(
mut self,
input: std::option::Option<crate::model::GoogleAnalyticsConnectorOperator>,
) -> Self {
self.google_analytics = input;
self
}
pub fn infor_nexus(mut self, input: crate::model::InforNexusConnectorOperator) -> Self {
self.infor_nexus = Some(input);
self
}
pub fn set_infor_nexus(
mut self,
input: std::option::Option<crate::model::InforNexusConnectorOperator>,
) -> Self {
self.infor_nexus = input;
self
}
pub fn marketo(mut self, input: crate::model::MarketoConnectorOperator) -> Self {
self.marketo = Some(input);
self
}
pub fn set_marketo(
mut self,
input: std::option::Option<crate::model::MarketoConnectorOperator>,
) -> Self {
self.marketo = input;
self
}
pub fn s3(mut self, input: crate::model::S3ConnectorOperator) -> Self {
self.s3 = Some(input);
self
}
pub fn set_s3(
mut self,
input: std::option::Option<crate::model::S3ConnectorOperator>,
) -> Self {
self.s3 = input;
self
}
pub fn salesforce(mut self, input: crate::model::SalesforceConnectorOperator) -> Self {
self.salesforce = Some(input);
self
}
pub fn set_salesforce(
mut self,
input: std::option::Option<crate::model::SalesforceConnectorOperator>,
) -> Self {
self.salesforce = input;
self
}
pub fn service_now(mut self, input: crate::model::ServiceNowConnectorOperator) -> Self {
self.service_now = Some(input);
self
}
pub fn set_service_now(
mut self,
input: std::option::Option<crate::model::ServiceNowConnectorOperator>,
) -> Self {
self.service_now = input;
self
}
pub fn singular(mut self, input: crate::model::SingularConnectorOperator) -> Self {
self.singular = Some(input);
self
}
pub fn set_singular(
mut self,
input: std::option::Option<crate::model::SingularConnectorOperator>,
) -> Self {
self.singular = input;
self
}
pub fn slack(mut self, input: crate::model::SlackConnectorOperator) -> Self {
self.slack = Some(input);
self
}
pub fn set_slack(
mut self,
input: std::option::Option<crate::model::SlackConnectorOperator>,
) -> Self {
self.slack = input;
self
}
pub fn trendmicro(mut self, input: crate::model::TrendmicroConnectorOperator) -> Self {
self.trendmicro = Some(input);
self
}
pub fn set_trendmicro(
mut self,
input: std::option::Option<crate::model::TrendmicroConnectorOperator>,
) -> Self {
self.trendmicro = input;
self
}
pub fn veeva(mut self, input: crate::model::VeevaConnectorOperator) -> Self {
self.veeva = Some(input);
self
}
pub fn set_veeva(
mut self,
input: std::option::Option<crate::model::VeevaConnectorOperator>,
) -> Self {
self.veeva = input;
self
}
pub fn zendesk(mut self, input: crate::model::ZendeskConnectorOperator) -> Self {
self.zendesk = Some(input);
self
}
pub fn set_zendesk(
mut self,
input: std::option::Option<crate::model::ZendeskConnectorOperator>,
) -> Self {
self.zendesk = input;
self
}
pub fn sapo_data(mut self, input: crate::model::SapoDataConnectorOperator) -> Self {
self.sapo_data = Some(input);
self
}
pub fn set_sapo_data(
mut self,
input: std::option::Option<crate::model::SapoDataConnectorOperator>,
) -> Self {
self.sapo_data = input;
self
}
pub fn build(self) -> crate::model::ConnectorOperator {
crate::model::ConnectorOperator {
amplitude: self.amplitude,
datadog: self.datadog,
dynatrace: self.dynatrace,
google_analytics: self.google_analytics,
infor_nexus: self.infor_nexus,
marketo: self.marketo,
s3: self.s3,
salesforce: self.salesforce,
service_now: self.service_now,
singular: self.singular,
slack: self.slack,
trendmicro: self.trendmicro,
veeva: self.veeva,
zendesk: self.zendesk,
sapo_data: self.sapo_data,
}
}
}
}
impl ConnectorOperator {
pub fn builder() -> crate::model::connector_operator::Builder {
crate::model::connector_operator::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 SapoDataConnectorOperator {
#[allow(missing_docs)] Addition,
#[allow(missing_docs)] Between,
#[allow(missing_docs)] Contains,
#[allow(missing_docs)] Division,
#[allow(missing_docs)] EqualTo,
#[allow(missing_docs)] GreaterThan,
#[allow(missing_docs)] GreaterThanOrEqualTo,
#[allow(missing_docs)] LessThan,
#[allow(missing_docs)] LessThanOrEqualTo,
#[allow(missing_docs)] MaskAll,
#[allow(missing_docs)] MaskFirstN,
#[allow(missing_docs)] MaskLastN,
#[allow(missing_docs)] Multiplication,
#[allow(missing_docs)] NotEqualTo,
#[allow(missing_docs)] NoOp,
#[allow(missing_docs)] Projection,
#[allow(missing_docs)] Subtraction,
#[allow(missing_docs)] ValidateNonNegative,
#[allow(missing_docs)] ValidateNonNull,
#[allow(missing_docs)] ValidateNonZero,
#[allow(missing_docs)] ValidateNumeric,
Unknown(String),
}
impl std::convert::From<&str> for SapoDataConnectorOperator {
fn from(s: &str) -> Self {
match s {
"ADDITION" => SapoDataConnectorOperator::Addition,
"BETWEEN" => SapoDataConnectorOperator::Between,
"CONTAINS" => SapoDataConnectorOperator::Contains,
"DIVISION" => SapoDataConnectorOperator::Division,
"EQUAL_TO" => SapoDataConnectorOperator::EqualTo,
"GREATER_THAN" => SapoDataConnectorOperator::GreaterThan,
"GREATER_THAN_OR_EQUAL_TO" => SapoDataConnectorOperator::GreaterThanOrEqualTo,
"LESS_THAN" => SapoDataConnectorOperator::LessThan,
"LESS_THAN_OR_EQUAL_TO" => SapoDataConnectorOperator::LessThanOrEqualTo,
"MASK_ALL" => SapoDataConnectorOperator::MaskAll,
"MASK_FIRST_N" => SapoDataConnectorOperator::MaskFirstN,
"MASK_LAST_N" => SapoDataConnectorOperator::MaskLastN,
"MULTIPLICATION" => SapoDataConnectorOperator::Multiplication,
"NOT_EQUAL_TO" => SapoDataConnectorOperator::NotEqualTo,
"NO_OP" => SapoDataConnectorOperator::NoOp,
"PROJECTION" => SapoDataConnectorOperator::Projection,
"SUBTRACTION" => SapoDataConnectorOperator::Subtraction,
"VALIDATE_NON_NEGATIVE" => SapoDataConnectorOperator::ValidateNonNegative,
"VALIDATE_NON_NULL" => SapoDataConnectorOperator::ValidateNonNull,
"VALIDATE_NON_ZERO" => SapoDataConnectorOperator::ValidateNonZero,
"VALIDATE_NUMERIC" => SapoDataConnectorOperator::ValidateNumeric,
other => SapoDataConnectorOperator::Unknown(other.to_owned()),
}
}
}
impl std::str::FromStr for SapoDataConnectorOperator {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(SapoDataConnectorOperator::from(s))
}
}
impl SapoDataConnectorOperator {
pub fn as_str(&self) -> &str {
match self {
SapoDataConnectorOperator::Addition => "ADDITION",
SapoDataConnectorOperator::Between => "BETWEEN",
SapoDataConnectorOperator::Contains => "CONTAINS",
SapoDataConnectorOperator::Division => "DIVISION",
SapoDataConnectorOperator::EqualTo => "EQUAL_TO",
SapoDataConnectorOperator::GreaterThan => "GREATER_THAN",
SapoDataConnectorOperator::GreaterThanOrEqualTo => "GREATER_THAN_OR_EQUAL_TO",
SapoDataConnectorOperator::LessThan => "LESS_THAN",
SapoDataConnectorOperator::LessThanOrEqualTo => "LESS_THAN_OR_EQUAL_TO",
SapoDataConnectorOperator::MaskAll => "MASK_ALL",
SapoDataConnectorOperator::MaskFirstN => "MASK_FIRST_N",
SapoDataConnectorOperator::MaskLastN => "MASK_LAST_N",
SapoDataConnectorOperator::Multiplication => "MULTIPLICATION",
SapoDataConnectorOperator::NotEqualTo => "NOT_EQUAL_TO",
SapoDataConnectorOperator::NoOp => "NO_OP",
SapoDataConnectorOperator::Projection => "PROJECTION",
SapoDataConnectorOperator::Subtraction => "SUBTRACTION",
SapoDataConnectorOperator::ValidateNonNegative => "VALIDATE_NON_NEGATIVE",
SapoDataConnectorOperator::ValidateNonNull => "VALIDATE_NON_NULL",
SapoDataConnectorOperator::ValidateNonZero => "VALIDATE_NON_ZERO",
SapoDataConnectorOperator::ValidateNumeric => "VALIDATE_NUMERIC",
SapoDataConnectorOperator::Unknown(s) => s.as_ref(),
}
}
pub fn values() -> &'static [&'static str] {
&[
"ADDITION",
"BETWEEN",
"CONTAINS",
"DIVISION",
"EQUAL_TO",
"GREATER_THAN",
"GREATER_THAN_OR_EQUAL_TO",
"LESS_THAN",
"LESS_THAN_OR_EQUAL_TO",
"MASK_ALL",
"MASK_FIRST_N",
"MASK_LAST_N",
"MULTIPLICATION",
"NOT_EQUAL_TO",
"NO_OP",
"PROJECTION",
"SUBTRACTION",
"VALIDATE_NON_NEGATIVE",
"VALIDATE_NON_NULL",
"VALIDATE_NON_ZERO",
"VALIDATE_NUMERIC",
]
}
}
impl AsRef<str> for SapoDataConnectorOperator {
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 ZendeskConnectorOperator {
#[allow(missing_docs)] Addition,
#[allow(missing_docs)] Division,
#[allow(missing_docs)] GreaterThan,
#[allow(missing_docs)] MaskAll,
#[allow(missing_docs)] MaskFirstN,
#[allow(missing_docs)] MaskLastN,
#[allow(missing_docs)] Multiplication,
#[allow(missing_docs)] NoOp,
#[allow(missing_docs)] Projection,
#[allow(missing_docs)] Subtraction,
#[allow(missing_docs)] ValidateNonNegative,
#[allow(missing_docs)] ValidateNonNull,
#[allow(missing_docs)] ValidateNonZero,
#[allow(missing_docs)] ValidateNumeric,
Unknown(String),
}
impl std::convert::From<&str> for ZendeskConnectorOperator {
fn from(s: &str) -> Self {
match s {
"ADDITION" => ZendeskConnectorOperator::Addition,
"DIVISION" => ZendeskConnectorOperator::Division,
"GREATER_THAN" => ZendeskConnectorOperator::GreaterThan,
"MASK_ALL" => ZendeskConnectorOperator::MaskAll,
"MASK_FIRST_N" => ZendeskConnectorOperator::MaskFirstN,
"MASK_LAST_N" => ZendeskConnectorOperator::MaskLastN,
"MULTIPLICATION" => ZendeskConnectorOperator::Multiplication,
"NO_OP" => ZendeskConnectorOperator::NoOp,
"PROJECTION" => ZendeskConnectorOperator::Projection,
"SUBTRACTION" => ZendeskConnectorOperator::Subtraction,
"VALIDATE_NON_NEGATIVE" => ZendeskConnectorOperator::ValidateNonNegative,
"VALIDATE_NON_NULL" => ZendeskConnectorOperator::ValidateNonNull,
"VALIDATE_NON_ZERO" => ZendeskConnectorOperator::ValidateNonZero,
"VALIDATE_NUMERIC" => ZendeskConnectorOperator::ValidateNumeric,
other => ZendeskConnectorOperator::Unknown(other.to_owned()),
}
}
}
impl std::str::FromStr for ZendeskConnectorOperator {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(ZendeskConnectorOperator::from(s))
}
}
impl ZendeskConnectorOperator {
pub fn as_str(&self) -> &str {
match self {
ZendeskConnectorOperator::Addition => "ADDITION",
ZendeskConnectorOperator::Division => "DIVISION",
ZendeskConnectorOperator::GreaterThan => "GREATER_THAN",
ZendeskConnectorOperator::MaskAll => "MASK_ALL",
ZendeskConnectorOperator::MaskFirstN => "MASK_FIRST_N",
ZendeskConnectorOperator::MaskLastN => "MASK_LAST_N",
ZendeskConnectorOperator::Multiplication => "MULTIPLICATION",
ZendeskConnectorOperator::NoOp => "NO_OP",
ZendeskConnectorOperator::Projection => "PROJECTION",
ZendeskConnectorOperator::Subtraction => "SUBTRACTION",
ZendeskConnectorOperator::ValidateNonNegative => "VALIDATE_NON_NEGATIVE",
ZendeskConnectorOperator::ValidateNonNull => "VALIDATE_NON_NULL",
ZendeskConnectorOperator::ValidateNonZero => "VALIDATE_NON_ZERO",
ZendeskConnectorOperator::ValidateNumeric => "VALIDATE_NUMERIC",
ZendeskConnectorOperator::Unknown(s) => s.as_ref(),
}
}
pub fn values() -> &'static [&'static str] {
&[
"ADDITION",
"DIVISION",
"GREATER_THAN",
"MASK_ALL",
"MASK_FIRST_N",
"MASK_LAST_N",
"MULTIPLICATION",
"NO_OP",
"PROJECTION",
"SUBTRACTION",
"VALIDATE_NON_NEGATIVE",
"VALIDATE_NON_NULL",
"VALIDATE_NON_ZERO",
"VALIDATE_NUMERIC",
]
}
}
impl AsRef<str> for ZendeskConnectorOperator {
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 VeevaConnectorOperator {
#[allow(missing_docs)] Addition,
#[allow(missing_docs)] Between,
#[allow(missing_docs)] Contains,
#[allow(missing_docs)] Division,
#[allow(missing_docs)] EqualTo,
#[allow(missing_docs)] GreaterThan,
#[allow(missing_docs)] GreaterThanOrEqualTo,
#[allow(missing_docs)] LessThan,
#[allow(missing_docs)] LessThanOrEqualTo,
#[allow(missing_docs)] MaskAll,
#[allow(missing_docs)] MaskFirstN,
#[allow(missing_docs)] MaskLastN,
#[allow(missing_docs)] Multiplication,
#[allow(missing_docs)] NotEqualTo,
#[allow(missing_docs)] NoOp,
#[allow(missing_docs)] Projection,
#[allow(missing_docs)] Subtraction,
#[allow(missing_docs)] ValidateNonNegative,
#[allow(missing_docs)] ValidateNonNull,
#[allow(missing_docs)] ValidateNonZero,
#[allow(missing_docs)] ValidateNumeric,
Unknown(String),
}
impl std::convert::From<&str> for VeevaConnectorOperator {
fn from(s: &str) -> Self {
match s {
"ADDITION" => VeevaConnectorOperator::Addition,
"BETWEEN" => VeevaConnectorOperator::Between,
"CONTAINS" => VeevaConnectorOperator::Contains,
"DIVISION" => VeevaConnectorOperator::Division,
"EQUAL_TO" => VeevaConnectorOperator::EqualTo,
"GREATER_THAN" => VeevaConnectorOperator::GreaterThan,
"GREATER_THAN_OR_EQUAL_TO" => VeevaConnectorOperator::GreaterThanOrEqualTo,
"LESS_THAN" => VeevaConnectorOperator::LessThan,
"LESS_THAN_OR_EQUAL_TO" => VeevaConnectorOperator::LessThanOrEqualTo,
"MASK_ALL" => VeevaConnectorOperator::MaskAll,
"MASK_FIRST_N" => VeevaConnectorOperator::MaskFirstN,
"MASK_LAST_N" => VeevaConnectorOperator::MaskLastN,
"MULTIPLICATION" => VeevaConnectorOperator::Multiplication,
"NOT_EQUAL_TO" => VeevaConnectorOperator::NotEqualTo,
"NO_OP" => VeevaConnectorOperator::NoOp,
"PROJECTION" => VeevaConnectorOperator::Projection,
"SUBTRACTION" => VeevaConnectorOperator::Subtraction,
"VALIDATE_NON_NEGATIVE" => VeevaConnectorOperator::ValidateNonNegative,
"VALIDATE_NON_NULL" => VeevaConnectorOperator::ValidateNonNull,
"VALIDATE_NON_ZERO" => VeevaConnectorOperator::ValidateNonZero,
"VALIDATE_NUMERIC" => VeevaConnectorOperator::ValidateNumeric,
other => VeevaConnectorOperator::Unknown(other.to_owned()),
}
}
}
impl std::str::FromStr for VeevaConnectorOperator {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(VeevaConnectorOperator::from(s))
}
}
impl VeevaConnectorOperator {
pub fn as_str(&self) -> &str {
match self {
VeevaConnectorOperator::Addition => "ADDITION",
VeevaConnectorOperator::Between => "BETWEEN",
VeevaConnectorOperator::Contains => "CONTAINS",
VeevaConnectorOperator::Division => "DIVISION",
VeevaConnectorOperator::EqualTo => "EQUAL_TO",
VeevaConnectorOperator::GreaterThan => "GREATER_THAN",
VeevaConnectorOperator::GreaterThanOrEqualTo => "GREATER_THAN_OR_EQUAL_TO",
VeevaConnectorOperator::LessThan => "LESS_THAN",
VeevaConnectorOperator::LessThanOrEqualTo => "LESS_THAN_OR_EQUAL_TO",
VeevaConnectorOperator::MaskAll => "MASK_ALL",
VeevaConnectorOperator::MaskFirstN => "MASK_FIRST_N",
VeevaConnectorOperator::MaskLastN => "MASK_LAST_N",
VeevaConnectorOperator::Multiplication => "MULTIPLICATION",
VeevaConnectorOperator::NotEqualTo => "NOT_EQUAL_TO",
VeevaConnectorOperator::NoOp => "NO_OP",
VeevaConnectorOperator::Projection => "PROJECTION",
VeevaConnectorOperator::Subtraction => "SUBTRACTION",
VeevaConnectorOperator::ValidateNonNegative => "VALIDATE_NON_NEGATIVE",
VeevaConnectorOperator::ValidateNonNull => "VALIDATE_NON_NULL",
VeevaConnectorOperator::ValidateNonZero => "VALIDATE_NON_ZERO",
VeevaConnectorOperator::ValidateNumeric => "VALIDATE_NUMERIC",
VeevaConnectorOperator::Unknown(s) => s.as_ref(),
}
}
pub fn values() -> &'static [&'static str] {
&[
"ADDITION",
"BETWEEN",
"CONTAINS",
"DIVISION",
"EQUAL_TO",
"GREATER_THAN",
"GREATER_THAN_OR_EQUAL_TO",
"LESS_THAN",
"LESS_THAN_OR_EQUAL_TO",
"MASK_ALL",
"MASK_FIRST_N",
"MASK_LAST_N",
"MULTIPLICATION",
"NOT_EQUAL_TO",
"NO_OP",
"PROJECTION",
"SUBTRACTION",
"VALIDATE_NON_NEGATIVE",
"VALIDATE_NON_NULL",
"VALIDATE_NON_ZERO",
"VALIDATE_NUMERIC",
]
}
}
impl AsRef<str> for VeevaConnectorOperator {
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 TrendmicroConnectorOperator {
#[allow(missing_docs)] Addition,
#[allow(missing_docs)] Division,
#[allow(missing_docs)] EqualTo,
#[allow(missing_docs)] MaskAll,
#[allow(missing_docs)] MaskFirstN,
#[allow(missing_docs)] MaskLastN,
#[allow(missing_docs)] Multiplication,
#[allow(missing_docs)] NoOp,
#[allow(missing_docs)] Projection,
#[allow(missing_docs)] Subtraction,
#[allow(missing_docs)] ValidateNonNegative,
#[allow(missing_docs)] ValidateNonNull,
#[allow(missing_docs)] ValidateNonZero,
#[allow(missing_docs)] ValidateNumeric,
Unknown(String),
}
impl std::convert::From<&str> for TrendmicroConnectorOperator {
fn from(s: &str) -> Self {
match s {
"ADDITION" => TrendmicroConnectorOperator::Addition,
"DIVISION" => TrendmicroConnectorOperator::Division,
"EQUAL_TO" => TrendmicroConnectorOperator::EqualTo,
"MASK_ALL" => TrendmicroConnectorOperator::MaskAll,
"MASK_FIRST_N" => TrendmicroConnectorOperator::MaskFirstN,
"MASK_LAST_N" => TrendmicroConnectorOperator::MaskLastN,
"MULTIPLICATION" => TrendmicroConnectorOperator::Multiplication,
"NO_OP" => TrendmicroConnectorOperator::NoOp,
"PROJECTION" => TrendmicroConnectorOperator::Projection,
"SUBTRACTION" => TrendmicroConnectorOperator::Subtraction,
"VALIDATE_NON_NEGATIVE" => TrendmicroConnectorOperator::ValidateNonNegative,
"VALIDATE_NON_NULL" => TrendmicroConnectorOperator::ValidateNonNull,
"VALIDATE_NON_ZERO" => TrendmicroConnectorOperator::ValidateNonZero,
"VALIDATE_NUMERIC" => TrendmicroConnectorOperator::ValidateNumeric,
other => TrendmicroConnectorOperator::Unknown(other.to_owned()),
}
}
}
impl std::str::FromStr for TrendmicroConnectorOperator {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(TrendmicroConnectorOperator::from(s))
}
}
impl TrendmicroConnectorOperator {
pub fn as_str(&self) -> &str {
match self {
TrendmicroConnectorOperator::Addition => "ADDITION",
TrendmicroConnectorOperator::Division => "DIVISION",
TrendmicroConnectorOperator::EqualTo => "EQUAL_TO",
TrendmicroConnectorOperator::MaskAll => "MASK_ALL",
TrendmicroConnectorOperator::MaskFirstN => "MASK_FIRST_N",
TrendmicroConnectorOperator::MaskLastN => "MASK_LAST_N",
TrendmicroConnectorOperator::Multiplication => "MULTIPLICATION",
TrendmicroConnectorOperator::NoOp => "NO_OP",
TrendmicroConnectorOperator::Projection => "PROJECTION",
TrendmicroConnectorOperator::Subtraction => "SUBTRACTION",
TrendmicroConnectorOperator::ValidateNonNegative => "VALIDATE_NON_NEGATIVE",
TrendmicroConnectorOperator::ValidateNonNull => "VALIDATE_NON_NULL",
TrendmicroConnectorOperator::ValidateNonZero => "VALIDATE_NON_ZERO",
TrendmicroConnectorOperator::ValidateNumeric => "VALIDATE_NUMERIC",
TrendmicroConnectorOperator::Unknown(s) => s.as_ref(),
}
}
pub fn values() -> &'static [&'static str] {
&[
"ADDITION",
"DIVISION",
"EQUAL_TO",
"MASK_ALL",
"MASK_FIRST_N",
"MASK_LAST_N",
"MULTIPLICATION",
"NO_OP",
"PROJECTION",
"SUBTRACTION",
"VALIDATE_NON_NEGATIVE",
"VALIDATE_NON_NULL",
"VALIDATE_NON_ZERO",
"VALIDATE_NUMERIC",
]
}
}
impl AsRef<str> for TrendmicroConnectorOperator {
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 SlackConnectorOperator {
#[allow(missing_docs)] Addition,
#[allow(missing_docs)] Between,
#[allow(missing_docs)] Division,
#[allow(missing_docs)] EqualTo,
#[allow(missing_docs)] GreaterThan,
#[allow(missing_docs)] GreaterThanOrEqualTo,
#[allow(missing_docs)] LessThan,
#[allow(missing_docs)] LessThanOrEqualTo,
#[allow(missing_docs)] MaskAll,
#[allow(missing_docs)] MaskFirstN,
#[allow(missing_docs)] MaskLastN,
#[allow(missing_docs)] Multiplication,
#[allow(missing_docs)] NoOp,
#[allow(missing_docs)] Projection,
#[allow(missing_docs)] Subtraction,
#[allow(missing_docs)] ValidateNonNegative,
#[allow(missing_docs)] ValidateNonNull,
#[allow(missing_docs)] ValidateNonZero,
#[allow(missing_docs)] ValidateNumeric,
Unknown(String),
}
impl std::convert::From<&str> for SlackConnectorOperator {
fn from(s: &str) -> Self {
match s {
"ADDITION" => SlackConnectorOperator::Addition,
"BETWEEN" => SlackConnectorOperator::Between,
"DIVISION" => SlackConnectorOperator::Division,
"EQUAL_TO" => SlackConnectorOperator::EqualTo,
"GREATER_THAN" => SlackConnectorOperator::GreaterThan,
"GREATER_THAN_OR_EQUAL_TO" => SlackConnectorOperator::GreaterThanOrEqualTo,
"LESS_THAN" => SlackConnectorOperator::LessThan,
"LESS_THAN_OR_EQUAL_TO" => SlackConnectorOperator::LessThanOrEqualTo,
"MASK_ALL" => SlackConnectorOperator::MaskAll,
"MASK_FIRST_N" => SlackConnectorOperator::MaskFirstN,
"MASK_LAST_N" => SlackConnectorOperator::MaskLastN,
"MULTIPLICATION" => SlackConnectorOperator::Multiplication,
"NO_OP" => SlackConnectorOperator::NoOp,
"PROJECTION" => SlackConnectorOperator::Projection,
"SUBTRACTION" => SlackConnectorOperator::Subtraction,
"VALIDATE_NON_NEGATIVE" => SlackConnectorOperator::ValidateNonNegative,
"VALIDATE_NON_NULL" => SlackConnectorOperator::ValidateNonNull,
"VALIDATE_NON_ZERO" => SlackConnectorOperator::ValidateNonZero,
"VALIDATE_NUMERIC" => SlackConnectorOperator::ValidateNumeric,
other => SlackConnectorOperator::Unknown(other.to_owned()),
}
}
}
impl std::str::FromStr for SlackConnectorOperator {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(SlackConnectorOperator::from(s))
}
}
impl SlackConnectorOperator {
pub fn as_str(&self) -> &str {
match self {
SlackConnectorOperator::Addition => "ADDITION",
SlackConnectorOperator::Between => "BETWEEN",
SlackConnectorOperator::Division => "DIVISION",
SlackConnectorOperator::EqualTo => "EQUAL_TO",
SlackConnectorOperator::GreaterThan => "GREATER_THAN",
SlackConnectorOperator::GreaterThanOrEqualTo => "GREATER_THAN_OR_EQUAL_TO",
SlackConnectorOperator::LessThan => "LESS_THAN",
SlackConnectorOperator::LessThanOrEqualTo => "LESS_THAN_OR_EQUAL_TO",
SlackConnectorOperator::MaskAll => "MASK_ALL",
SlackConnectorOperator::MaskFirstN => "MASK_FIRST_N",
SlackConnectorOperator::MaskLastN => "MASK_LAST_N",
SlackConnectorOperator::Multiplication => "MULTIPLICATION",
SlackConnectorOperator::NoOp => "NO_OP",
SlackConnectorOperator::Projection => "PROJECTION",
SlackConnectorOperator::Subtraction => "SUBTRACTION",
SlackConnectorOperator::ValidateNonNegative => "VALIDATE_NON_NEGATIVE",
SlackConnectorOperator::ValidateNonNull => "VALIDATE_NON_NULL",
SlackConnectorOperator::ValidateNonZero => "VALIDATE_NON_ZERO",
SlackConnectorOperator::ValidateNumeric => "VALIDATE_NUMERIC",
SlackConnectorOperator::Unknown(s) => s.as_ref(),
}
}
pub fn values() -> &'static [&'static str] {
&[
"ADDITION",
"BETWEEN",
"DIVISION",
"EQUAL_TO",
"GREATER_THAN",
"GREATER_THAN_OR_EQUAL_TO",
"LESS_THAN",
"LESS_THAN_OR_EQUAL_TO",
"MASK_ALL",
"MASK_FIRST_N",
"MASK_LAST_N",
"MULTIPLICATION",
"NO_OP",
"PROJECTION",
"SUBTRACTION",
"VALIDATE_NON_NEGATIVE",
"VALIDATE_NON_NULL",
"VALIDATE_NON_ZERO",
"VALIDATE_NUMERIC",
]
}
}
impl AsRef<str> for SlackConnectorOperator {
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 SingularConnectorOperator {
#[allow(missing_docs)] Addition,
#[allow(missing_docs)] Division,
#[allow(missing_docs)] EqualTo,
#[allow(missing_docs)] MaskAll,
#[allow(missing_docs)] MaskFirstN,
#[allow(missing_docs)] MaskLastN,
#[allow(missing_docs)] Multiplication,
#[allow(missing_docs)] NoOp,
#[allow(missing_docs)] Projection,
#[allow(missing_docs)] Subtraction,
#[allow(missing_docs)] ValidateNonNegative,
#[allow(missing_docs)] ValidateNonNull,
#[allow(missing_docs)] ValidateNonZero,
#[allow(missing_docs)] ValidateNumeric,
Unknown(String),
}
impl std::convert::From<&str> for SingularConnectorOperator {
fn from(s: &str) -> Self {
match s {
"ADDITION" => SingularConnectorOperator::Addition,
"DIVISION" => SingularConnectorOperator::Division,
"EQUAL_TO" => SingularConnectorOperator::EqualTo,
"MASK_ALL" => SingularConnectorOperator::MaskAll,
"MASK_FIRST_N" => SingularConnectorOperator::MaskFirstN,
"MASK_LAST_N" => SingularConnectorOperator::MaskLastN,
"MULTIPLICATION" => SingularConnectorOperator::Multiplication,
"NO_OP" => SingularConnectorOperator::NoOp,
"PROJECTION" => SingularConnectorOperator::Projection,
"SUBTRACTION" => SingularConnectorOperator::Subtraction,
"VALIDATE_NON_NEGATIVE" => SingularConnectorOperator::ValidateNonNegative,
"VALIDATE_NON_NULL" => SingularConnectorOperator::ValidateNonNull,
"VALIDATE_NON_ZERO" => SingularConnectorOperator::ValidateNonZero,
"VALIDATE_NUMERIC" => SingularConnectorOperator::ValidateNumeric,
other => SingularConnectorOperator::Unknown(other.to_owned()),
}
}
}
impl std::str::FromStr for SingularConnectorOperator {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(SingularConnectorOperator::from(s))
}
}
impl SingularConnectorOperator {
pub fn as_str(&self) -> &str {
match self {
SingularConnectorOperator::Addition => "ADDITION",
SingularConnectorOperator::Division => "DIVISION",
SingularConnectorOperator::EqualTo => "EQUAL_TO",
SingularConnectorOperator::MaskAll => "MASK_ALL",
SingularConnectorOperator::MaskFirstN => "MASK_FIRST_N",
SingularConnectorOperator::MaskLastN => "MASK_LAST_N",
SingularConnectorOperator::Multiplication => "MULTIPLICATION",
SingularConnectorOperator::NoOp => "NO_OP",
SingularConnectorOperator::Projection => "PROJECTION",
SingularConnectorOperator::Subtraction => "SUBTRACTION",
SingularConnectorOperator::ValidateNonNegative => "VALIDATE_NON_NEGATIVE",
SingularConnectorOperator::ValidateNonNull => "VALIDATE_NON_NULL",
SingularConnectorOperator::ValidateNonZero => "VALIDATE_NON_ZERO",
SingularConnectorOperator::ValidateNumeric => "VALIDATE_NUMERIC",
SingularConnectorOperator::Unknown(s) => s.as_ref(),
}
}
pub fn values() -> &'static [&'static str] {
&[
"ADDITION",
"DIVISION",
"EQUAL_TO",
"MASK_ALL",
"MASK_FIRST_N",
"MASK_LAST_N",
"MULTIPLICATION",
"NO_OP",
"PROJECTION",
"SUBTRACTION",
"VALIDATE_NON_NEGATIVE",
"VALIDATE_NON_NULL",
"VALIDATE_NON_ZERO",
"VALIDATE_NUMERIC",
]
}
}
impl AsRef<str> for SingularConnectorOperator {
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 ServiceNowConnectorOperator {
#[allow(missing_docs)] Addition,
#[allow(missing_docs)] Between,
#[allow(missing_docs)] Contains,
#[allow(missing_docs)] Division,
#[allow(missing_docs)] EqualTo,
#[allow(missing_docs)] GreaterThan,
#[allow(missing_docs)] GreaterThanOrEqualTo,
#[allow(missing_docs)] LessThan,
#[allow(missing_docs)] LessThanOrEqualTo,
#[allow(missing_docs)] MaskAll,
#[allow(missing_docs)] MaskFirstN,
#[allow(missing_docs)] MaskLastN,
#[allow(missing_docs)] Multiplication,
#[allow(missing_docs)] NotEqualTo,
#[allow(missing_docs)] NoOp,
#[allow(missing_docs)] Projection,
#[allow(missing_docs)] Subtraction,
#[allow(missing_docs)] ValidateNonNegative,
#[allow(missing_docs)] ValidateNonNull,
#[allow(missing_docs)] ValidateNonZero,
#[allow(missing_docs)] ValidateNumeric,
Unknown(String),
}
impl std::convert::From<&str> for ServiceNowConnectorOperator {
fn from(s: &str) -> Self {
match s {
"ADDITION" => ServiceNowConnectorOperator::Addition,
"BETWEEN" => ServiceNowConnectorOperator::Between,
"CONTAINS" => ServiceNowConnectorOperator::Contains,
"DIVISION" => ServiceNowConnectorOperator::Division,
"EQUAL_TO" => ServiceNowConnectorOperator::EqualTo,
"GREATER_THAN" => ServiceNowConnectorOperator::GreaterThan,
"GREATER_THAN_OR_EQUAL_TO" => ServiceNowConnectorOperator::GreaterThanOrEqualTo,
"LESS_THAN" => ServiceNowConnectorOperator::LessThan,
"LESS_THAN_OR_EQUAL_TO" => ServiceNowConnectorOperator::LessThanOrEqualTo,
"MASK_ALL" => ServiceNowConnectorOperator::MaskAll,
"MASK_FIRST_N" => ServiceNowConnectorOperator::MaskFirstN,
"MASK_LAST_N" => ServiceNowConnectorOperator::MaskLastN,
"MULTIPLICATION" => ServiceNowConnectorOperator::Multiplication,
"NOT_EQUAL_TO" => ServiceNowConnectorOperator::NotEqualTo,
"NO_OP" => ServiceNowConnectorOperator::NoOp,
"PROJECTION" => ServiceNowConnectorOperator::Projection,
"SUBTRACTION" => ServiceNowConnectorOperator::Subtraction,
"VALIDATE_NON_NEGATIVE" => ServiceNowConnectorOperator::ValidateNonNegative,
"VALIDATE_NON_NULL" => ServiceNowConnectorOperator::ValidateNonNull,
"VALIDATE_NON_ZERO" => ServiceNowConnectorOperator::ValidateNonZero,
"VALIDATE_NUMERIC" => ServiceNowConnectorOperator::ValidateNumeric,
other => ServiceNowConnectorOperator::Unknown(other.to_owned()),
}
}
}
impl std::str::FromStr for ServiceNowConnectorOperator {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(ServiceNowConnectorOperator::from(s))
}
}
impl ServiceNowConnectorOperator {
pub fn as_str(&self) -> &str {
match self {
ServiceNowConnectorOperator::Addition => "ADDITION",
ServiceNowConnectorOperator::Between => "BETWEEN",
ServiceNowConnectorOperator::Contains => "CONTAINS",
ServiceNowConnectorOperator::Division => "DIVISION",
ServiceNowConnectorOperator::EqualTo => "EQUAL_TO",
ServiceNowConnectorOperator::GreaterThan => "GREATER_THAN",
ServiceNowConnectorOperator::GreaterThanOrEqualTo => "GREATER_THAN_OR_EQUAL_TO",
ServiceNowConnectorOperator::LessThan => "LESS_THAN",
ServiceNowConnectorOperator::LessThanOrEqualTo => "LESS_THAN_OR_EQUAL_TO",
ServiceNowConnectorOperator::MaskAll => "MASK_ALL",
ServiceNowConnectorOperator::MaskFirstN => "MASK_FIRST_N",
ServiceNowConnectorOperator::MaskLastN => "MASK_LAST_N",
ServiceNowConnectorOperator::Multiplication => "MULTIPLICATION",
ServiceNowConnectorOperator::NotEqualTo => "NOT_EQUAL_TO",
ServiceNowConnectorOperator::NoOp => "NO_OP",
ServiceNowConnectorOperator::Projection => "PROJECTION",
ServiceNowConnectorOperator::Subtraction => "SUBTRACTION",
ServiceNowConnectorOperator::ValidateNonNegative => "VALIDATE_NON_NEGATIVE",
ServiceNowConnectorOperator::ValidateNonNull => "VALIDATE_NON_NULL",
ServiceNowConnectorOperator::ValidateNonZero => "VALIDATE_NON_ZERO",
ServiceNowConnectorOperator::ValidateNumeric => "VALIDATE_NUMERIC",
ServiceNowConnectorOperator::Unknown(s) => s.as_ref(),
}
}
pub fn values() -> &'static [&'static str] {
&[
"ADDITION",
"BETWEEN",
"CONTAINS",
"DIVISION",
"EQUAL_TO",
"GREATER_THAN",
"GREATER_THAN_OR_EQUAL_TO",
"LESS_THAN",
"LESS_THAN_OR_EQUAL_TO",
"MASK_ALL",
"MASK_FIRST_N",
"MASK_LAST_N",
"MULTIPLICATION",
"NOT_EQUAL_TO",
"NO_OP",
"PROJECTION",
"SUBTRACTION",
"VALIDATE_NON_NEGATIVE",
"VALIDATE_NON_NULL",
"VALIDATE_NON_ZERO",
"VALIDATE_NUMERIC",
]
}
}
impl AsRef<str> for ServiceNowConnectorOperator {
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 SalesforceConnectorOperator {
#[allow(missing_docs)] Addition,
#[allow(missing_docs)] Between,
#[allow(missing_docs)] Contains,
#[allow(missing_docs)] Division,
#[allow(missing_docs)] EqualTo,
#[allow(missing_docs)] GreaterThan,
#[allow(missing_docs)] GreaterThanOrEqualTo,
#[allow(missing_docs)] LessThan,
#[allow(missing_docs)] LessThanOrEqualTo,
#[allow(missing_docs)] MaskAll,
#[allow(missing_docs)] MaskFirstN,
#[allow(missing_docs)] MaskLastN,
#[allow(missing_docs)] Multiplication,
#[allow(missing_docs)] NotEqualTo,
#[allow(missing_docs)] NoOp,
#[allow(missing_docs)] Projection,
#[allow(missing_docs)] Subtraction,
#[allow(missing_docs)] ValidateNonNegative,
#[allow(missing_docs)] ValidateNonNull,
#[allow(missing_docs)] ValidateNonZero,
#[allow(missing_docs)] ValidateNumeric,
Unknown(String),
}
impl std::convert::From<&str> for SalesforceConnectorOperator {
fn from(s: &str) -> Self {
match s {
"ADDITION" => SalesforceConnectorOperator::Addition,
"BETWEEN" => SalesforceConnectorOperator::Between,
"CONTAINS" => SalesforceConnectorOperator::Contains,
"DIVISION" => SalesforceConnectorOperator::Division,
"EQUAL_TO" => SalesforceConnectorOperator::EqualTo,
"GREATER_THAN" => SalesforceConnectorOperator::GreaterThan,
"GREATER_THAN_OR_EQUAL_TO" => SalesforceConnectorOperator::GreaterThanOrEqualTo,
"LESS_THAN" => SalesforceConnectorOperator::LessThan,
"LESS_THAN_OR_EQUAL_TO" => SalesforceConnectorOperator::LessThanOrEqualTo,
"MASK_ALL" => SalesforceConnectorOperator::MaskAll,
"MASK_FIRST_N" => SalesforceConnectorOperator::MaskFirstN,
"MASK_LAST_N" => SalesforceConnectorOperator::MaskLastN,
"MULTIPLICATION" => SalesforceConnectorOperator::Multiplication,
"NOT_EQUAL_TO" => SalesforceConnectorOperator::NotEqualTo,
"NO_OP" => SalesforceConnectorOperator::NoOp,
"PROJECTION" => SalesforceConnectorOperator::Projection,
"SUBTRACTION" => SalesforceConnectorOperator::Subtraction,
"VALIDATE_NON_NEGATIVE" => SalesforceConnectorOperator::ValidateNonNegative,
"VALIDATE_NON_NULL" => SalesforceConnectorOperator::ValidateNonNull,
"VALIDATE_NON_ZERO" => SalesforceConnectorOperator::ValidateNonZero,
"VALIDATE_NUMERIC" => SalesforceConnectorOperator::ValidateNumeric,
other => SalesforceConnectorOperator::Unknown(other.to_owned()),
}
}
}
impl std::str::FromStr for SalesforceConnectorOperator {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(SalesforceConnectorOperator::from(s))
}
}
impl SalesforceConnectorOperator {
pub fn as_str(&self) -> &str {
match self {
SalesforceConnectorOperator::Addition => "ADDITION",
SalesforceConnectorOperator::Between => "BETWEEN",
SalesforceConnectorOperator::Contains => "CONTAINS",
SalesforceConnectorOperator::Division => "DIVISION",
SalesforceConnectorOperator::EqualTo => "EQUAL_TO",
SalesforceConnectorOperator::GreaterThan => "GREATER_THAN",
SalesforceConnectorOperator::GreaterThanOrEqualTo => "GREATER_THAN_OR_EQUAL_TO",
SalesforceConnectorOperator::LessThan => "LESS_THAN",
SalesforceConnectorOperator::LessThanOrEqualTo => "LESS_THAN_OR_EQUAL_TO",
SalesforceConnectorOperator::MaskAll => "MASK_ALL",
SalesforceConnectorOperator::MaskFirstN => "MASK_FIRST_N",
SalesforceConnectorOperator::MaskLastN => "MASK_LAST_N",
SalesforceConnectorOperator::Multiplication => "MULTIPLICATION",
SalesforceConnectorOperator::NotEqualTo => "NOT_EQUAL_TO",
SalesforceConnectorOperator::NoOp => "NO_OP",
SalesforceConnectorOperator::Projection => "PROJECTION",
SalesforceConnectorOperator::Subtraction => "SUBTRACTION",
SalesforceConnectorOperator::ValidateNonNegative => "VALIDATE_NON_NEGATIVE",
SalesforceConnectorOperator::ValidateNonNull => "VALIDATE_NON_NULL",
SalesforceConnectorOperator::ValidateNonZero => "VALIDATE_NON_ZERO",
SalesforceConnectorOperator::ValidateNumeric => "VALIDATE_NUMERIC",
SalesforceConnectorOperator::Unknown(s) => s.as_ref(),
}
}
pub fn values() -> &'static [&'static str] {
&[
"ADDITION",
"BETWEEN",
"CONTAINS",
"DIVISION",
"EQUAL_TO",
"GREATER_THAN",
"GREATER_THAN_OR_EQUAL_TO",
"LESS_THAN",
"LESS_THAN_OR_EQUAL_TO",
"MASK_ALL",
"MASK_FIRST_N",
"MASK_LAST_N",
"MULTIPLICATION",
"NOT_EQUAL_TO",
"NO_OP",
"PROJECTION",
"SUBTRACTION",
"VALIDATE_NON_NEGATIVE",
"VALIDATE_NON_NULL",
"VALIDATE_NON_ZERO",
"VALIDATE_NUMERIC",
]
}
}
impl AsRef<str> for SalesforceConnectorOperator {
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 S3ConnectorOperator {
#[allow(missing_docs)] Addition,
#[allow(missing_docs)] Between,
#[allow(missing_docs)] Division,
#[allow(missing_docs)] EqualTo,
#[allow(missing_docs)] GreaterThan,
#[allow(missing_docs)] GreaterThanOrEqualTo,
#[allow(missing_docs)] LessThan,
#[allow(missing_docs)] LessThanOrEqualTo,
#[allow(missing_docs)] MaskAll,
#[allow(missing_docs)] MaskFirstN,
#[allow(missing_docs)] MaskLastN,
#[allow(missing_docs)] Multiplication,
#[allow(missing_docs)] NotEqualTo,
#[allow(missing_docs)] NoOp,
#[allow(missing_docs)] Projection,
#[allow(missing_docs)] Subtraction,
#[allow(missing_docs)] ValidateNonNegative,
#[allow(missing_docs)] ValidateNonNull,
#[allow(missing_docs)] ValidateNonZero,
#[allow(missing_docs)] ValidateNumeric,
Unknown(String),
}
impl std::convert::From<&str> for S3ConnectorOperator {
fn from(s: &str) -> Self {
match s {
"ADDITION" => S3ConnectorOperator::Addition,
"BETWEEN" => S3ConnectorOperator::Between,
"DIVISION" => S3ConnectorOperator::Division,
"EQUAL_TO" => S3ConnectorOperator::EqualTo,
"GREATER_THAN" => S3ConnectorOperator::GreaterThan,
"GREATER_THAN_OR_EQUAL_TO" => S3ConnectorOperator::GreaterThanOrEqualTo,
"LESS_THAN" => S3ConnectorOperator::LessThan,
"LESS_THAN_OR_EQUAL_TO" => S3ConnectorOperator::LessThanOrEqualTo,
"MASK_ALL" => S3ConnectorOperator::MaskAll,
"MASK_FIRST_N" => S3ConnectorOperator::MaskFirstN,
"MASK_LAST_N" => S3ConnectorOperator::MaskLastN,
"MULTIPLICATION" => S3ConnectorOperator::Multiplication,
"NOT_EQUAL_TO" => S3ConnectorOperator::NotEqualTo,
"NO_OP" => S3ConnectorOperator::NoOp,
"PROJECTION" => S3ConnectorOperator::Projection,
"SUBTRACTION" => S3ConnectorOperator::Subtraction,
"VALIDATE_NON_NEGATIVE" => S3ConnectorOperator::ValidateNonNegative,
"VALIDATE_NON_NULL" => S3ConnectorOperator::ValidateNonNull,
"VALIDATE_NON_ZERO" => S3ConnectorOperator::ValidateNonZero,
"VALIDATE_NUMERIC" => S3ConnectorOperator::ValidateNumeric,
other => S3ConnectorOperator::Unknown(other.to_owned()),
}
}
}
impl std::str::FromStr for S3ConnectorOperator {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(S3ConnectorOperator::from(s))
}
}
impl S3ConnectorOperator {
pub fn as_str(&self) -> &str {
match self {
S3ConnectorOperator::Addition => "ADDITION",
S3ConnectorOperator::Between => "BETWEEN",
S3ConnectorOperator::Division => "DIVISION",
S3ConnectorOperator::EqualTo => "EQUAL_TO",
S3ConnectorOperator::GreaterThan => "GREATER_THAN",
S3ConnectorOperator::GreaterThanOrEqualTo => "GREATER_THAN_OR_EQUAL_TO",
S3ConnectorOperator::LessThan => "LESS_THAN",
S3ConnectorOperator::LessThanOrEqualTo => "LESS_THAN_OR_EQUAL_TO",
S3ConnectorOperator::MaskAll => "MASK_ALL",
S3ConnectorOperator::MaskFirstN => "MASK_FIRST_N",
S3ConnectorOperator::MaskLastN => "MASK_LAST_N",
S3ConnectorOperator::Multiplication => "MULTIPLICATION",
S3ConnectorOperator::NotEqualTo => "NOT_EQUAL_TO",
S3ConnectorOperator::NoOp => "NO_OP",
S3ConnectorOperator::Projection => "PROJECTION",
S3ConnectorOperator::Subtraction => "SUBTRACTION",
S3ConnectorOperator::ValidateNonNegative => "VALIDATE_NON_NEGATIVE",
S3ConnectorOperator::ValidateNonNull => "VALIDATE_NON_NULL",
S3ConnectorOperator::ValidateNonZero => "VALIDATE_NON_ZERO",
S3ConnectorOperator::ValidateNumeric => "VALIDATE_NUMERIC",
S3ConnectorOperator::Unknown(s) => s.as_ref(),
}
}
pub fn values() -> &'static [&'static str] {
&[
"ADDITION",
"BETWEEN",
"DIVISION",
"EQUAL_TO",
"GREATER_THAN",
"GREATER_THAN_OR_EQUAL_TO",
"LESS_THAN",
"LESS_THAN_OR_EQUAL_TO",
"MASK_ALL",
"MASK_FIRST_N",
"MASK_LAST_N",
"MULTIPLICATION",
"NOT_EQUAL_TO",
"NO_OP",
"PROJECTION",
"SUBTRACTION",
"VALIDATE_NON_NEGATIVE",
"VALIDATE_NON_NULL",
"VALIDATE_NON_ZERO",
"VALIDATE_NUMERIC",
]
}
}
impl AsRef<str> for S3ConnectorOperator {
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 MarketoConnectorOperator {
#[allow(missing_docs)] Addition,
#[allow(missing_docs)] Between,
#[allow(missing_docs)] Division,
#[allow(missing_docs)] GreaterThan,
#[allow(missing_docs)] LessThan,
#[allow(missing_docs)] MaskAll,
#[allow(missing_docs)] MaskFirstN,
#[allow(missing_docs)] MaskLastN,
#[allow(missing_docs)] Multiplication,
#[allow(missing_docs)] NoOp,
#[allow(missing_docs)] Projection,
#[allow(missing_docs)] Subtraction,
#[allow(missing_docs)] ValidateNonNegative,
#[allow(missing_docs)] ValidateNonNull,
#[allow(missing_docs)] ValidateNonZero,
#[allow(missing_docs)] ValidateNumeric,
Unknown(String),
}
impl std::convert::From<&str> for MarketoConnectorOperator {
fn from(s: &str) -> Self {
match s {
"ADDITION" => MarketoConnectorOperator::Addition,
"BETWEEN" => MarketoConnectorOperator::Between,
"DIVISION" => MarketoConnectorOperator::Division,
"GREATER_THAN" => MarketoConnectorOperator::GreaterThan,
"LESS_THAN" => MarketoConnectorOperator::LessThan,
"MASK_ALL" => MarketoConnectorOperator::MaskAll,
"MASK_FIRST_N" => MarketoConnectorOperator::MaskFirstN,
"MASK_LAST_N" => MarketoConnectorOperator::MaskLastN,
"MULTIPLICATION" => MarketoConnectorOperator::Multiplication,
"NO_OP" => MarketoConnectorOperator::NoOp,
"PROJECTION" => MarketoConnectorOperator::Projection,
"SUBTRACTION" => MarketoConnectorOperator::Subtraction,
"VALIDATE_NON_NEGATIVE" => MarketoConnectorOperator::ValidateNonNegative,
"VALIDATE_NON_NULL" => MarketoConnectorOperator::ValidateNonNull,
"VALIDATE_NON_ZERO" => MarketoConnectorOperator::ValidateNonZero,
"VALIDATE_NUMERIC" => MarketoConnectorOperator::ValidateNumeric,
other => MarketoConnectorOperator::Unknown(other.to_owned()),
}
}
}
impl std::str::FromStr for MarketoConnectorOperator {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(MarketoConnectorOperator::from(s))
}
}
impl MarketoConnectorOperator {
pub fn as_str(&self) -> &str {
match self {
MarketoConnectorOperator::Addition => "ADDITION",
MarketoConnectorOperator::Between => "BETWEEN",
MarketoConnectorOperator::Division => "DIVISION",
MarketoConnectorOperator::GreaterThan => "GREATER_THAN",
MarketoConnectorOperator::LessThan => "LESS_THAN",
MarketoConnectorOperator::MaskAll => "MASK_ALL",
MarketoConnectorOperator::MaskFirstN => "MASK_FIRST_N",
MarketoConnectorOperator::MaskLastN => "MASK_LAST_N",
MarketoConnectorOperator::Multiplication => "MULTIPLICATION",
MarketoConnectorOperator::NoOp => "NO_OP",
MarketoConnectorOperator::Projection => "PROJECTION",
MarketoConnectorOperator::Subtraction => "SUBTRACTION",
MarketoConnectorOperator::ValidateNonNegative => "VALIDATE_NON_NEGATIVE",
MarketoConnectorOperator::ValidateNonNull => "VALIDATE_NON_NULL",
MarketoConnectorOperator::ValidateNonZero => "VALIDATE_NON_ZERO",
MarketoConnectorOperator::ValidateNumeric => "VALIDATE_NUMERIC",
MarketoConnectorOperator::Unknown(s) => s.as_ref(),
}
}
pub fn values() -> &'static [&'static str] {
&[
"ADDITION",
"BETWEEN",
"DIVISION",
"GREATER_THAN",
"LESS_THAN",
"MASK_ALL",
"MASK_FIRST_N",
"MASK_LAST_N",
"MULTIPLICATION",
"NO_OP",
"PROJECTION",
"SUBTRACTION",
"VALIDATE_NON_NEGATIVE",
"VALIDATE_NON_NULL",
"VALIDATE_NON_ZERO",
"VALIDATE_NUMERIC",
]
}
}
impl AsRef<str> for MarketoConnectorOperator {
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 InforNexusConnectorOperator {
#[allow(missing_docs)] Addition,
#[allow(missing_docs)] Between,
#[allow(missing_docs)] Division,
#[allow(missing_docs)] EqualTo,
#[allow(missing_docs)] MaskAll,
#[allow(missing_docs)] MaskFirstN,
#[allow(missing_docs)] MaskLastN,
#[allow(missing_docs)] Multiplication,
#[allow(missing_docs)] NoOp,
#[allow(missing_docs)] Projection,
#[allow(missing_docs)] Subtraction,
#[allow(missing_docs)] ValidateNonNegative,
#[allow(missing_docs)] ValidateNonNull,
#[allow(missing_docs)] ValidateNonZero,
#[allow(missing_docs)] ValidateNumeric,
Unknown(String),
}
impl std::convert::From<&str> for InforNexusConnectorOperator {
fn from(s: &str) -> Self {
match s {
"ADDITION" => InforNexusConnectorOperator::Addition,
"BETWEEN" => InforNexusConnectorOperator::Between,
"DIVISION" => InforNexusConnectorOperator::Division,
"EQUAL_TO" => InforNexusConnectorOperator::EqualTo,
"MASK_ALL" => InforNexusConnectorOperator::MaskAll,
"MASK_FIRST_N" => InforNexusConnectorOperator::MaskFirstN,
"MASK_LAST_N" => InforNexusConnectorOperator::MaskLastN,
"MULTIPLICATION" => InforNexusConnectorOperator::Multiplication,
"NO_OP" => InforNexusConnectorOperator::NoOp,
"PROJECTION" => InforNexusConnectorOperator::Projection,
"SUBTRACTION" => InforNexusConnectorOperator::Subtraction,
"VALIDATE_NON_NEGATIVE" => InforNexusConnectorOperator::ValidateNonNegative,
"VALIDATE_NON_NULL" => InforNexusConnectorOperator::ValidateNonNull,
"VALIDATE_NON_ZERO" => InforNexusConnectorOperator::ValidateNonZero,
"VALIDATE_NUMERIC" => InforNexusConnectorOperator::ValidateNumeric,
other => InforNexusConnectorOperator::Unknown(other.to_owned()),
}
}
}
impl std::str::FromStr for InforNexusConnectorOperator {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(InforNexusConnectorOperator::from(s))
}
}
impl InforNexusConnectorOperator {
pub fn as_str(&self) -> &str {
match self {
InforNexusConnectorOperator::Addition => "ADDITION",
InforNexusConnectorOperator::Between => "BETWEEN",
InforNexusConnectorOperator::Division => "DIVISION",
InforNexusConnectorOperator::EqualTo => "EQUAL_TO",
InforNexusConnectorOperator::MaskAll => "MASK_ALL",
InforNexusConnectorOperator::MaskFirstN => "MASK_FIRST_N",
InforNexusConnectorOperator::MaskLastN => "MASK_LAST_N",
InforNexusConnectorOperator::Multiplication => "MULTIPLICATION",
InforNexusConnectorOperator::NoOp => "NO_OP",
InforNexusConnectorOperator::Projection => "PROJECTION",
InforNexusConnectorOperator::Subtraction => "SUBTRACTION",
InforNexusConnectorOperator::ValidateNonNegative => "VALIDATE_NON_NEGATIVE",
InforNexusConnectorOperator::ValidateNonNull => "VALIDATE_NON_NULL",
InforNexusConnectorOperator::ValidateNonZero => "VALIDATE_NON_ZERO",
InforNexusConnectorOperator::ValidateNumeric => "VALIDATE_NUMERIC",
InforNexusConnectorOperator::Unknown(s) => s.as_ref(),
}
}
pub fn values() -> &'static [&'static str] {
&[
"ADDITION",
"BETWEEN",
"DIVISION",
"EQUAL_TO",
"MASK_ALL",
"MASK_FIRST_N",
"MASK_LAST_N",
"MULTIPLICATION",
"NO_OP",
"PROJECTION",
"SUBTRACTION",
"VALIDATE_NON_NEGATIVE",
"VALIDATE_NON_NULL",
"VALIDATE_NON_ZERO",
"VALIDATE_NUMERIC",
]
}
}
impl AsRef<str> for InforNexusConnectorOperator {
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 GoogleAnalyticsConnectorOperator {
#[allow(missing_docs)] Between,
#[allow(missing_docs)] Projection,
Unknown(String),
}
impl std::convert::From<&str> for GoogleAnalyticsConnectorOperator {
fn from(s: &str) -> Self {
match s {
"BETWEEN" => GoogleAnalyticsConnectorOperator::Between,
"PROJECTION" => GoogleAnalyticsConnectorOperator::Projection,
other => GoogleAnalyticsConnectorOperator::Unknown(other.to_owned()),
}
}
}
impl std::str::FromStr for GoogleAnalyticsConnectorOperator {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(GoogleAnalyticsConnectorOperator::from(s))
}
}
impl GoogleAnalyticsConnectorOperator {
pub fn as_str(&self) -> &str {
match self {
GoogleAnalyticsConnectorOperator::Between => "BETWEEN",
GoogleAnalyticsConnectorOperator::Projection => "PROJECTION",
GoogleAnalyticsConnectorOperator::Unknown(s) => s.as_ref(),
}
}
pub fn values() -> &'static [&'static str] {
&["BETWEEN", "PROJECTION"]
}
}
impl AsRef<str> for GoogleAnalyticsConnectorOperator {
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 DynatraceConnectorOperator {
#[allow(missing_docs)] Addition,
#[allow(missing_docs)] Between,
#[allow(missing_docs)] Division,
#[allow(missing_docs)] EqualTo,
#[allow(missing_docs)] MaskAll,
#[allow(missing_docs)] MaskFirstN,
#[allow(missing_docs)] MaskLastN,
#[allow(missing_docs)] Multiplication,
#[allow(missing_docs)] NoOp,
#[allow(missing_docs)] Projection,
#[allow(missing_docs)] Subtraction,
#[allow(missing_docs)] ValidateNonNegative,
#[allow(missing_docs)] ValidateNonNull,
#[allow(missing_docs)] ValidateNonZero,
#[allow(missing_docs)] ValidateNumeric,
Unknown(String),
}
impl std::convert::From<&str> for DynatraceConnectorOperator {
fn from(s: &str) -> Self {
match s {
"ADDITION" => DynatraceConnectorOperator::Addition,
"BETWEEN" => DynatraceConnectorOperator::Between,
"DIVISION" => DynatraceConnectorOperator::Division,
"EQUAL_TO" => DynatraceConnectorOperator::EqualTo,
"MASK_ALL" => DynatraceConnectorOperator::MaskAll,
"MASK_FIRST_N" => DynatraceConnectorOperator::MaskFirstN,
"MASK_LAST_N" => DynatraceConnectorOperator::MaskLastN,
"MULTIPLICATION" => DynatraceConnectorOperator::Multiplication,
"NO_OP" => DynatraceConnectorOperator::NoOp,
"PROJECTION" => DynatraceConnectorOperator::Projection,
"SUBTRACTION" => DynatraceConnectorOperator::Subtraction,
"VALIDATE_NON_NEGATIVE" => DynatraceConnectorOperator::ValidateNonNegative,
"VALIDATE_NON_NULL" => DynatraceConnectorOperator::ValidateNonNull,
"VALIDATE_NON_ZERO" => DynatraceConnectorOperator::ValidateNonZero,
"VALIDATE_NUMERIC" => DynatraceConnectorOperator::ValidateNumeric,
other => DynatraceConnectorOperator::Unknown(other.to_owned()),
}
}
}
impl std::str::FromStr for DynatraceConnectorOperator {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(DynatraceConnectorOperator::from(s))
}
}
impl DynatraceConnectorOperator {
pub fn as_str(&self) -> &str {
match self {
DynatraceConnectorOperator::Addition => "ADDITION",
DynatraceConnectorOperator::Between => "BETWEEN",
DynatraceConnectorOperator::Division => "DIVISION",
DynatraceConnectorOperator::EqualTo => "EQUAL_TO",
DynatraceConnectorOperator::MaskAll => "MASK_ALL",
DynatraceConnectorOperator::MaskFirstN => "MASK_FIRST_N",
DynatraceConnectorOperator::MaskLastN => "MASK_LAST_N",
DynatraceConnectorOperator::Multiplication => "MULTIPLICATION",
DynatraceConnectorOperator::NoOp => "NO_OP",
DynatraceConnectorOperator::Projection => "PROJECTION",
DynatraceConnectorOperator::Subtraction => "SUBTRACTION",
DynatraceConnectorOperator::ValidateNonNegative => "VALIDATE_NON_NEGATIVE",
DynatraceConnectorOperator::ValidateNonNull => "VALIDATE_NON_NULL",
DynatraceConnectorOperator::ValidateNonZero => "VALIDATE_NON_ZERO",
DynatraceConnectorOperator::ValidateNumeric => "VALIDATE_NUMERIC",
DynatraceConnectorOperator::Unknown(s) => s.as_ref(),
}
}
pub fn values() -> &'static [&'static str] {
&[
"ADDITION",
"BETWEEN",
"DIVISION",
"EQUAL_TO",
"MASK_ALL",
"MASK_FIRST_N",
"MASK_LAST_N",
"MULTIPLICATION",
"NO_OP",
"PROJECTION",
"SUBTRACTION",
"VALIDATE_NON_NEGATIVE",
"VALIDATE_NON_NULL",
"VALIDATE_NON_ZERO",
"VALIDATE_NUMERIC",
]
}
}
impl AsRef<str> for DynatraceConnectorOperator {
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 DatadogConnectorOperator {
#[allow(missing_docs)] Addition,
#[allow(missing_docs)] Between,
#[allow(missing_docs)] Division,
#[allow(missing_docs)] EqualTo,
#[allow(missing_docs)] MaskAll,
#[allow(missing_docs)] MaskFirstN,
#[allow(missing_docs)] MaskLastN,
#[allow(missing_docs)] Multiplication,
#[allow(missing_docs)] NoOp,
#[allow(missing_docs)] Projection,
#[allow(missing_docs)] Subtraction,
#[allow(missing_docs)] ValidateNonNegative,
#[allow(missing_docs)] ValidateNonNull,
#[allow(missing_docs)] ValidateNonZero,
#[allow(missing_docs)] ValidateNumeric,
Unknown(String),
}
impl std::convert::From<&str> for DatadogConnectorOperator {
fn from(s: &str) -> Self {
match s {
"ADDITION" => DatadogConnectorOperator::Addition,
"BETWEEN" => DatadogConnectorOperator::Between,
"DIVISION" => DatadogConnectorOperator::Division,
"EQUAL_TO" => DatadogConnectorOperator::EqualTo,
"MASK_ALL" => DatadogConnectorOperator::MaskAll,
"MASK_FIRST_N" => DatadogConnectorOperator::MaskFirstN,
"MASK_LAST_N" => DatadogConnectorOperator::MaskLastN,
"MULTIPLICATION" => DatadogConnectorOperator::Multiplication,
"NO_OP" => DatadogConnectorOperator::NoOp,
"PROJECTION" => DatadogConnectorOperator::Projection,
"SUBTRACTION" => DatadogConnectorOperator::Subtraction,
"VALIDATE_NON_NEGATIVE" => DatadogConnectorOperator::ValidateNonNegative,
"VALIDATE_NON_NULL" => DatadogConnectorOperator::ValidateNonNull,
"VALIDATE_NON_ZERO" => DatadogConnectorOperator::ValidateNonZero,
"VALIDATE_NUMERIC" => DatadogConnectorOperator::ValidateNumeric,
other => DatadogConnectorOperator::Unknown(other.to_owned()),
}
}
}
impl std::str::FromStr for DatadogConnectorOperator {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(DatadogConnectorOperator::from(s))
}
}
impl DatadogConnectorOperator {
pub fn as_str(&self) -> &str {
match self {
DatadogConnectorOperator::Addition => "ADDITION",
DatadogConnectorOperator::Between => "BETWEEN",
DatadogConnectorOperator::Division => "DIVISION",
DatadogConnectorOperator::EqualTo => "EQUAL_TO",
DatadogConnectorOperator::MaskAll => "MASK_ALL",
DatadogConnectorOperator::MaskFirstN => "MASK_FIRST_N",
DatadogConnectorOperator::MaskLastN => "MASK_LAST_N",
DatadogConnectorOperator::Multiplication => "MULTIPLICATION",
DatadogConnectorOperator::NoOp => "NO_OP",
DatadogConnectorOperator::Projection => "PROJECTION",
DatadogConnectorOperator::Subtraction => "SUBTRACTION",
DatadogConnectorOperator::ValidateNonNegative => "VALIDATE_NON_NEGATIVE",
DatadogConnectorOperator::ValidateNonNull => "VALIDATE_NON_NULL",
DatadogConnectorOperator::ValidateNonZero => "VALIDATE_NON_ZERO",
DatadogConnectorOperator::ValidateNumeric => "VALIDATE_NUMERIC",
DatadogConnectorOperator::Unknown(s) => s.as_ref(),
}
}
pub fn values() -> &'static [&'static str] {
&[
"ADDITION",
"BETWEEN",
"DIVISION",
"EQUAL_TO",
"MASK_ALL",
"MASK_FIRST_N",
"MASK_LAST_N",
"MULTIPLICATION",
"NO_OP",
"PROJECTION",
"SUBTRACTION",
"VALIDATE_NON_NEGATIVE",
"VALIDATE_NON_NULL",
"VALIDATE_NON_ZERO",
"VALIDATE_NUMERIC",
]
}
}
impl AsRef<str> for DatadogConnectorOperator {
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 AmplitudeConnectorOperator {
#[allow(missing_docs)] Between,
Unknown(String),
}
impl std::convert::From<&str> for AmplitudeConnectorOperator {
fn from(s: &str) -> Self {
match s {
"BETWEEN" => AmplitudeConnectorOperator::Between,
other => AmplitudeConnectorOperator::Unknown(other.to_owned()),
}
}
}
impl std::str::FromStr for AmplitudeConnectorOperator {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(AmplitudeConnectorOperator::from(s))
}
}
impl AmplitudeConnectorOperator {
pub fn as_str(&self) -> &str {
match self {
AmplitudeConnectorOperator::Between => "BETWEEN",
AmplitudeConnectorOperator::Unknown(s) => s.as_ref(),
}
}
pub fn values() -> &'static [&'static str] {
&["BETWEEN"]
}
}
impl AsRef<str> for AmplitudeConnectorOperator {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct DestinationFlowConfig {
pub connector_type: std::option::Option<crate::model::ConnectorType>,
pub connector_profile_name: std::option::Option<std::string::String>,
pub destination_connector_properties:
std::option::Option<crate::model::DestinationConnectorProperties>,
}
impl std::fmt::Debug for DestinationFlowConfig {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("DestinationFlowConfig");
formatter.field("connector_type", &self.connector_type);
formatter.field("connector_profile_name", &self.connector_profile_name);
formatter.field(
"destination_connector_properties",
&self.destination_connector_properties,
);
formatter.finish()
}
}
pub mod destination_flow_config {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) connector_type: std::option::Option<crate::model::ConnectorType>,
pub(crate) connector_profile_name: std::option::Option<std::string::String>,
pub(crate) destination_connector_properties:
std::option::Option<crate::model::DestinationConnectorProperties>,
}
impl Builder {
pub fn connector_type(mut self, input: crate::model::ConnectorType) -> Self {
self.connector_type = Some(input);
self
}
pub fn set_connector_type(
mut self,
input: std::option::Option<crate::model::ConnectorType>,
) -> Self {
self.connector_type = input;
self
}
pub fn connector_profile_name(mut self, input: impl Into<std::string::String>) -> Self {
self.connector_profile_name = Some(input.into());
self
}
pub fn set_connector_profile_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.connector_profile_name = input;
self
}
pub fn destination_connector_properties(
mut self,
input: crate::model::DestinationConnectorProperties,
) -> Self {
self.destination_connector_properties = Some(input);
self
}
pub fn set_destination_connector_properties(
mut self,
input: std::option::Option<crate::model::DestinationConnectorProperties>,
) -> Self {
self.destination_connector_properties = input;
self
}
pub fn build(self) -> crate::model::DestinationFlowConfig {
crate::model::DestinationFlowConfig {
connector_type: self.connector_type,
connector_profile_name: self.connector_profile_name,
destination_connector_properties: self.destination_connector_properties,
}
}
}
}
impl DestinationFlowConfig {
pub fn builder() -> crate::model::destination_flow_config::Builder {
crate::model::destination_flow_config::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct DestinationConnectorProperties {
pub redshift: std::option::Option<crate::model::RedshiftDestinationProperties>,
pub s3: std::option::Option<crate::model::S3DestinationProperties>,
pub salesforce: std::option::Option<crate::model::SalesforceDestinationProperties>,
pub snowflake: std::option::Option<crate::model::SnowflakeDestinationProperties>,
pub event_bridge: std::option::Option<crate::model::EventBridgeDestinationProperties>,
pub lookout_metrics: std::option::Option<crate::model::LookoutMetricsDestinationProperties>,
pub upsolver: std::option::Option<crate::model::UpsolverDestinationProperties>,
pub honeycode: std::option::Option<crate::model::HoneycodeDestinationProperties>,
pub customer_profiles: std::option::Option<crate::model::CustomerProfilesDestinationProperties>,
pub zendesk: std::option::Option<crate::model::ZendeskDestinationProperties>,
}
impl std::fmt::Debug for DestinationConnectorProperties {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("DestinationConnectorProperties");
formatter.field("redshift", &self.redshift);
formatter.field("s3", &self.s3);
formatter.field("salesforce", &self.salesforce);
formatter.field("snowflake", &self.snowflake);
formatter.field("event_bridge", &self.event_bridge);
formatter.field("lookout_metrics", &self.lookout_metrics);
formatter.field("upsolver", &self.upsolver);
formatter.field("honeycode", &self.honeycode);
formatter.field("customer_profiles", &self.customer_profiles);
formatter.field("zendesk", &self.zendesk);
formatter.finish()
}
}
pub mod destination_connector_properties {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) redshift: std::option::Option<crate::model::RedshiftDestinationProperties>,
pub(crate) s3: std::option::Option<crate::model::S3DestinationProperties>,
pub(crate) salesforce: std::option::Option<crate::model::SalesforceDestinationProperties>,
pub(crate) snowflake: std::option::Option<crate::model::SnowflakeDestinationProperties>,
pub(crate) event_bridge:
std::option::Option<crate::model::EventBridgeDestinationProperties>,
pub(crate) lookout_metrics:
std::option::Option<crate::model::LookoutMetricsDestinationProperties>,
pub(crate) upsolver: std::option::Option<crate::model::UpsolverDestinationProperties>,
pub(crate) honeycode: std::option::Option<crate::model::HoneycodeDestinationProperties>,
pub(crate) customer_profiles:
std::option::Option<crate::model::CustomerProfilesDestinationProperties>,
pub(crate) zendesk: std::option::Option<crate::model::ZendeskDestinationProperties>,
}
impl Builder {
pub fn redshift(mut self, input: crate::model::RedshiftDestinationProperties) -> Self {
self.redshift = Some(input);
self
}
pub fn set_redshift(
mut self,
input: std::option::Option<crate::model::RedshiftDestinationProperties>,
) -> Self {
self.redshift = input;
self
}
pub fn s3(mut self, input: crate::model::S3DestinationProperties) -> Self {
self.s3 = Some(input);
self
}
pub fn set_s3(
mut self,
input: std::option::Option<crate::model::S3DestinationProperties>,
) -> Self {
self.s3 = input;
self
}
pub fn salesforce(mut self, input: crate::model::SalesforceDestinationProperties) -> Self {
self.salesforce = Some(input);
self
}
pub fn set_salesforce(
mut self,
input: std::option::Option<crate::model::SalesforceDestinationProperties>,
) -> Self {
self.salesforce = input;
self
}
pub fn snowflake(mut self, input: crate::model::SnowflakeDestinationProperties) -> Self {
self.snowflake = Some(input);
self
}
pub fn set_snowflake(
mut self,
input: std::option::Option<crate::model::SnowflakeDestinationProperties>,
) -> Self {
self.snowflake = input;
self
}
pub fn event_bridge(
mut self,
input: crate::model::EventBridgeDestinationProperties,
) -> Self {
self.event_bridge = Some(input);
self
}
pub fn set_event_bridge(
mut self,
input: std::option::Option<crate::model::EventBridgeDestinationProperties>,
) -> Self {
self.event_bridge = input;
self
}
pub fn lookout_metrics(
mut self,
input: crate::model::LookoutMetricsDestinationProperties,
) -> Self {
self.lookout_metrics = Some(input);
self
}
pub fn set_lookout_metrics(
mut self,
input: std::option::Option<crate::model::LookoutMetricsDestinationProperties>,
) -> Self {
self.lookout_metrics = input;
self
}
pub fn upsolver(mut self, input: crate::model::UpsolverDestinationProperties) -> Self {
self.upsolver = Some(input);
self
}
pub fn set_upsolver(
mut self,
input: std::option::Option<crate::model::UpsolverDestinationProperties>,
) -> Self {
self.upsolver = input;
self
}
pub fn honeycode(mut self, input: crate::model::HoneycodeDestinationProperties) -> Self {
self.honeycode = Some(input);
self
}
pub fn set_honeycode(
mut self,
input: std::option::Option<crate::model::HoneycodeDestinationProperties>,
) -> Self {
self.honeycode = input;
self
}
pub fn customer_profiles(
mut self,
input: crate::model::CustomerProfilesDestinationProperties,
) -> Self {
self.customer_profiles = Some(input);
self
}
pub fn set_customer_profiles(
mut self,
input: std::option::Option<crate::model::CustomerProfilesDestinationProperties>,
) -> Self {
self.customer_profiles = input;
self
}
pub fn zendesk(mut self, input: crate::model::ZendeskDestinationProperties) -> Self {
self.zendesk = Some(input);
self
}
pub fn set_zendesk(
mut self,
input: std::option::Option<crate::model::ZendeskDestinationProperties>,
) -> Self {
self.zendesk = input;
self
}
pub fn build(self) -> crate::model::DestinationConnectorProperties {
crate::model::DestinationConnectorProperties {
redshift: self.redshift,
s3: self.s3,
salesforce: self.salesforce,
snowflake: self.snowflake,
event_bridge: self.event_bridge,
lookout_metrics: self.lookout_metrics,
upsolver: self.upsolver,
honeycode: self.honeycode,
customer_profiles: self.customer_profiles,
zendesk: self.zendesk,
}
}
}
}
impl DestinationConnectorProperties {
pub fn builder() -> crate::model::destination_connector_properties::Builder {
crate::model::destination_connector_properties::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ZendeskDestinationProperties {
pub object: std::option::Option<std::string::String>,
pub id_field_names: std::option::Option<std::vec::Vec<std::string::String>>,
pub error_handling_config: std::option::Option<crate::model::ErrorHandlingConfig>,
pub write_operation_type: std::option::Option<crate::model::WriteOperationType>,
}
impl std::fmt::Debug for ZendeskDestinationProperties {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ZendeskDestinationProperties");
formatter.field("object", &self.object);
formatter.field("id_field_names", &self.id_field_names);
formatter.field("error_handling_config", &self.error_handling_config);
formatter.field("write_operation_type", &self.write_operation_type);
formatter.finish()
}
}
pub mod zendesk_destination_properties {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) object: std::option::Option<std::string::String>,
pub(crate) id_field_names: std::option::Option<std::vec::Vec<std::string::String>>,
pub(crate) error_handling_config: std::option::Option<crate::model::ErrorHandlingConfig>,
pub(crate) write_operation_type: std::option::Option<crate::model::WriteOperationType>,
}
impl Builder {
pub fn object(mut self, input: impl Into<std::string::String>) -> Self {
self.object = Some(input.into());
self
}
pub fn set_object(mut self, input: std::option::Option<std::string::String>) -> Self {
self.object = input;
self
}
pub fn id_field_names(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.id_field_names.unwrap_or_default();
v.push(input.into());
self.id_field_names = Some(v);
self
}
pub fn set_id_field_names(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.id_field_names = input;
self
}
pub fn error_handling_config(mut self, input: crate::model::ErrorHandlingConfig) -> Self {
self.error_handling_config = Some(input);
self
}
pub fn set_error_handling_config(
mut self,
input: std::option::Option<crate::model::ErrorHandlingConfig>,
) -> Self {
self.error_handling_config = input;
self
}
pub fn write_operation_type(mut self, input: crate::model::WriteOperationType) -> Self {
self.write_operation_type = Some(input);
self
}
pub fn set_write_operation_type(
mut self,
input: std::option::Option<crate::model::WriteOperationType>,
) -> Self {
self.write_operation_type = input;
self
}
pub fn build(self) -> crate::model::ZendeskDestinationProperties {
crate::model::ZendeskDestinationProperties {
object: self.object,
id_field_names: self.id_field_names,
error_handling_config: self.error_handling_config,
write_operation_type: self.write_operation_type,
}
}
}
}
impl ZendeskDestinationProperties {
pub fn builder() -> crate::model::zendesk_destination_properties::Builder {
crate::model::zendesk_destination_properties::Builder::default()
}
}
#[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 WriteOperationType {
#[allow(missing_docs)] Insert,
#[allow(missing_docs)] Update,
#[allow(missing_docs)] Upsert,
Unknown(String),
}
impl std::convert::From<&str> for WriteOperationType {
fn from(s: &str) -> Self {
match s {
"INSERT" => WriteOperationType::Insert,
"UPDATE" => WriteOperationType::Update,
"UPSERT" => WriteOperationType::Upsert,
other => WriteOperationType::Unknown(other.to_owned()),
}
}
}
impl std::str::FromStr for WriteOperationType {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(WriteOperationType::from(s))
}
}
impl WriteOperationType {
pub fn as_str(&self) -> &str {
match self {
WriteOperationType::Insert => "INSERT",
WriteOperationType::Update => "UPDATE",
WriteOperationType::Upsert => "UPSERT",
WriteOperationType::Unknown(s) => s.as_ref(),
}
}
pub fn values() -> &'static [&'static str] {
&["INSERT", "UPDATE", "UPSERT"]
}
}
impl AsRef<str> for WriteOperationType {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ErrorHandlingConfig {
pub fail_on_first_destination_error: bool,
pub bucket_prefix: std::option::Option<std::string::String>,
pub bucket_name: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for ErrorHandlingConfig {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ErrorHandlingConfig");
formatter.field(
"fail_on_first_destination_error",
&self.fail_on_first_destination_error,
);
formatter.field("bucket_prefix", &self.bucket_prefix);
formatter.field("bucket_name", &self.bucket_name);
formatter.finish()
}
}
pub mod error_handling_config {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) fail_on_first_destination_error: std::option::Option<bool>,
pub(crate) bucket_prefix: std::option::Option<std::string::String>,
pub(crate) bucket_name: std::option::Option<std::string::String>,
}
impl Builder {
pub fn fail_on_first_destination_error(mut self, input: bool) -> Self {
self.fail_on_first_destination_error = Some(input);
self
}
pub fn set_fail_on_first_destination_error(
mut self,
input: std::option::Option<bool>,
) -> Self {
self.fail_on_first_destination_error = input;
self
}
pub fn bucket_prefix(mut self, input: impl Into<std::string::String>) -> Self {
self.bucket_prefix = Some(input.into());
self
}
pub fn set_bucket_prefix(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.bucket_prefix = input;
self
}
pub fn bucket_name(mut self, input: impl Into<std::string::String>) -> Self {
self.bucket_name = Some(input.into());
self
}
pub fn set_bucket_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.bucket_name = input;
self
}
pub fn build(self) -> crate::model::ErrorHandlingConfig {
crate::model::ErrorHandlingConfig {
fail_on_first_destination_error: self
.fail_on_first_destination_error
.unwrap_or_default(),
bucket_prefix: self.bucket_prefix,
bucket_name: self.bucket_name,
}
}
}
}
impl ErrorHandlingConfig {
pub fn builder() -> crate::model::error_handling_config::Builder {
crate::model::error_handling_config::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct CustomerProfilesDestinationProperties {
pub domain_name: std::option::Option<std::string::String>,
pub object_type_name: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for CustomerProfilesDestinationProperties {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("CustomerProfilesDestinationProperties");
formatter.field("domain_name", &self.domain_name);
formatter.field("object_type_name", &self.object_type_name);
formatter.finish()
}
}
pub mod customer_profiles_destination_properties {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) domain_name: std::option::Option<std::string::String>,
pub(crate) object_type_name: std::option::Option<std::string::String>,
}
impl Builder {
pub fn domain_name(mut self, input: impl Into<std::string::String>) -> Self {
self.domain_name = Some(input.into());
self
}
pub fn set_domain_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.domain_name = input;
self
}
pub fn object_type_name(mut self, input: impl Into<std::string::String>) -> Self {
self.object_type_name = Some(input.into());
self
}
pub fn set_object_type_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.object_type_name = input;
self
}
pub fn build(self) -> crate::model::CustomerProfilesDestinationProperties {
crate::model::CustomerProfilesDestinationProperties {
domain_name: self.domain_name,
object_type_name: self.object_type_name,
}
}
}
}
impl CustomerProfilesDestinationProperties {
pub fn builder() -> crate::model::customer_profiles_destination_properties::Builder {
crate::model::customer_profiles_destination_properties::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct HoneycodeDestinationProperties {
pub object: std::option::Option<std::string::String>,
pub error_handling_config: std::option::Option<crate::model::ErrorHandlingConfig>,
}
impl std::fmt::Debug for HoneycodeDestinationProperties {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("HoneycodeDestinationProperties");
formatter.field("object", &self.object);
formatter.field("error_handling_config", &self.error_handling_config);
formatter.finish()
}
}
pub mod honeycode_destination_properties {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) object: std::option::Option<std::string::String>,
pub(crate) error_handling_config: std::option::Option<crate::model::ErrorHandlingConfig>,
}
impl Builder {
pub fn object(mut self, input: impl Into<std::string::String>) -> Self {
self.object = Some(input.into());
self
}
pub fn set_object(mut self, input: std::option::Option<std::string::String>) -> Self {
self.object = input;
self
}
pub fn error_handling_config(mut self, input: crate::model::ErrorHandlingConfig) -> Self {
self.error_handling_config = Some(input);
self
}
pub fn set_error_handling_config(
mut self,
input: std::option::Option<crate::model::ErrorHandlingConfig>,
) -> Self {
self.error_handling_config = input;
self
}
pub fn build(self) -> crate::model::HoneycodeDestinationProperties {
crate::model::HoneycodeDestinationProperties {
object: self.object,
error_handling_config: self.error_handling_config,
}
}
}
}
impl HoneycodeDestinationProperties {
pub fn builder() -> crate::model::honeycode_destination_properties::Builder {
crate::model::honeycode_destination_properties::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct UpsolverDestinationProperties {
pub bucket_name: std::option::Option<std::string::String>,
pub bucket_prefix: std::option::Option<std::string::String>,
pub s3_output_format_config: std::option::Option<crate::model::UpsolverS3OutputFormatConfig>,
}
impl std::fmt::Debug for UpsolverDestinationProperties {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("UpsolverDestinationProperties");
formatter.field("bucket_name", &self.bucket_name);
formatter.field("bucket_prefix", &self.bucket_prefix);
formatter.field("s3_output_format_config", &self.s3_output_format_config);
formatter.finish()
}
}
pub mod upsolver_destination_properties {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) bucket_name: std::option::Option<std::string::String>,
pub(crate) bucket_prefix: std::option::Option<std::string::String>,
pub(crate) s3_output_format_config:
std::option::Option<crate::model::UpsolverS3OutputFormatConfig>,
}
impl Builder {
pub fn bucket_name(mut self, input: impl Into<std::string::String>) -> Self {
self.bucket_name = Some(input.into());
self
}
pub fn set_bucket_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.bucket_name = input;
self
}
pub fn bucket_prefix(mut self, input: impl Into<std::string::String>) -> Self {
self.bucket_prefix = Some(input.into());
self
}
pub fn set_bucket_prefix(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.bucket_prefix = input;
self
}
pub fn s3_output_format_config(
mut self,
input: crate::model::UpsolverS3OutputFormatConfig,
) -> Self {
self.s3_output_format_config = Some(input);
self
}
pub fn set_s3_output_format_config(
mut self,
input: std::option::Option<crate::model::UpsolverS3OutputFormatConfig>,
) -> Self {
self.s3_output_format_config = input;
self
}
pub fn build(self) -> crate::model::UpsolverDestinationProperties {
crate::model::UpsolverDestinationProperties {
bucket_name: self.bucket_name,
bucket_prefix: self.bucket_prefix,
s3_output_format_config: self.s3_output_format_config,
}
}
}
}
impl UpsolverDestinationProperties {
pub fn builder() -> crate::model::upsolver_destination_properties::Builder {
crate::model::upsolver_destination_properties::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct UpsolverS3OutputFormatConfig {
pub file_type: std::option::Option<crate::model::FileType>,
pub prefix_config: std::option::Option<crate::model::PrefixConfig>,
pub aggregation_config: std::option::Option<crate::model::AggregationConfig>,
}
impl std::fmt::Debug for UpsolverS3OutputFormatConfig {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("UpsolverS3OutputFormatConfig");
formatter.field("file_type", &self.file_type);
formatter.field("prefix_config", &self.prefix_config);
formatter.field("aggregation_config", &self.aggregation_config);
formatter.finish()
}
}
pub mod upsolver_s3_output_format_config {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) file_type: std::option::Option<crate::model::FileType>,
pub(crate) prefix_config: std::option::Option<crate::model::PrefixConfig>,
pub(crate) aggregation_config: std::option::Option<crate::model::AggregationConfig>,
}
impl Builder {
pub fn file_type(mut self, input: crate::model::FileType) -> Self {
self.file_type = Some(input);
self
}
pub fn set_file_type(mut self, input: std::option::Option<crate::model::FileType>) -> Self {
self.file_type = input;
self
}
pub fn prefix_config(mut self, input: crate::model::PrefixConfig) -> Self {
self.prefix_config = Some(input);
self
}
pub fn set_prefix_config(
mut self,
input: std::option::Option<crate::model::PrefixConfig>,
) -> Self {
self.prefix_config = input;
self
}
pub fn aggregation_config(mut self, input: crate::model::AggregationConfig) -> Self {
self.aggregation_config = Some(input);
self
}
pub fn set_aggregation_config(
mut self,
input: std::option::Option<crate::model::AggregationConfig>,
) -> Self {
self.aggregation_config = input;
self
}
pub fn build(self) -> crate::model::UpsolverS3OutputFormatConfig {
crate::model::UpsolverS3OutputFormatConfig {
file_type: self.file_type,
prefix_config: self.prefix_config,
aggregation_config: self.aggregation_config,
}
}
}
}
impl UpsolverS3OutputFormatConfig {
pub fn builder() -> crate::model::upsolver_s3_output_format_config::Builder {
crate::model::upsolver_s3_output_format_config::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct AggregationConfig {
pub aggregation_type: std::option::Option<crate::model::AggregationType>,
}
impl std::fmt::Debug for AggregationConfig {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("AggregationConfig");
formatter.field("aggregation_type", &self.aggregation_type);
formatter.finish()
}
}
pub mod aggregation_config {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) aggregation_type: std::option::Option<crate::model::AggregationType>,
}
impl Builder {
pub fn aggregation_type(mut self, input: crate::model::AggregationType) -> Self {
self.aggregation_type = Some(input);
self
}
pub fn set_aggregation_type(
mut self,
input: std::option::Option<crate::model::AggregationType>,
) -> Self {
self.aggregation_type = input;
self
}
pub fn build(self) -> crate::model::AggregationConfig {
crate::model::AggregationConfig {
aggregation_type: self.aggregation_type,
}
}
}
}
impl AggregationConfig {
pub fn builder() -> crate::model::aggregation_config::Builder {
crate::model::aggregation_config::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 AggregationType {
#[allow(missing_docs)] None,
#[allow(missing_docs)] SingleFile,
Unknown(String),
}
impl std::convert::From<&str> for AggregationType {
fn from(s: &str) -> Self {
match s {
"None" => AggregationType::None,
"SingleFile" => AggregationType::SingleFile,
other => AggregationType::Unknown(other.to_owned()),
}
}
}
impl std::str::FromStr for AggregationType {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(AggregationType::from(s))
}
}
impl AggregationType {
pub fn as_str(&self) -> &str {
match self {
AggregationType::None => "None",
AggregationType::SingleFile => "SingleFile",
AggregationType::Unknown(s) => s.as_ref(),
}
}
pub fn values() -> &'static [&'static str] {
&["None", "SingleFile"]
}
}
impl AsRef<str> for AggregationType {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct PrefixConfig {
pub prefix_type: std::option::Option<crate::model::PrefixType>,
pub prefix_format: std::option::Option<crate::model::PrefixFormat>,
}
impl std::fmt::Debug for PrefixConfig {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("PrefixConfig");
formatter.field("prefix_type", &self.prefix_type);
formatter.field("prefix_format", &self.prefix_format);
formatter.finish()
}
}
pub mod prefix_config {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) prefix_type: std::option::Option<crate::model::PrefixType>,
pub(crate) prefix_format: std::option::Option<crate::model::PrefixFormat>,
}
impl Builder {
pub fn prefix_type(mut self, input: crate::model::PrefixType) -> Self {
self.prefix_type = Some(input);
self
}
pub fn set_prefix_type(
mut self,
input: std::option::Option<crate::model::PrefixType>,
) -> Self {
self.prefix_type = input;
self
}
pub fn prefix_format(mut self, input: crate::model::PrefixFormat) -> Self {
self.prefix_format = Some(input);
self
}
pub fn set_prefix_format(
mut self,
input: std::option::Option<crate::model::PrefixFormat>,
) -> Self {
self.prefix_format = input;
self
}
pub fn build(self) -> crate::model::PrefixConfig {
crate::model::PrefixConfig {
prefix_type: self.prefix_type,
prefix_format: self.prefix_format,
}
}
}
}
impl PrefixConfig {
pub fn builder() -> crate::model::prefix_config::Builder {
crate::model::prefix_config::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 PrefixFormat {
#[allow(missing_docs)] Day,
#[allow(missing_docs)] Hour,
#[allow(missing_docs)] Minute,
#[allow(missing_docs)] Month,
#[allow(missing_docs)] Year,
Unknown(String),
}
impl std::convert::From<&str> for PrefixFormat {
fn from(s: &str) -> Self {
match s {
"DAY" => PrefixFormat::Day,
"HOUR" => PrefixFormat::Hour,
"MINUTE" => PrefixFormat::Minute,
"MONTH" => PrefixFormat::Month,
"YEAR" => PrefixFormat::Year,
other => PrefixFormat::Unknown(other.to_owned()),
}
}
}
impl std::str::FromStr for PrefixFormat {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(PrefixFormat::from(s))
}
}
impl PrefixFormat {
pub fn as_str(&self) -> &str {
match self {
PrefixFormat::Day => "DAY",
PrefixFormat::Hour => "HOUR",
PrefixFormat::Minute => "MINUTE",
PrefixFormat::Month => "MONTH",
PrefixFormat::Year => "YEAR",
PrefixFormat::Unknown(s) => s.as_ref(),
}
}
pub fn values() -> &'static [&'static str] {
&["DAY", "HOUR", "MINUTE", "MONTH", "YEAR"]
}
}
impl AsRef<str> for PrefixFormat {
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 PrefixType {
#[allow(missing_docs)] Filename,
#[allow(missing_docs)] Path,
#[allow(missing_docs)] PathAndFilename,
Unknown(String),
}
impl std::convert::From<&str> for PrefixType {
fn from(s: &str) -> Self {
match s {
"FILENAME" => PrefixType::Filename,
"PATH" => PrefixType::Path,
"PATH_AND_FILENAME" => PrefixType::PathAndFilename,
other => PrefixType::Unknown(other.to_owned()),
}
}
}
impl std::str::FromStr for PrefixType {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(PrefixType::from(s))
}
}
impl PrefixType {
pub fn as_str(&self) -> &str {
match self {
PrefixType::Filename => "FILENAME",
PrefixType::Path => "PATH",
PrefixType::PathAndFilename => "PATH_AND_FILENAME",
PrefixType::Unknown(s) => s.as_ref(),
}
}
pub fn values() -> &'static [&'static str] {
&["FILENAME", "PATH", "PATH_AND_FILENAME"]
}
}
impl AsRef<str> for PrefixType {
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 FileType {
#[allow(missing_docs)] Csv,
#[allow(missing_docs)] Json,
#[allow(missing_docs)] Parquet,
Unknown(String),
}
impl std::convert::From<&str> for FileType {
fn from(s: &str) -> Self {
match s {
"CSV" => FileType::Csv,
"JSON" => FileType::Json,
"PARQUET" => FileType::Parquet,
other => FileType::Unknown(other.to_owned()),
}
}
}
impl std::str::FromStr for FileType {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(FileType::from(s))
}
}
impl FileType {
pub fn as_str(&self) -> &str {
match self {
FileType::Csv => "CSV",
FileType::Json => "JSON",
FileType::Parquet => "PARQUET",
FileType::Unknown(s) => s.as_ref(),
}
}
pub fn values() -> &'static [&'static str] {
&["CSV", "JSON", "PARQUET"]
}
}
impl AsRef<str> for FileType {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct LookoutMetricsDestinationProperties {}
impl std::fmt::Debug for LookoutMetricsDestinationProperties {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("LookoutMetricsDestinationProperties");
formatter.finish()
}
}
pub mod lookout_metrics_destination_properties {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
pub fn build(self) -> crate::model::LookoutMetricsDestinationProperties {
crate::model::LookoutMetricsDestinationProperties {}
}
}
}
impl LookoutMetricsDestinationProperties {
pub fn builder() -> crate::model::lookout_metrics_destination_properties::Builder {
crate::model::lookout_metrics_destination_properties::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct EventBridgeDestinationProperties {
pub object: std::option::Option<std::string::String>,
pub error_handling_config: std::option::Option<crate::model::ErrorHandlingConfig>,
}
impl std::fmt::Debug for EventBridgeDestinationProperties {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("EventBridgeDestinationProperties");
formatter.field("object", &self.object);
formatter.field("error_handling_config", &self.error_handling_config);
formatter.finish()
}
}
pub mod event_bridge_destination_properties {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) object: std::option::Option<std::string::String>,
pub(crate) error_handling_config: std::option::Option<crate::model::ErrorHandlingConfig>,
}
impl Builder {
pub fn object(mut self, input: impl Into<std::string::String>) -> Self {
self.object = Some(input.into());
self
}
pub fn set_object(mut self, input: std::option::Option<std::string::String>) -> Self {
self.object = input;
self
}
pub fn error_handling_config(mut self, input: crate::model::ErrorHandlingConfig) -> Self {
self.error_handling_config = Some(input);
self
}
pub fn set_error_handling_config(
mut self,
input: std::option::Option<crate::model::ErrorHandlingConfig>,
) -> Self {
self.error_handling_config = input;
self
}
pub fn build(self) -> crate::model::EventBridgeDestinationProperties {
crate::model::EventBridgeDestinationProperties {
object: self.object,
error_handling_config: self.error_handling_config,
}
}
}
}
impl EventBridgeDestinationProperties {
pub fn builder() -> crate::model::event_bridge_destination_properties::Builder {
crate::model::event_bridge_destination_properties::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct SnowflakeDestinationProperties {
pub object: std::option::Option<std::string::String>,
pub intermediate_bucket_name: std::option::Option<std::string::String>,
pub bucket_prefix: std::option::Option<std::string::String>,
pub error_handling_config: std::option::Option<crate::model::ErrorHandlingConfig>,
}
impl std::fmt::Debug for SnowflakeDestinationProperties {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("SnowflakeDestinationProperties");
formatter.field("object", &self.object);
formatter.field("intermediate_bucket_name", &self.intermediate_bucket_name);
formatter.field("bucket_prefix", &self.bucket_prefix);
formatter.field("error_handling_config", &self.error_handling_config);
formatter.finish()
}
}
pub mod snowflake_destination_properties {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) object: std::option::Option<std::string::String>,
pub(crate) intermediate_bucket_name: std::option::Option<std::string::String>,
pub(crate) bucket_prefix: std::option::Option<std::string::String>,
pub(crate) error_handling_config: std::option::Option<crate::model::ErrorHandlingConfig>,
}
impl Builder {
pub fn object(mut self, input: impl Into<std::string::String>) -> Self {
self.object = Some(input.into());
self
}
pub fn set_object(mut self, input: std::option::Option<std::string::String>) -> Self {
self.object = input;
self
}
pub fn intermediate_bucket_name(mut self, input: impl Into<std::string::String>) -> Self {
self.intermediate_bucket_name = Some(input.into());
self
}
pub fn set_intermediate_bucket_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.intermediate_bucket_name = input;
self
}
pub fn bucket_prefix(mut self, input: impl Into<std::string::String>) -> Self {
self.bucket_prefix = Some(input.into());
self
}
pub fn set_bucket_prefix(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.bucket_prefix = input;
self
}
pub fn error_handling_config(mut self, input: crate::model::ErrorHandlingConfig) -> Self {
self.error_handling_config = Some(input);
self
}
pub fn set_error_handling_config(
mut self,
input: std::option::Option<crate::model::ErrorHandlingConfig>,
) -> Self {
self.error_handling_config = input;
self
}
pub fn build(self) -> crate::model::SnowflakeDestinationProperties {
crate::model::SnowflakeDestinationProperties {
object: self.object,
intermediate_bucket_name: self.intermediate_bucket_name,
bucket_prefix: self.bucket_prefix,
error_handling_config: self.error_handling_config,
}
}
}
}
impl SnowflakeDestinationProperties {
pub fn builder() -> crate::model::snowflake_destination_properties::Builder {
crate::model::snowflake_destination_properties::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct SalesforceDestinationProperties {
pub object: std::option::Option<std::string::String>,
pub id_field_names: std::option::Option<std::vec::Vec<std::string::String>>,
pub error_handling_config: std::option::Option<crate::model::ErrorHandlingConfig>,
pub write_operation_type: std::option::Option<crate::model::WriteOperationType>,
}
impl std::fmt::Debug for SalesforceDestinationProperties {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("SalesforceDestinationProperties");
formatter.field("object", &self.object);
formatter.field("id_field_names", &self.id_field_names);
formatter.field("error_handling_config", &self.error_handling_config);
formatter.field("write_operation_type", &self.write_operation_type);
formatter.finish()
}
}
pub mod salesforce_destination_properties {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) object: std::option::Option<std::string::String>,
pub(crate) id_field_names: std::option::Option<std::vec::Vec<std::string::String>>,
pub(crate) error_handling_config: std::option::Option<crate::model::ErrorHandlingConfig>,
pub(crate) write_operation_type: std::option::Option<crate::model::WriteOperationType>,
}
impl Builder {
pub fn object(mut self, input: impl Into<std::string::String>) -> Self {
self.object = Some(input.into());
self
}
pub fn set_object(mut self, input: std::option::Option<std::string::String>) -> Self {
self.object = input;
self
}
pub fn id_field_names(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.id_field_names.unwrap_or_default();
v.push(input.into());
self.id_field_names = Some(v);
self
}
pub fn set_id_field_names(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.id_field_names = input;
self
}
pub fn error_handling_config(mut self, input: crate::model::ErrorHandlingConfig) -> Self {
self.error_handling_config = Some(input);
self
}
pub fn set_error_handling_config(
mut self,
input: std::option::Option<crate::model::ErrorHandlingConfig>,
) -> Self {
self.error_handling_config = input;
self
}
pub fn write_operation_type(mut self, input: crate::model::WriteOperationType) -> Self {
self.write_operation_type = Some(input);
self
}
pub fn set_write_operation_type(
mut self,
input: std::option::Option<crate::model::WriteOperationType>,
) -> Self {
self.write_operation_type = input;
self
}
pub fn build(self) -> crate::model::SalesforceDestinationProperties {
crate::model::SalesforceDestinationProperties {
object: self.object,
id_field_names: self.id_field_names,
error_handling_config: self.error_handling_config,
write_operation_type: self.write_operation_type,
}
}
}
}
impl SalesforceDestinationProperties {
pub fn builder() -> crate::model::salesforce_destination_properties::Builder {
crate::model::salesforce_destination_properties::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct S3DestinationProperties {
pub bucket_name: std::option::Option<std::string::String>,
pub bucket_prefix: std::option::Option<std::string::String>,
pub s3_output_format_config: std::option::Option<crate::model::S3OutputFormatConfig>,
}
impl std::fmt::Debug for S3DestinationProperties {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("S3DestinationProperties");
formatter.field("bucket_name", &self.bucket_name);
formatter.field("bucket_prefix", &self.bucket_prefix);
formatter.field("s3_output_format_config", &self.s3_output_format_config);
formatter.finish()
}
}
pub mod s3_destination_properties {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) bucket_name: std::option::Option<std::string::String>,
pub(crate) bucket_prefix: std::option::Option<std::string::String>,
pub(crate) s3_output_format_config: std::option::Option<crate::model::S3OutputFormatConfig>,
}
impl Builder {
pub fn bucket_name(mut self, input: impl Into<std::string::String>) -> Self {
self.bucket_name = Some(input.into());
self
}
pub fn set_bucket_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.bucket_name = input;
self
}
pub fn bucket_prefix(mut self, input: impl Into<std::string::String>) -> Self {
self.bucket_prefix = Some(input.into());
self
}
pub fn set_bucket_prefix(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.bucket_prefix = input;
self
}
pub fn s3_output_format_config(
mut self,
input: crate::model::S3OutputFormatConfig,
) -> Self {
self.s3_output_format_config = Some(input);
self
}
pub fn set_s3_output_format_config(
mut self,
input: std::option::Option<crate::model::S3OutputFormatConfig>,
) -> Self {
self.s3_output_format_config = input;
self
}
pub fn build(self) -> crate::model::S3DestinationProperties {
crate::model::S3DestinationProperties {
bucket_name: self.bucket_name,
bucket_prefix: self.bucket_prefix,
s3_output_format_config: self.s3_output_format_config,
}
}
}
}
impl S3DestinationProperties {
pub fn builder() -> crate::model::s3_destination_properties::Builder {
crate::model::s3_destination_properties::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct S3OutputFormatConfig {
pub file_type: std::option::Option<crate::model::FileType>,
pub prefix_config: std::option::Option<crate::model::PrefixConfig>,
pub aggregation_config: std::option::Option<crate::model::AggregationConfig>,
}
impl std::fmt::Debug for S3OutputFormatConfig {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("S3OutputFormatConfig");
formatter.field("file_type", &self.file_type);
formatter.field("prefix_config", &self.prefix_config);
formatter.field("aggregation_config", &self.aggregation_config);
formatter.finish()
}
}
pub mod s3_output_format_config {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) file_type: std::option::Option<crate::model::FileType>,
pub(crate) prefix_config: std::option::Option<crate::model::PrefixConfig>,
pub(crate) aggregation_config: std::option::Option<crate::model::AggregationConfig>,
}
impl Builder {
pub fn file_type(mut self, input: crate::model::FileType) -> Self {
self.file_type = Some(input);
self
}
pub fn set_file_type(mut self, input: std::option::Option<crate::model::FileType>) -> Self {
self.file_type = input;
self
}
pub fn prefix_config(mut self, input: crate::model::PrefixConfig) -> Self {
self.prefix_config = Some(input);
self
}
pub fn set_prefix_config(
mut self,
input: std::option::Option<crate::model::PrefixConfig>,
) -> Self {
self.prefix_config = input;
self
}
pub fn aggregation_config(mut self, input: crate::model::AggregationConfig) -> Self {
self.aggregation_config = Some(input);
self
}
pub fn set_aggregation_config(
mut self,
input: std::option::Option<crate::model::AggregationConfig>,
) -> Self {
self.aggregation_config = input;
self
}
pub fn build(self) -> crate::model::S3OutputFormatConfig {
crate::model::S3OutputFormatConfig {
file_type: self.file_type,
prefix_config: self.prefix_config,
aggregation_config: self.aggregation_config,
}
}
}
}
impl S3OutputFormatConfig {
pub fn builder() -> crate::model::s3_output_format_config::Builder {
crate::model::s3_output_format_config::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct RedshiftDestinationProperties {
pub object: std::option::Option<std::string::String>,
pub intermediate_bucket_name: std::option::Option<std::string::String>,
pub bucket_prefix: std::option::Option<std::string::String>,
pub error_handling_config: std::option::Option<crate::model::ErrorHandlingConfig>,
}
impl std::fmt::Debug for RedshiftDestinationProperties {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("RedshiftDestinationProperties");
formatter.field("object", &self.object);
formatter.field("intermediate_bucket_name", &self.intermediate_bucket_name);
formatter.field("bucket_prefix", &self.bucket_prefix);
formatter.field("error_handling_config", &self.error_handling_config);
formatter.finish()
}
}
pub mod redshift_destination_properties {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) object: std::option::Option<std::string::String>,
pub(crate) intermediate_bucket_name: std::option::Option<std::string::String>,
pub(crate) bucket_prefix: std::option::Option<std::string::String>,
pub(crate) error_handling_config: std::option::Option<crate::model::ErrorHandlingConfig>,
}
impl Builder {
pub fn object(mut self, input: impl Into<std::string::String>) -> Self {
self.object = Some(input.into());
self
}
pub fn set_object(mut self, input: std::option::Option<std::string::String>) -> Self {
self.object = input;
self
}
pub fn intermediate_bucket_name(mut self, input: impl Into<std::string::String>) -> Self {
self.intermediate_bucket_name = Some(input.into());
self
}
pub fn set_intermediate_bucket_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.intermediate_bucket_name = input;
self
}
pub fn bucket_prefix(mut self, input: impl Into<std::string::String>) -> Self {
self.bucket_prefix = Some(input.into());
self
}
pub fn set_bucket_prefix(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.bucket_prefix = input;
self
}
pub fn error_handling_config(mut self, input: crate::model::ErrorHandlingConfig) -> Self {
self.error_handling_config = Some(input);
self
}
pub fn set_error_handling_config(
mut self,
input: std::option::Option<crate::model::ErrorHandlingConfig>,
) -> Self {
self.error_handling_config = input;
self
}
pub fn build(self) -> crate::model::RedshiftDestinationProperties {
crate::model::RedshiftDestinationProperties {
object: self.object,
intermediate_bucket_name: self.intermediate_bucket_name,
bucket_prefix: self.bucket_prefix,
error_handling_config: self.error_handling_config,
}
}
}
}
impl RedshiftDestinationProperties {
pub fn builder() -> crate::model::redshift_destination_properties::Builder {
crate::model::redshift_destination_properties::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 ConnectorType {
#[allow(missing_docs)] Amplitude,
#[allow(missing_docs)] Customerprofiles,
#[allow(missing_docs)] Datadog,
#[allow(missing_docs)] Dynatrace,
#[allow(missing_docs)] Eventbridge,
#[allow(missing_docs)] Googleanalytics,
#[allow(missing_docs)] Honeycode,
#[allow(missing_docs)] Infornexus,
#[allow(missing_docs)] Lookoutmetrics,
#[allow(missing_docs)] Marketo,
#[allow(missing_docs)] Redshift,
#[allow(missing_docs)] S3,
#[allow(missing_docs)] Sapodata,
#[allow(missing_docs)] Salesforce,
#[allow(missing_docs)] Servicenow,
#[allow(missing_docs)] Singular,
#[allow(missing_docs)] Slack,
#[allow(missing_docs)] Snowflake,
#[allow(missing_docs)] Trendmicro,
#[allow(missing_docs)] Upsolver,
#[allow(missing_docs)] Veeva,
#[allow(missing_docs)] Zendesk,
Unknown(String),
}
impl std::convert::From<&str> for ConnectorType {
fn from(s: &str) -> Self {
match s {
"Amplitude" => ConnectorType::Amplitude,
"CustomerProfiles" => ConnectorType::Customerprofiles,
"Datadog" => ConnectorType::Datadog,
"Dynatrace" => ConnectorType::Dynatrace,
"EventBridge" => ConnectorType::Eventbridge,
"Googleanalytics" => ConnectorType::Googleanalytics,
"Honeycode" => ConnectorType::Honeycode,
"Infornexus" => ConnectorType::Infornexus,
"LookoutMetrics" => ConnectorType::Lookoutmetrics,
"Marketo" => ConnectorType::Marketo,
"Redshift" => ConnectorType::Redshift,
"S3" => ConnectorType::S3,
"SAPOData" => ConnectorType::Sapodata,
"Salesforce" => ConnectorType::Salesforce,
"Servicenow" => ConnectorType::Servicenow,
"Singular" => ConnectorType::Singular,
"Slack" => ConnectorType::Slack,
"Snowflake" => ConnectorType::Snowflake,
"Trendmicro" => ConnectorType::Trendmicro,
"Upsolver" => ConnectorType::Upsolver,
"Veeva" => ConnectorType::Veeva,
"Zendesk" => ConnectorType::Zendesk,
other => ConnectorType::Unknown(other.to_owned()),
}
}
}
impl std::str::FromStr for ConnectorType {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(ConnectorType::from(s))
}
}
impl ConnectorType {
pub fn as_str(&self) -> &str {
match self {
ConnectorType::Amplitude => "Amplitude",
ConnectorType::Customerprofiles => "CustomerProfiles",
ConnectorType::Datadog => "Datadog",
ConnectorType::Dynatrace => "Dynatrace",
ConnectorType::Eventbridge => "EventBridge",
ConnectorType::Googleanalytics => "Googleanalytics",
ConnectorType::Honeycode => "Honeycode",
ConnectorType::Infornexus => "Infornexus",
ConnectorType::Lookoutmetrics => "LookoutMetrics",
ConnectorType::Marketo => "Marketo",
ConnectorType::Redshift => "Redshift",
ConnectorType::S3 => "S3",
ConnectorType::Sapodata => "SAPOData",
ConnectorType::Salesforce => "Salesforce",
ConnectorType::Servicenow => "Servicenow",
ConnectorType::Singular => "Singular",
ConnectorType::Slack => "Slack",
ConnectorType::Snowflake => "Snowflake",
ConnectorType::Trendmicro => "Trendmicro",
ConnectorType::Upsolver => "Upsolver",
ConnectorType::Veeva => "Veeva",
ConnectorType::Zendesk => "Zendesk",
ConnectorType::Unknown(s) => s.as_ref(),
}
}
pub fn values() -> &'static [&'static str] {
&[
"Amplitude",
"CustomerProfiles",
"Datadog",
"Dynatrace",
"EventBridge",
"Googleanalytics",
"Honeycode",
"Infornexus",
"LookoutMetrics",
"Marketo",
"Redshift",
"S3",
"SAPOData",
"Salesforce",
"Servicenow",
"Singular",
"Slack",
"Snowflake",
"Trendmicro",
"Upsolver",
"Veeva",
"Zendesk",
]
}
}
impl AsRef<str> for ConnectorType {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct SourceFlowConfig {
pub connector_type: std::option::Option<crate::model::ConnectorType>,
pub connector_profile_name: std::option::Option<std::string::String>,
pub source_connector_properties: std::option::Option<crate::model::SourceConnectorProperties>,
pub incremental_pull_config: std::option::Option<crate::model::IncrementalPullConfig>,
}
impl std::fmt::Debug for SourceFlowConfig {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("SourceFlowConfig");
formatter.field("connector_type", &self.connector_type);
formatter.field("connector_profile_name", &self.connector_profile_name);
formatter.field(
"source_connector_properties",
&self.source_connector_properties,
);
formatter.field("incremental_pull_config", &self.incremental_pull_config);
formatter.finish()
}
}
pub mod source_flow_config {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) connector_type: std::option::Option<crate::model::ConnectorType>,
pub(crate) connector_profile_name: std::option::Option<std::string::String>,
pub(crate) source_connector_properties:
std::option::Option<crate::model::SourceConnectorProperties>,
pub(crate) incremental_pull_config:
std::option::Option<crate::model::IncrementalPullConfig>,
}
impl Builder {
pub fn connector_type(mut self, input: crate::model::ConnectorType) -> Self {
self.connector_type = Some(input);
self
}
pub fn set_connector_type(
mut self,
input: std::option::Option<crate::model::ConnectorType>,
) -> Self {
self.connector_type = input;
self
}
pub fn connector_profile_name(mut self, input: impl Into<std::string::String>) -> Self {
self.connector_profile_name = Some(input.into());
self
}
pub fn set_connector_profile_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.connector_profile_name = input;
self
}
pub fn source_connector_properties(
mut self,
input: crate::model::SourceConnectorProperties,
) -> Self {
self.source_connector_properties = Some(input);
self
}
pub fn set_source_connector_properties(
mut self,
input: std::option::Option<crate::model::SourceConnectorProperties>,
) -> Self {
self.source_connector_properties = input;
self
}
pub fn incremental_pull_config(
mut self,
input: crate::model::IncrementalPullConfig,
) -> Self {
self.incremental_pull_config = Some(input);
self
}
pub fn set_incremental_pull_config(
mut self,
input: std::option::Option<crate::model::IncrementalPullConfig>,
) -> Self {
self.incremental_pull_config = input;
self
}
pub fn build(self) -> crate::model::SourceFlowConfig {
crate::model::SourceFlowConfig {
connector_type: self.connector_type,
connector_profile_name: self.connector_profile_name,
source_connector_properties: self.source_connector_properties,
incremental_pull_config: self.incremental_pull_config,
}
}
}
}
impl SourceFlowConfig {
pub fn builder() -> crate::model::source_flow_config::Builder {
crate::model::source_flow_config::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct IncrementalPullConfig {
pub datetime_type_field_name: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for IncrementalPullConfig {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("IncrementalPullConfig");
formatter.field("datetime_type_field_name", &self.datetime_type_field_name);
formatter.finish()
}
}
pub mod incremental_pull_config {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) datetime_type_field_name: std::option::Option<std::string::String>,
}
impl Builder {
pub fn datetime_type_field_name(mut self, input: impl Into<std::string::String>) -> Self {
self.datetime_type_field_name = Some(input.into());
self
}
pub fn set_datetime_type_field_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.datetime_type_field_name = input;
self
}
pub fn build(self) -> crate::model::IncrementalPullConfig {
crate::model::IncrementalPullConfig {
datetime_type_field_name: self.datetime_type_field_name,
}
}
}
}
impl IncrementalPullConfig {
pub fn builder() -> crate::model::incremental_pull_config::Builder {
crate::model::incremental_pull_config::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct SourceConnectorProperties {
pub amplitude: std::option::Option<crate::model::AmplitudeSourceProperties>,
pub datadog: std::option::Option<crate::model::DatadogSourceProperties>,
pub dynatrace: std::option::Option<crate::model::DynatraceSourceProperties>,
pub google_analytics: std::option::Option<crate::model::GoogleAnalyticsSourceProperties>,
pub infor_nexus: std::option::Option<crate::model::InforNexusSourceProperties>,
pub marketo: std::option::Option<crate::model::MarketoSourceProperties>,
pub s3: std::option::Option<crate::model::S3SourceProperties>,
pub salesforce: std::option::Option<crate::model::SalesforceSourceProperties>,
pub service_now: std::option::Option<crate::model::ServiceNowSourceProperties>,
pub singular: std::option::Option<crate::model::SingularSourceProperties>,
pub slack: std::option::Option<crate::model::SlackSourceProperties>,
pub trendmicro: std::option::Option<crate::model::TrendmicroSourceProperties>,
pub veeva: std::option::Option<crate::model::VeevaSourceProperties>,
pub zendesk: std::option::Option<crate::model::ZendeskSourceProperties>,
pub sapo_data: std::option::Option<crate::model::SapoDataSourceProperties>,
}
impl std::fmt::Debug for SourceConnectorProperties {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("SourceConnectorProperties");
formatter.field("amplitude", &self.amplitude);
formatter.field("datadog", &self.datadog);
formatter.field("dynatrace", &self.dynatrace);
formatter.field("google_analytics", &self.google_analytics);
formatter.field("infor_nexus", &self.infor_nexus);
formatter.field("marketo", &self.marketo);
formatter.field("s3", &self.s3);
formatter.field("salesforce", &self.salesforce);
formatter.field("service_now", &self.service_now);
formatter.field("singular", &self.singular);
formatter.field("slack", &self.slack);
formatter.field("trendmicro", &self.trendmicro);
formatter.field("veeva", &self.veeva);
formatter.field("zendesk", &self.zendesk);
formatter.field("sapo_data", &self.sapo_data);
formatter.finish()
}
}
pub mod source_connector_properties {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) amplitude: std::option::Option<crate::model::AmplitudeSourceProperties>,
pub(crate) datadog: std::option::Option<crate::model::DatadogSourceProperties>,
pub(crate) dynatrace: std::option::Option<crate::model::DynatraceSourceProperties>,
pub(crate) google_analytics:
std::option::Option<crate::model::GoogleAnalyticsSourceProperties>,
pub(crate) infor_nexus: std::option::Option<crate::model::InforNexusSourceProperties>,
pub(crate) marketo: std::option::Option<crate::model::MarketoSourceProperties>,
pub(crate) s3: std::option::Option<crate::model::S3SourceProperties>,
pub(crate) salesforce: std::option::Option<crate::model::SalesforceSourceProperties>,
pub(crate) service_now: std::option::Option<crate::model::ServiceNowSourceProperties>,
pub(crate) singular: std::option::Option<crate::model::SingularSourceProperties>,
pub(crate) slack: std::option::Option<crate::model::SlackSourceProperties>,
pub(crate) trendmicro: std::option::Option<crate::model::TrendmicroSourceProperties>,
pub(crate) veeva: std::option::Option<crate::model::VeevaSourceProperties>,
pub(crate) zendesk: std::option::Option<crate::model::ZendeskSourceProperties>,
pub(crate) sapo_data: std::option::Option<crate::model::SapoDataSourceProperties>,
}
impl Builder {
pub fn amplitude(mut self, input: crate::model::AmplitudeSourceProperties) -> Self {
self.amplitude = Some(input);
self
}
pub fn set_amplitude(
mut self,
input: std::option::Option<crate::model::AmplitudeSourceProperties>,
) -> Self {
self.amplitude = input;
self
}
pub fn datadog(mut self, input: crate::model::DatadogSourceProperties) -> Self {
self.datadog = Some(input);
self
}
pub fn set_datadog(
mut self,
input: std::option::Option<crate::model::DatadogSourceProperties>,
) -> Self {
self.datadog = input;
self
}
pub fn dynatrace(mut self, input: crate::model::DynatraceSourceProperties) -> Self {
self.dynatrace = Some(input);
self
}
pub fn set_dynatrace(
mut self,
input: std::option::Option<crate::model::DynatraceSourceProperties>,
) -> Self {
self.dynatrace = input;
self
}
pub fn google_analytics(
mut self,
input: crate::model::GoogleAnalyticsSourceProperties,
) -> Self {
self.google_analytics = Some(input);
self
}
pub fn set_google_analytics(
mut self,
input: std::option::Option<crate::model::GoogleAnalyticsSourceProperties>,
) -> Self {
self.google_analytics = input;
self
}
pub fn infor_nexus(mut self, input: crate::model::InforNexusSourceProperties) -> Self {
self.infor_nexus = Some(input);
self
}
pub fn set_infor_nexus(
mut self,
input: std::option::Option<crate::model::InforNexusSourceProperties>,
) -> Self {
self.infor_nexus = input;
self
}
pub fn marketo(mut self, input: crate::model::MarketoSourceProperties) -> Self {
self.marketo = Some(input);
self
}
pub fn set_marketo(
mut self,
input: std::option::Option<crate::model::MarketoSourceProperties>,
) -> Self {
self.marketo = input;
self
}
pub fn s3(mut self, input: crate::model::S3SourceProperties) -> Self {
self.s3 = Some(input);
self
}
pub fn set_s3(
mut self,
input: std::option::Option<crate::model::S3SourceProperties>,
) -> Self {
self.s3 = input;
self
}
pub fn salesforce(mut self, input: crate::model::SalesforceSourceProperties) -> Self {
self.salesforce = Some(input);
self
}
pub fn set_salesforce(
mut self,
input: std::option::Option<crate::model::SalesforceSourceProperties>,
) -> Self {
self.salesforce = input;
self
}
pub fn service_now(mut self, input: crate::model::ServiceNowSourceProperties) -> Self {
self.service_now = Some(input);
self
}
pub fn set_service_now(
mut self,
input: std::option::Option<crate::model::ServiceNowSourceProperties>,
) -> Self {
self.service_now = input;
self
}
pub fn singular(mut self, input: crate::model::SingularSourceProperties) -> Self {
self.singular = Some(input);
self
}
pub fn set_singular(
mut self,
input: std::option::Option<crate::model::SingularSourceProperties>,
) -> Self {
self.singular = input;
self
}
pub fn slack(mut self, input: crate::model::SlackSourceProperties) -> Self {
self.slack = Some(input);
self
}
pub fn set_slack(
mut self,
input: std::option::Option<crate::model::SlackSourceProperties>,
) -> Self {
self.slack = input;
self
}
pub fn trendmicro(mut self, input: crate::model::TrendmicroSourceProperties) -> Self {
self.trendmicro = Some(input);
self
}
pub fn set_trendmicro(
mut self,
input: std::option::Option<crate::model::TrendmicroSourceProperties>,
) -> Self {
self.trendmicro = input;
self
}
pub fn veeva(mut self, input: crate::model::VeevaSourceProperties) -> Self {
self.veeva = Some(input);
self
}
pub fn set_veeva(
mut self,
input: std::option::Option<crate::model::VeevaSourceProperties>,
) -> Self {
self.veeva = input;
self
}
pub fn zendesk(mut self, input: crate::model::ZendeskSourceProperties) -> Self {
self.zendesk = Some(input);
self
}
pub fn set_zendesk(
mut self,
input: std::option::Option<crate::model::ZendeskSourceProperties>,
) -> Self {
self.zendesk = input;
self
}
pub fn sapo_data(mut self, input: crate::model::SapoDataSourceProperties) -> Self {
self.sapo_data = Some(input);
self
}
pub fn set_sapo_data(
mut self,
input: std::option::Option<crate::model::SapoDataSourceProperties>,
) -> Self {
self.sapo_data = input;
self
}
pub fn build(self) -> crate::model::SourceConnectorProperties {
crate::model::SourceConnectorProperties {
amplitude: self.amplitude,
datadog: self.datadog,
dynatrace: self.dynatrace,
google_analytics: self.google_analytics,
infor_nexus: self.infor_nexus,
marketo: self.marketo,
s3: self.s3,
salesforce: self.salesforce,
service_now: self.service_now,
singular: self.singular,
slack: self.slack,
trendmicro: self.trendmicro,
veeva: self.veeva,
zendesk: self.zendesk,
sapo_data: self.sapo_data,
}
}
}
}
impl SourceConnectorProperties {
pub fn builder() -> crate::model::source_connector_properties::Builder {
crate::model::source_connector_properties::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct SapoDataSourceProperties {
pub object_path: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for SapoDataSourceProperties {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("SapoDataSourceProperties");
formatter.field("object_path", &self.object_path);
formatter.finish()
}
}
pub mod sapo_data_source_properties {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) object_path: std::option::Option<std::string::String>,
}
impl Builder {
pub fn object_path(mut self, input: impl Into<std::string::String>) -> Self {
self.object_path = Some(input.into());
self
}
pub fn set_object_path(mut self, input: std::option::Option<std::string::String>) -> Self {
self.object_path = input;
self
}
pub fn build(self) -> crate::model::SapoDataSourceProperties {
crate::model::SapoDataSourceProperties {
object_path: self.object_path,
}
}
}
}
impl SapoDataSourceProperties {
pub fn builder() -> crate::model::sapo_data_source_properties::Builder {
crate::model::sapo_data_source_properties::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ZendeskSourceProperties {
pub object: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for ZendeskSourceProperties {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ZendeskSourceProperties");
formatter.field("object", &self.object);
formatter.finish()
}
}
pub mod zendesk_source_properties {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) object: std::option::Option<std::string::String>,
}
impl Builder {
pub fn object(mut self, input: impl Into<std::string::String>) -> Self {
self.object = Some(input.into());
self
}
pub fn set_object(mut self, input: std::option::Option<std::string::String>) -> Self {
self.object = input;
self
}
pub fn build(self) -> crate::model::ZendeskSourceProperties {
crate::model::ZendeskSourceProperties {
object: self.object,
}
}
}
}
impl ZendeskSourceProperties {
pub fn builder() -> crate::model::zendesk_source_properties::Builder {
crate::model::zendesk_source_properties::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct VeevaSourceProperties {
pub object: std::option::Option<std::string::String>,
pub document_type: std::option::Option<std::string::String>,
pub include_source_files: bool,
pub include_renditions: bool,
pub include_all_versions: bool,
}
impl std::fmt::Debug for VeevaSourceProperties {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("VeevaSourceProperties");
formatter.field("object", &self.object);
formatter.field("document_type", &self.document_type);
formatter.field("include_source_files", &self.include_source_files);
formatter.field("include_renditions", &self.include_renditions);
formatter.field("include_all_versions", &self.include_all_versions);
formatter.finish()
}
}
pub mod veeva_source_properties {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) object: std::option::Option<std::string::String>,
pub(crate) document_type: std::option::Option<std::string::String>,
pub(crate) include_source_files: std::option::Option<bool>,
pub(crate) include_renditions: std::option::Option<bool>,
pub(crate) include_all_versions: std::option::Option<bool>,
}
impl Builder {
pub fn object(mut self, input: impl Into<std::string::String>) -> Self {
self.object = Some(input.into());
self
}
pub fn set_object(mut self, input: std::option::Option<std::string::String>) -> Self {
self.object = input;
self
}
pub fn document_type(mut self, input: impl Into<std::string::String>) -> Self {
self.document_type = Some(input.into());
self
}
pub fn set_document_type(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.document_type = input;
self
}
pub fn include_source_files(mut self, input: bool) -> Self {
self.include_source_files = Some(input);
self
}
pub fn set_include_source_files(mut self, input: std::option::Option<bool>) -> Self {
self.include_source_files = input;
self
}
pub fn include_renditions(mut self, input: bool) -> Self {
self.include_renditions = Some(input);
self
}
pub fn set_include_renditions(mut self, input: std::option::Option<bool>) -> Self {
self.include_renditions = input;
self
}
pub fn include_all_versions(mut self, input: bool) -> Self {
self.include_all_versions = Some(input);
self
}
pub fn set_include_all_versions(mut self, input: std::option::Option<bool>) -> Self {
self.include_all_versions = input;
self
}
pub fn build(self) -> crate::model::VeevaSourceProperties {
crate::model::VeevaSourceProperties {
object: self.object,
document_type: self.document_type,
include_source_files: self.include_source_files.unwrap_or_default(),
include_renditions: self.include_renditions.unwrap_or_default(),
include_all_versions: self.include_all_versions.unwrap_or_default(),
}
}
}
}
impl VeevaSourceProperties {
pub fn builder() -> crate::model::veeva_source_properties::Builder {
crate::model::veeva_source_properties::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct TrendmicroSourceProperties {
pub object: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for TrendmicroSourceProperties {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("TrendmicroSourceProperties");
formatter.field("object", &self.object);
formatter.finish()
}
}
pub mod trendmicro_source_properties {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) object: std::option::Option<std::string::String>,
}
impl Builder {
pub fn object(mut self, input: impl Into<std::string::String>) -> Self {
self.object = Some(input.into());
self
}
pub fn set_object(mut self, input: std::option::Option<std::string::String>) -> Self {
self.object = input;
self
}
pub fn build(self) -> crate::model::TrendmicroSourceProperties {
crate::model::TrendmicroSourceProperties {
object: self.object,
}
}
}
}
impl TrendmicroSourceProperties {
pub fn builder() -> crate::model::trendmicro_source_properties::Builder {
crate::model::trendmicro_source_properties::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct SlackSourceProperties {
pub object: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for SlackSourceProperties {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("SlackSourceProperties");
formatter.field("object", &self.object);
formatter.finish()
}
}
pub mod slack_source_properties {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) object: std::option::Option<std::string::String>,
}
impl Builder {
pub fn object(mut self, input: impl Into<std::string::String>) -> Self {
self.object = Some(input.into());
self
}
pub fn set_object(mut self, input: std::option::Option<std::string::String>) -> Self {
self.object = input;
self
}
pub fn build(self) -> crate::model::SlackSourceProperties {
crate::model::SlackSourceProperties {
object: self.object,
}
}
}
}
impl SlackSourceProperties {
pub fn builder() -> crate::model::slack_source_properties::Builder {
crate::model::slack_source_properties::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct SingularSourceProperties {
pub object: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for SingularSourceProperties {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("SingularSourceProperties");
formatter.field("object", &self.object);
formatter.finish()
}
}
pub mod singular_source_properties {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) object: std::option::Option<std::string::String>,
}
impl Builder {
pub fn object(mut self, input: impl Into<std::string::String>) -> Self {
self.object = Some(input.into());
self
}
pub fn set_object(mut self, input: std::option::Option<std::string::String>) -> Self {
self.object = input;
self
}
pub fn build(self) -> crate::model::SingularSourceProperties {
crate::model::SingularSourceProperties {
object: self.object,
}
}
}
}
impl SingularSourceProperties {
pub fn builder() -> crate::model::singular_source_properties::Builder {
crate::model::singular_source_properties::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ServiceNowSourceProperties {
pub object: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for ServiceNowSourceProperties {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ServiceNowSourceProperties");
formatter.field("object", &self.object);
formatter.finish()
}
}
pub mod service_now_source_properties {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) object: std::option::Option<std::string::String>,
}
impl Builder {
pub fn object(mut self, input: impl Into<std::string::String>) -> Self {
self.object = Some(input.into());
self
}
pub fn set_object(mut self, input: std::option::Option<std::string::String>) -> Self {
self.object = input;
self
}
pub fn build(self) -> crate::model::ServiceNowSourceProperties {
crate::model::ServiceNowSourceProperties {
object: self.object,
}
}
}
}
impl ServiceNowSourceProperties {
pub fn builder() -> crate::model::service_now_source_properties::Builder {
crate::model::service_now_source_properties::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct SalesforceSourceProperties {
pub object: std::option::Option<std::string::String>,
pub enable_dynamic_field_update: bool,
pub include_deleted_records: bool,
}
impl std::fmt::Debug for SalesforceSourceProperties {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("SalesforceSourceProperties");
formatter.field("object", &self.object);
formatter.field(
"enable_dynamic_field_update",
&self.enable_dynamic_field_update,
);
formatter.field("include_deleted_records", &self.include_deleted_records);
formatter.finish()
}
}
pub mod salesforce_source_properties {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) object: std::option::Option<std::string::String>,
pub(crate) enable_dynamic_field_update: std::option::Option<bool>,
pub(crate) include_deleted_records: std::option::Option<bool>,
}
impl Builder {
pub fn object(mut self, input: impl Into<std::string::String>) -> Self {
self.object = Some(input.into());
self
}
pub fn set_object(mut self, input: std::option::Option<std::string::String>) -> Self {
self.object = input;
self
}
pub fn enable_dynamic_field_update(mut self, input: bool) -> Self {
self.enable_dynamic_field_update = Some(input);
self
}
pub fn set_enable_dynamic_field_update(mut self, input: std::option::Option<bool>) -> Self {
self.enable_dynamic_field_update = input;
self
}
pub fn include_deleted_records(mut self, input: bool) -> Self {
self.include_deleted_records = Some(input);
self
}
pub fn set_include_deleted_records(mut self, input: std::option::Option<bool>) -> Self {
self.include_deleted_records = input;
self
}
pub fn build(self) -> crate::model::SalesforceSourceProperties {
crate::model::SalesforceSourceProperties {
object: self.object,
enable_dynamic_field_update: self.enable_dynamic_field_update.unwrap_or_default(),
include_deleted_records: self.include_deleted_records.unwrap_or_default(),
}
}
}
}
impl SalesforceSourceProperties {
pub fn builder() -> crate::model::salesforce_source_properties::Builder {
crate::model::salesforce_source_properties::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct S3SourceProperties {
pub bucket_name: std::option::Option<std::string::String>,
pub bucket_prefix: std::option::Option<std::string::String>,
pub s3_input_format_config: std::option::Option<crate::model::S3InputFormatConfig>,
}
impl std::fmt::Debug for S3SourceProperties {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("S3SourceProperties");
formatter.field("bucket_name", &self.bucket_name);
formatter.field("bucket_prefix", &self.bucket_prefix);
formatter.field("s3_input_format_config", &self.s3_input_format_config);
formatter.finish()
}
}
pub mod s3_source_properties {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) bucket_name: std::option::Option<std::string::String>,
pub(crate) bucket_prefix: std::option::Option<std::string::String>,
pub(crate) s3_input_format_config: std::option::Option<crate::model::S3InputFormatConfig>,
}
impl Builder {
pub fn bucket_name(mut self, input: impl Into<std::string::String>) -> Self {
self.bucket_name = Some(input.into());
self
}
pub fn set_bucket_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.bucket_name = input;
self
}
pub fn bucket_prefix(mut self, input: impl Into<std::string::String>) -> Self {
self.bucket_prefix = Some(input.into());
self
}
pub fn set_bucket_prefix(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.bucket_prefix = input;
self
}
pub fn s3_input_format_config(mut self, input: crate::model::S3InputFormatConfig) -> Self {
self.s3_input_format_config = Some(input);
self
}
pub fn set_s3_input_format_config(
mut self,
input: std::option::Option<crate::model::S3InputFormatConfig>,
) -> Self {
self.s3_input_format_config = input;
self
}
pub fn build(self) -> crate::model::S3SourceProperties {
crate::model::S3SourceProperties {
bucket_name: self.bucket_name,
bucket_prefix: self.bucket_prefix,
s3_input_format_config: self.s3_input_format_config,
}
}
}
}
impl S3SourceProperties {
pub fn builder() -> crate::model::s3_source_properties::Builder {
crate::model::s3_source_properties::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct S3InputFormatConfig {
pub s3_input_file_type: std::option::Option<crate::model::S3InputFileType>,
}
impl std::fmt::Debug for S3InputFormatConfig {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("S3InputFormatConfig");
formatter.field("s3_input_file_type", &self.s3_input_file_type);
formatter.finish()
}
}
pub mod s3_input_format_config {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) s3_input_file_type: std::option::Option<crate::model::S3InputFileType>,
}
impl Builder {
pub fn s3_input_file_type(mut self, input: crate::model::S3InputFileType) -> Self {
self.s3_input_file_type = Some(input);
self
}
pub fn set_s3_input_file_type(
mut self,
input: std::option::Option<crate::model::S3InputFileType>,
) -> Self {
self.s3_input_file_type = input;
self
}
pub fn build(self) -> crate::model::S3InputFormatConfig {
crate::model::S3InputFormatConfig {
s3_input_file_type: self.s3_input_file_type,
}
}
}
}
impl S3InputFormatConfig {
pub fn builder() -> crate::model::s3_input_format_config::Builder {
crate::model::s3_input_format_config::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 S3InputFileType {
#[allow(missing_docs)] Csv,
#[allow(missing_docs)] Json,
Unknown(String),
}
impl std::convert::From<&str> for S3InputFileType {
fn from(s: &str) -> Self {
match s {
"CSV" => S3InputFileType::Csv,
"JSON" => S3InputFileType::Json,
other => S3InputFileType::Unknown(other.to_owned()),
}
}
}
impl std::str::FromStr for S3InputFileType {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(S3InputFileType::from(s))
}
}
impl S3InputFileType {
pub fn as_str(&self) -> &str {
match self {
S3InputFileType::Csv => "CSV",
S3InputFileType::Json => "JSON",
S3InputFileType::Unknown(s) => s.as_ref(),
}
}
pub fn values() -> &'static [&'static str] {
&["CSV", "JSON"]
}
}
impl AsRef<str> for S3InputFileType {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct MarketoSourceProperties {
pub object: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for MarketoSourceProperties {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("MarketoSourceProperties");
formatter.field("object", &self.object);
formatter.finish()
}
}
pub mod marketo_source_properties {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) object: std::option::Option<std::string::String>,
}
impl Builder {
pub fn object(mut self, input: impl Into<std::string::String>) -> Self {
self.object = Some(input.into());
self
}
pub fn set_object(mut self, input: std::option::Option<std::string::String>) -> Self {
self.object = input;
self
}
pub fn build(self) -> crate::model::MarketoSourceProperties {
crate::model::MarketoSourceProperties {
object: self.object,
}
}
}
}
impl MarketoSourceProperties {
pub fn builder() -> crate::model::marketo_source_properties::Builder {
crate::model::marketo_source_properties::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct InforNexusSourceProperties {
pub object: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for InforNexusSourceProperties {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("InforNexusSourceProperties");
formatter.field("object", &self.object);
formatter.finish()
}
}
pub mod infor_nexus_source_properties {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) object: std::option::Option<std::string::String>,
}
impl Builder {
pub fn object(mut self, input: impl Into<std::string::String>) -> Self {
self.object = Some(input.into());
self
}
pub fn set_object(mut self, input: std::option::Option<std::string::String>) -> Self {
self.object = input;
self
}
pub fn build(self) -> crate::model::InforNexusSourceProperties {
crate::model::InforNexusSourceProperties {
object: self.object,
}
}
}
}
impl InforNexusSourceProperties {
pub fn builder() -> crate::model::infor_nexus_source_properties::Builder {
crate::model::infor_nexus_source_properties::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct GoogleAnalyticsSourceProperties {
pub object: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for GoogleAnalyticsSourceProperties {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("GoogleAnalyticsSourceProperties");
formatter.field("object", &self.object);
formatter.finish()
}
}
pub mod google_analytics_source_properties {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) object: std::option::Option<std::string::String>,
}
impl Builder {
pub fn object(mut self, input: impl Into<std::string::String>) -> Self {
self.object = Some(input.into());
self
}
pub fn set_object(mut self, input: std::option::Option<std::string::String>) -> Self {
self.object = input;
self
}
pub fn build(self) -> crate::model::GoogleAnalyticsSourceProperties {
crate::model::GoogleAnalyticsSourceProperties {
object: self.object,
}
}
}
}
impl GoogleAnalyticsSourceProperties {
pub fn builder() -> crate::model::google_analytics_source_properties::Builder {
crate::model::google_analytics_source_properties::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct DynatraceSourceProperties {
pub object: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for DynatraceSourceProperties {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("DynatraceSourceProperties");
formatter.field("object", &self.object);
formatter.finish()
}
}
pub mod dynatrace_source_properties {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) object: std::option::Option<std::string::String>,
}
impl Builder {
pub fn object(mut self, input: impl Into<std::string::String>) -> Self {
self.object = Some(input.into());
self
}
pub fn set_object(mut self, input: std::option::Option<std::string::String>) -> Self {
self.object = input;
self
}
pub fn build(self) -> crate::model::DynatraceSourceProperties {
crate::model::DynatraceSourceProperties {
object: self.object,
}
}
}
}
impl DynatraceSourceProperties {
pub fn builder() -> crate::model::dynatrace_source_properties::Builder {
crate::model::dynatrace_source_properties::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct DatadogSourceProperties {
pub object: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for DatadogSourceProperties {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("DatadogSourceProperties");
formatter.field("object", &self.object);
formatter.finish()
}
}
pub mod datadog_source_properties {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) object: std::option::Option<std::string::String>,
}
impl Builder {
pub fn object(mut self, input: impl Into<std::string::String>) -> Self {
self.object = Some(input.into());
self
}
pub fn set_object(mut self, input: std::option::Option<std::string::String>) -> Self {
self.object = input;
self
}
pub fn build(self) -> crate::model::DatadogSourceProperties {
crate::model::DatadogSourceProperties {
object: self.object,
}
}
}
}
impl DatadogSourceProperties {
pub fn builder() -> crate::model::datadog_source_properties::Builder {
crate::model::datadog_source_properties::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct AmplitudeSourceProperties {
pub object: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for AmplitudeSourceProperties {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("AmplitudeSourceProperties");
formatter.field("object", &self.object);
formatter.finish()
}
}
pub mod amplitude_source_properties {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) object: std::option::Option<std::string::String>,
}
impl Builder {
pub fn object(mut self, input: impl Into<std::string::String>) -> Self {
self.object = Some(input.into());
self
}
pub fn set_object(mut self, input: std::option::Option<std::string::String>) -> Self {
self.object = input;
self
}
pub fn build(self) -> crate::model::AmplitudeSourceProperties {
crate::model::AmplitudeSourceProperties {
object: self.object,
}
}
}
}
impl AmplitudeSourceProperties {
pub fn builder() -> crate::model::amplitude_source_properties::Builder {
crate::model::amplitude_source_properties::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct TriggerConfig {
pub trigger_type: std::option::Option<crate::model::TriggerType>,
pub trigger_properties: std::option::Option<crate::model::TriggerProperties>,
}
impl std::fmt::Debug for TriggerConfig {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("TriggerConfig");
formatter.field("trigger_type", &self.trigger_type);
formatter.field("trigger_properties", &self.trigger_properties);
formatter.finish()
}
}
pub mod trigger_config {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) trigger_type: std::option::Option<crate::model::TriggerType>,
pub(crate) trigger_properties: std::option::Option<crate::model::TriggerProperties>,
}
impl Builder {
pub fn trigger_type(mut self, input: crate::model::TriggerType) -> Self {
self.trigger_type = Some(input);
self
}
pub fn set_trigger_type(
mut self,
input: std::option::Option<crate::model::TriggerType>,
) -> Self {
self.trigger_type = input;
self
}
pub fn trigger_properties(mut self, input: crate::model::TriggerProperties) -> Self {
self.trigger_properties = Some(input);
self
}
pub fn set_trigger_properties(
mut self,
input: std::option::Option<crate::model::TriggerProperties>,
) -> Self {
self.trigger_properties = input;
self
}
pub fn build(self) -> crate::model::TriggerConfig {
crate::model::TriggerConfig {
trigger_type: self.trigger_type,
trigger_properties: self.trigger_properties,
}
}
}
}
impl TriggerConfig {
pub fn builder() -> crate::model::trigger_config::Builder {
crate::model::trigger_config::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct TriggerProperties {
pub scheduled: std::option::Option<crate::model::ScheduledTriggerProperties>,
}
impl std::fmt::Debug for TriggerProperties {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("TriggerProperties");
formatter.field("scheduled", &self.scheduled);
formatter.finish()
}
}
pub mod trigger_properties {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) scheduled: std::option::Option<crate::model::ScheduledTriggerProperties>,
}
impl Builder {
pub fn scheduled(mut self, input: crate::model::ScheduledTriggerProperties) -> Self {
self.scheduled = Some(input);
self
}
pub fn set_scheduled(
mut self,
input: std::option::Option<crate::model::ScheduledTriggerProperties>,
) -> Self {
self.scheduled = input;
self
}
pub fn build(self) -> crate::model::TriggerProperties {
crate::model::TriggerProperties {
scheduled: self.scheduled,
}
}
}
}
impl TriggerProperties {
pub fn builder() -> crate::model::trigger_properties::Builder {
crate::model::trigger_properties::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ScheduledTriggerProperties {
pub schedule_expression: std::option::Option<std::string::String>,
pub data_pull_mode: std::option::Option<crate::model::DataPullMode>,
pub schedule_start_time: std::option::Option<aws_smithy_types::Instant>,
pub schedule_end_time: std::option::Option<aws_smithy_types::Instant>,
pub timezone: std::option::Option<std::string::String>,
pub schedule_offset: std::option::Option<i64>,
pub first_execution_from: std::option::Option<aws_smithy_types::Instant>,
}
impl std::fmt::Debug for ScheduledTriggerProperties {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ScheduledTriggerProperties");
formatter.field("schedule_expression", &self.schedule_expression);
formatter.field("data_pull_mode", &self.data_pull_mode);
formatter.field("schedule_start_time", &self.schedule_start_time);
formatter.field("schedule_end_time", &self.schedule_end_time);
formatter.field("timezone", &self.timezone);
formatter.field("schedule_offset", &self.schedule_offset);
formatter.field("first_execution_from", &self.first_execution_from);
formatter.finish()
}
}
pub mod scheduled_trigger_properties {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) schedule_expression: std::option::Option<std::string::String>,
pub(crate) data_pull_mode: std::option::Option<crate::model::DataPullMode>,
pub(crate) schedule_start_time: std::option::Option<aws_smithy_types::Instant>,
pub(crate) schedule_end_time: std::option::Option<aws_smithy_types::Instant>,
pub(crate) timezone: std::option::Option<std::string::String>,
pub(crate) schedule_offset: std::option::Option<i64>,
pub(crate) first_execution_from: std::option::Option<aws_smithy_types::Instant>,
}
impl Builder {
pub fn schedule_expression(mut self, input: impl Into<std::string::String>) -> Self {
self.schedule_expression = Some(input.into());
self
}
pub fn set_schedule_expression(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.schedule_expression = input;
self
}
pub fn data_pull_mode(mut self, input: crate::model::DataPullMode) -> Self {
self.data_pull_mode = Some(input);
self
}
pub fn set_data_pull_mode(
mut self,
input: std::option::Option<crate::model::DataPullMode>,
) -> Self {
self.data_pull_mode = input;
self
}
pub fn schedule_start_time(mut self, input: aws_smithy_types::Instant) -> Self {
self.schedule_start_time = Some(input);
self
}
pub fn set_schedule_start_time(
mut self,
input: std::option::Option<aws_smithy_types::Instant>,
) -> Self {
self.schedule_start_time = input;
self
}
pub fn schedule_end_time(mut self, input: aws_smithy_types::Instant) -> Self {
self.schedule_end_time = Some(input);
self
}
pub fn set_schedule_end_time(
mut self,
input: std::option::Option<aws_smithy_types::Instant>,
) -> Self {
self.schedule_end_time = input;
self
}
pub fn timezone(mut self, input: impl Into<std::string::String>) -> Self {
self.timezone = Some(input.into());
self
}
pub fn set_timezone(mut self, input: std::option::Option<std::string::String>) -> Self {
self.timezone = input;
self
}
pub fn schedule_offset(mut self, input: i64) -> Self {
self.schedule_offset = Some(input);
self
}
pub fn set_schedule_offset(mut self, input: std::option::Option<i64>) -> Self {
self.schedule_offset = input;
self
}
pub fn first_execution_from(mut self, input: aws_smithy_types::Instant) -> Self {
self.first_execution_from = Some(input);
self
}
pub fn set_first_execution_from(
mut self,
input: std::option::Option<aws_smithy_types::Instant>,
) -> Self {
self.first_execution_from = input;
self
}
pub fn build(self) -> crate::model::ScheduledTriggerProperties {
crate::model::ScheduledTriggerProperties {
schedule_expression: self.schedule_expression,
data_pull_mode: self.data_pull_mode,
schedule_start_time: self.schedule_start_time,
schedule_end_time: self.schedule_end_time,
timezone: self.timezone,
schedule_offset: self.schedule_offset,
first_execution_from: self.first_execution_from,
}
}
}
}
impl ScheduledTriggerProperties {
pub fn builder() -> crate::model::scheduled_trigger_properties::Builder {
crate::model::scheduled_trigger_properties::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 DataPullMode {
#[allow(missing_docs)] Complete,
#[allow(missing_docs)] Incremental,
Unknown(String),
}
impl std::convert::From<&str> for DataPullMode {
fn from(s: &str) -> Self {
match s {
"Complete" => DataPullMode::Complete,
"Incremental" => DataPullMode::Incremental,
other => DataPullMode::Unknown(other.to_owned()),
}
}
}
impl std::str::FromStr for DataPullMode {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(DataPullMode::from(s))
}
}
impl DataPullMode {
pub fn as_str(&self) -> &str {
match self {
DataPullMode::Complete => "Complete",
DataPullMode::Incremental => "Incremental",
DataPullMode::Unknown(s) => s.as_ref(),
}
}
pub fn values() -> &'static [&'static str] {
&["Complete", "Incremental"]
}
}
impl AsRef<str> for DataPullMode {
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 TriggerType {
#[allow(missing_docs)] Event,
#[allow(missing_docs)] Ondemand,
#[allow(missing_docs)] Scheduled,
Unknown(String),
}
impl std::convert::From<&str> for TriggerType {
fn from(s: &str) -> Self {
match s {
"Event" => TriggerType::Event,
"OnDemand" => TriggerType::Ondemand,
"Scheduled" => TriggerType::Scheduled,
other => TriggerType::Unknown(other.to_owned()),
}
}
}
impl std::str::FromStr for TriggerType {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(TriggerType::from(s))
}
}
impl TriggerType {
pub fn as_str(&self) -> &str {
match self {
TriggerType::Event => "Event",
TriggerType::Ondemand => "OnDemand",
TriggerType::Scheduled => "Scheduled",
TriggerType::Unknown(s) => s.as_ref(),
}
}
pub fn values() -> &'static [&'static str] {
&["Event", "OnDemand", "Scheduled"]
}
}
impl AsRef<str> for TriggerType {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ConnectorProfileConfig {
pub connector_profile_properties: std::option::Option<crate::model::ConnectorProfileProperties>,
pub connector_profile_credentials:
std::option::Option<crate::model::ConnectorProfileCredentials>,
}
impl std::fmt::Debug for ConnectorProfileConfig {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ConnectorProfileConfig");
formatter.field(
"connector_profile_properties",
&self.connector_profile_properties,
);
formatter.field(
"connector_profile_credentials",
&self.connector_profile_credentials,
);
formatter.finish()
}
}
pub mod connector_profile_config {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) connector_profile_properties:
std::option::Option<crate::model::ConnectorProfileProperties>,
pub(crate) connector_profile_credentials:
std::option::Option<crate::model::ConnectorProfileCredentials>,
}
impl Builder {
pub fn connector_profile_properties(
mut self,
input: crate::model::ConnectorProfileProperties,
) -> Self {
self.connector_profile_properties = Some(input);
self
}
pub fn set_connector_profile_properties(
mut self,
input: std::option::Option<crate::model::ConnectorProfileProperties>,
) -> Self {
self.connector_profile_properties = input;
self
}
pub fn connector_profile_credentials(
mut self,
input: crate::model::ConnectorProfileCredentials,
) -> Self {
self.connector_profile_credentials = Some(input);
self
}
pub fn set_connector_profile_credentials(
mut self,
input: std::option::Option<crate::model::ConnectorProfileCredentials>,
) -> Self {
self.connector_profile_credentials = input;
self
}
pub fn build(self) -> crate::model::ConnectorProfileConfig {
crate::model::ConnectorProfileConfig {
connector_profile_properties: self.connector_profile_properties,
connector_profile_credentials: self.connector_profile_credentials,
}
}
}
}
impl ConnectorProfileConfig {
pub fn builder() -> crate::model::connector_profile_config::Builder {
crate::model::connector_profile_config::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ConnectorProfileCredentials {
pub amplitude: std::option::Option<crate::model::AmplitudeConnectorProfileCredentials>,
pub datadog: std::option::Option<crate::model::DatadogConnectorProfileCredentials>,
pub dynatrace: std::option::Option<crate::model::DynatraceConnectorProfileCredentials>,
pub google_analytics:
std::option::Option<crate::model::GoogleAnalyticsConnectorProfileCredentials>,
pub honeycode: std::option::Option<crate::model::HoneycodeConnectorProfileCredentials>,
pub infor_nexus: std::option::Option<crate::model::InforNexusConnectorProfileCredentials>,
pub marketo: std::option::Option<crate::model::MarketoConnectorProfileCredentials>,
pub redshift: std::option::Option<crate::model::RedshiftConnectorProfileCredentials>,
pub salesforce: std::option::Option<crate::model::SalesforceConnectorProfileCredentials>,
pub service_now: std::option::Option<crate::model::ServiceNowConnectorProfileCredentials>,
pub singular: std::option::Option<crate::model::SingularConnectorProfileCredentials>,
pub slack: std::option::Option<crate::model::SlackConnectorProfileCredentials>,
pub snowflake: std::option::Option<crate::model::SnowflakeConnectorProfileCredentials>,
pub trendmicro: std::option::Option<crate::model::TrendmicroConnectorProfileCredentials>,
pub veeva: std::option::Option<crate::model::VeevaConnectorProfileCredentials>,
pub zendesk: std::option::Option<crate::model::ZendeskConnectorProfileCredentials>,
pub sapo_data: std::option::Option<crate::model::SapoDataConnectorProfileCredentials>,
}
impl std::fmt::Debug for ConnectorProfileCredentials {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ConnectorProfileCredentials");
formatter.field("amplitude", &self.amplitude);
formatter.field("datadog", &self.datadog);
formatter.field("dynatrace", &self.dynatrace);
formatter.field("google_analytics", &self.google_analytics);
formatter.field("honeycode", &self.honeycode);
formatter.field("infor_nexus", &self.infor_nexus);
formatter.field("marketo", &self.marketo);
formatter.field("redshift", &self.redshift);
formatter.field("salesforce", &self.salesforce);
formatter.field("service_now", &self.service_now);
formatter.field("singular", &self.singular);
formatter.field("slack", &self.slack);
formatter.field("snowflake", &self.snowflake);
formatter.field("trendmicro", &self.trendmicro);
formatter.field("veeva", &self.veeva);
formatter.field("zendesk", &self.zendesk);
formatter.field("sapo_data", &self.sapo_data);
formatter.finish()
}
}
pub mod connector_profile_credentials {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) amplitude:
std::option::Option<crate::model::AmplitudeConnectorProfileCredentials>,
pub(crate) datadog: std::option::Option<crate::model::DatadogConnectorProfileCredentials>,
pub(crate) dynatrace:
std::option::Option<crate::model::DynatraceConnectorProfileCredentials>,
pub(crate) google_analytics:
std::option::Option<crate::model::GoogleAnalyticsConnectorProfileCredentials>,
pub(crate) honeycode:
std::option::Option<crate::model::HoneycodeConnectorProfileCredentials>,
pub(crate) infor_nexus:
std::option::Option<crate::model::InforNexusConnectorProfileCredentials>,
pub(crate) marketo: std::option::Option<crate::model::MarketoConnectorProfileCredentials>,
pub(crate) redshift: std::option::Option<crate::model::RedshiftConnectorProfileCredentials>,
pub(crate) salesforce:
std::option::Option<crate::model::SalesforceConnectorProfileCredentials>,
pub(crate) service_now:
std::option::Option<crate::model::ServiceNowConnectorProfileCredentials>,
pub(crate) singular: std::option::Option<crate::model::SingularConnectorProfileCredentials>,
pub(crate) slack: std::option::Option<crate::model::SlackConnectorProfileCredentials>,
pub(crate) snowflake:
std::option::Option<crate::model::SnowflakeConnectorProfileCredentials>,
pub(crate) trendmicro:
std::option::Option<crate::model::TrendmicroConnectorProfileCredentials>,
pub(crate) veeva: std::option::Option<crate::model::VeevaConnectorProfileCredentials>,
pub(crate) zendesk: std::option::Option<crate::model::ZendeskConnectorProfileCredentials>,
pub(crate) sapo_data:
std::option::Option<crate::model::SapoDataConnectorProfileCredentials>,
}
impl Builder {
pub fn amplitude(
mut self,
input: crate::model::AmplitudeConnectorProfileCredentials,
) -> Self {
self.amplitude = Some(input);
self
}
pub fn set_amplitude(
mut self,
input: std::option::Option<crate::model::AmplitudeConnectorProfileCredentials>,
) -> Self {
self.amplitude = input;
self
}
pub fn datadog(mut self, input: crate::model::DatadogConnectorProfileCredentials) -> Self {
self.datadog = Some(input);
self
}
pub fn set_datadog(
mut self,
input: std::option::Option<crate::model::DatadogConnectorProfileCredentials>,
) -> Self {
self.datadog = input;
self
}
pub fn dynatrace(
mut self,
input: crate::model::DynatraceConnectorProfileCredentials,
) -> Self {
self.dynatrace = Some(input);
self
}
pub fn set_dynatrace(
mut self,
input: std::option::Option<crate::model::DynatraceConnectorProfileCredentials>,
) -> Self {
self.dynatrace = input;
self
}
pub fn google_analytics(
mut self,
input: crate::model::GoogleAnalyticsConnectorProfileCredentials,
) -> Self {
self.google_analytics = Some(input);
self
}
pub fn set_google_analytics(
mut self,
input: std::option::Option<crate::model::GoogleAnalyticsConnectorProfileCredentials>,
) -> Self {
self.google_analytics = input;
self
}
pub fn honeycode(
mut self,
input: crate::model::HoneycodeConnectorProfileCredentials,
) -> Self {
self.honeycode = Some(input);
self
}
pub fn set_honeycode(
mut self,
input: std::option::Option<crate::model::HoneycodeConnectorProfileCredentials>,
) -> Self {
self.honeycode = input;
self
}
pub fn infor_nexus(
mut self,
input: crate::model::InforNexusConnectorProfileCredentials,
) -> Self {
self.infor_nexus = Some(input);
self
}
pub fn set_infor_nexus(
mut self,
input: std::option::Option<crate::model::InforNexusConnectorProfileCredentials>,
) -> Self {
self.infor_nexus = input;
self
}
pub fn marketo(mut self, input: crate::model::MarketoConnectorProfileCredentials) -> Self {
self.marketo = Some(input);
self
}
pub fn set_marketo(
mut self,
input: std::option::Option<crate::model::MarketoConnectorProfileCredentials>,
) -> Self {
self.marketo = input;
self
}
pub fn redshift(
mut self,
input: crate::model::RedshiftConnectorProfileCredentials,
) -> Self {
self.redshift = Some(input);
self
}
pub fn set_redshift(
mut self,
input: std::option::Option<crate::model::RedshiftConnectorProfileCredentials>,
) -> Self {
self.redshift = input;
self
}
pub fn salesforce(
mut self,
input: crate::model::SalesforceConnectorProfileCredentials,
) -> Self {
self.salesforce = Some(input);
self
}
pub fn set_salesforce(
mut self,
input: std::option::Option<crate::model::SalesforceConnectorProfileCredentials>,
) -> Self {
self.salesforce = input;
self
}
pub fn service_now(
mut self,
input: crate::model::ServiceNowConnectorProfileCredentials,
) -> Self {
self.service_now = Some(input);
self
}
pub fn set_service_now(
mut self,
input: std::option::Option<crate::model::ServiceNowConnectorProfileCredentials>,
) -> Self {
self.service_now = input;
self
}
pub fn singular(
mut self,
input: crate::model::SingularConnectorProfileCredentials,
) -> Self {
self.singular = Some(input);
self
}
pub fn set_singular(
mut self,
input: std::option::Option<crate::model::SingularConnectorProfileCredentials>,
) -> Self {
self.singular = input;
self
}
pub fn slack(mut self, input: crate::model::SlackConnectorProfileCredentials) -> Self {
self.slack = Some(input);
self
}
pub fn set_slack(
mut self,
input: std::option::Option<crate::model::SlackConnectorProfileCredentials>,
) -> Self {
self.slack = input;
self
}
pub fn snowflake(
mut self,
input: crate::model::SnowflakeConnectorProfileCredentials,
) -> Self {
self.snowflake = Some(input);
self
}
pub fn set_snowflake(
mut self,
input: std::option::Option<crate::model::SnowflakeConnectorProfileCredentials>,
) -> Self {
self.snowflake = input;
self
}
pub fn trendmicro(
mut self,
input: crate::model::TrendmicroConnectorProfileCredentials,
) -> Self {
self.trendmicro = Some(input);
self
}
pub fn set_trendmicro(
mut self,
input: std::option::Option<crate::model::TrendmicroConnectorProfileCredentials>,
) -> Self {
self.trendmicro = input;
self
}
pub fn veeva(mut self, input: crate::model::VeevaConnectorProfileCredentials) -> Self {
self.veeva = Some(input);
self
}
pub fn set_veeva(
mut self,
input: std::option::Option<crate::model::VeevaConnectorProfileCredentials>,
) -> Self {
self.veeva = input;
self
}
pub fn zendesk(mut self, input: crate::model::ZendeskConnectorProfileCredentials) -> Self {
self.zendesk = Some(input);
self
}
pub fn set_zendesk(
mut self,
input: std::option::Option<crate::model::ZendeskConnectorProfileCredentials>,
) -> Self {
self.zendesk = input;
self
}
pub fn sapo_data(
mut self,
input: crate::model::SapoDataConnectorProfileCredentials,
) -> Self {
self.sapo_data = Some(input);
self
}
pub fn set_sapo_data(
mut self,
input: std::option::Option<crate::model::SapoDataConnectorProfileCredentials>,
) -> Self {
self.sapo_data = input;
self
}
pub fn build(self) -> crate::model::ConnectorProfileCredentials {
crate::model::ConnectorProfileCredentials {
amplitude: self.amplitude,
datadog: self.datadog,
dynatrace: self.dynatrace,
google_analytics: self.google_analytics,
honeycode: self.honeycode,
infor_nexus: self.infor_nexus,
marketo: self.marketo,
redshift: self.redshift,
salesforce: self.salesforce,
service_now: self.service_now,
singular: self.singular,
slack: self.slack,
snowflake: self.snowflake,
trendmicro: self.trendmicro,
veeva: self.veeva,
zendesk: self.zendesk,
sapo_data: self.sapo_data,
}
}
}
}
impl ConnectorProfileCredentials {
pub fn builder() -> crate::model::connector_profile_credentials::Builder {
crate::model::connector_profile_credentials::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct SapoDataConnectorProfileCredentials {
pub basic_auth_credentials: std::option::Option<crate::model::BasicAuthCredentials>,
pub o_auth_credentials: std::option::Option<crate::model::OAuthCredentials>,
}
impl std::fmt::Debug for SapoDataConnectorProfileCredentials {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("SapoDataConnectorProfileCredentials");
formatter.field("basic_auth_credentials", &self.basic_auth_credentials);
formatter.field("o_auth_credentials", &self.o_auth_credentials);
formatter.finish()
}
}
pub mod sapo_data_connector_profile_credentials {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) basic_auth_credentials: std::option::Option<crate::model::BasicAuthCredentials>,
pub(crate) o_auth_credentials: std::option::Option<crate::model::OAuthCredentials>,
}
impl Builder {
pub fn basic_auth_credentials(mut self, input: crate::model::BasicAuthCredentials) -> Self {
self.basic_auth_credentials = Some(input);
self
}
pub fn set_basic_auth_credentials(
mut self,
input: std::option::Option<crate::model::BasicAuthCredentials>,
) -> Self {
self.basic_auth_credentials = input;
self
}
pub fn o_auth_credentials(mut self, input: crate::model::OAuthCredentials) -> Self {
self.o_auth_credentials = Some(input);
self
}
pub fn set_o_auth_credentials(
mut self,
input: std::option::Option<crate::model::OAuthCredentials>,
) -> Self {
self.o_auth_credentials = input;
self
}
pub fn build(self) -> crate::model::SapoDataConnectorProfileCredentials {
crate::model::SapoDataConnectorProfileCredentials {
basic_auth_credentials: self.basic_auth_credentials,
o_auth_credentials: self.o_auth_credentials,
}
}
}
}
impl SapoDataConnectorProfileCredentials {
pub fn builder() -> crate::model::sapo_data_connector_profile_credentials::Builder {
crate::model::sapo_data_connector_profile_credentials::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct OAuthCredentials {
pub client_id: std::option::Option<std::string::String>,
pub client_secret: std::option::Option<std::string::String>,
pub access_token: std::option::Option<std::string::String>,
pub refresh_token: std::option::Option<std::string::String>,
pub o_auth_request: std::option::Option<crate::model::ConnectorOAuthRequest>,
}
impl std::fmt::Debug for OAuthCredentials {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("OAuthCredentials");
formatter.field("client_id", &self.client_id);
formatter.field("client_secret", &"*** Sensitive Data Redacted ***");
formatter.field("access_token", &"*** Sensitive Data Redacted ***");
formatter.field("refresh_token", &self.refresh_token);
formatter.field("o_auth_request", &self.o_auth_request);
formatter.finish()
}
}
pub mod o_auth_credentials {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) client_id: std::option::Option<std::string::String>,
pub(crate) client_secret: std::option::Option<std::string::String>,
pub(crate) access_token: std::option::Option<std::string::String>,
pub(crate) refresh_token: std::option::Option<std::string::String>,
pub(crate) o_auth_request: std::option::Option<crate::model::ConnectorOAuthRequest>,
}
impl Builder {
pub fn client_id(mut self, input: impl Into<std::string::String>) -> Self {
self.client_id = Some(input.into());
self
}
pub fn set_client_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.client_id = input;
self
}
pub fn client_secret(mut self, input: impl Into<std::string::String>) -> Self {
self.client_secret = Some(input.into());
self
}
pub fn set_client_secret(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.client_secret = input;
self
}
pub fn access_token(mut self, input: impl Into<std::string::String>) -> Self {
self.access_token = Some(input.into());
self
}
pub fn set_access_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.access_token = input;
self
}
pub fn refresh_token(mut self, input: impl Into<std::string::String>) -> Self {
self.refresh_token = Some(input.into());
self
}
pub fn set_refresh_token(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.refresh_token = input;
self
}
pub fn o_auth_request(mut self, input: crate::model::ConnectorOAuthRequest) -> Self {
self.o_auth_request = Some(input);
self
}
pub fn set_o_auth_request(
mut self,
input: std::option::Option<crate::model::ConnectorOAuthRequest>,
) -> Self {
self.o_auth_request = input;
self
}
pub fn build(self) -> crate::model::OAuthCredentials {
crate::model::OAuthCredentials {
client_id: self.client_id,
client_secret: self.client_secret,
access_token: self.access_token,
refresh_token: self.refresh_token,
o_auth_request: self.o_auth_request,
}
}
}
}
impl OAuthCredentials {
pub fn builder() -> crate::model::o_auth_credentials::Builder {
crate::model::o_auth_credentials::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ConnectorOAuthRequest {
pub auth_code: std::option::Option<std::string::String>,
pub redirect_uri: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for ConnectorOAuthRequest {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ConnectorOAuthRequest");
formatter.field("auth_code", &self.auth_code);
formatter.field("redirect_uri", &self.redirect_uri);
formatter.finish()
}
}
pub mod connector_o_auth_request {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) auth_code: std::option::Option<std::string::String>,
pub(crate) redirect_uri: std::option::Option<std::string::String>,
}
impl Builder {
pub fn auth_code(mut self, input: impl Into<std::string::String>) -> Self {
self.auth_code = Some(input.into());
self
}
pub fn set_auth_code(mut self, input: std::option::Option<std::string::String>) -> Self {
self.auth_code = input;
self
}
pub fn redirect_uri(mut self, input: impl Into<std::string::String>) -> Self {
self.redirect_uri = Some(input.into());
self
}
pub fn set_redirect_uri(mut self, input: std::option::Option<std::string::String>) -> Self {
self.redirect_uri = input;
self
}
pub fn build(self) -> crate::model::ConnectorOAuthRequest {
crate::model::ConnectorOAuthRequest {
auth_code: self.auth_code,
redirect_uri: self.redirect_uri,
}
}
}
}
impl ConnectorOAuthRequest {
pub fn builder() -> crate::model::connector_o_auth_request::Builder {
crate::model::connector_o_auth_request::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct BasicAuthCredentials {
pub username: std::option::Option<std::string::String>,
pub password: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for BasicAuthCredentials {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("BasicAuthCredentials");
formatter.field("username", &self.username);
formatter.field("password", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
pub mod basic_auth_credentials {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) username: std::option::Option<std::string::String>,
pub(crate) password: std::option::Option<std::string::String>,
}
impl Builder {
pub fn username(mut self, input: impl Into<std::string::String>) -> Self {
self.username = Some(input.into());
self
}
pub fn set_username(mut self, input: std::option::Option<std::string::String>) -> Self {
self.username = input;
self
}
pub fn password(mut self, input: impl Into<std::string::String>) -> Self {
self.password = Some(input.into());
self
}
pub fn set_password(mut self, input: std::option::Option<std::string::String>) -> Self {
self.password = input;
self
}
pub fn build(self) -> crate::model::BasicAuthCredentials {
crate::model::BasicAuthCredentials {
username: self.username,
password: self.password,
}
}
}
}
impl BasicAuthCredentials {
pub fn builder() -> crate::model::basic_auth_credentials::Builder {
crate::model::basic_auth_credentials::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ZendeskConnectorProfileCredentials {
pub client_id: std::option::Option<std::string::String>,
pub client_secret: std::option::Option<std::string::String>,
pub access_token: std::option::Option<std::string::String>,
pub o_auth_request: std::option::Option<crate::model::ConnectorOAuthRequest>,
}
impl std::fmt::Debug for ZendeskConnectorProfileCredentials {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ZendeskConnectorProfileCredentials");
formatter.field("client_id", &self.client_id);
formatter.field("client_secret", &"*** Sensitive Data Redacted ***");
formatter.field("access_token", &"*** Sensitive Data Redacted ***");
formatter.field("o_auth_request", &self.o_auth_request);
formatter.finish()
}
}
pub mod zendesk_connector_profile_credentials {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) client_id: std::option::Option<std::string::String>,
pub(crate) client_secret: std::option::Option<std::string::String>,
pub(crate) access_token: std::option::Option<std::string::String>,
pub(crate) o_auth_request: std::option::Option<crate::model::ConnectorOAuthRequest>,
}
impl Builder {
pub fn client_id(mut self, input: impl Into<std::string::String>) -> Self {
self.client_id = Some(input.into());
self
}
pub fn set_client_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.client_id = input;
self
}
pub fn client_secret(mut self, input: impl Into<std::string::String>) -> Self {
self.client_secret = Some(input.into());
self
}
pub fn set_client_secret(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.client_secret = input;
self
}
pub fn access_token(mut self, input: impl Into<std::string::String>) -> Self {
self.access_token = Some(input.into());
self
}
pub fn set_access_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.access_token = input;
self
}
pub fn o_auth_request(mut self, input: crate::model::ConnectorOAuthRequest) -> Self {
self.o_auth_request = Some(input);
self
}
pub fn set_o_auth_request(
mut self,
input: std::option::Option<crate::model::ConnectorOAuthRequest>,
) -> Self {
self.o_auth_request = input;
self
}
pub fn build(self) -> crate::model::ZendeskConnectorProfileCredentials {
crate::model::ZendeskConnectorProfileCredentials {
client_id: self.client_id,
client_secret: self.client_secret,
access_token: self.access_token,
o_auth_request: self.o_auth_request,
}
}
}
}
impl ZendeskConnectorProfileCredentials {
pub fn builder() -> crate::model::zendesk_connector_profile_credentials::Builder {
crate::model::zendesk_connector_profile_credentials::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct VeevaConnectorProfileCredentials {
pub username: std::option::Option<std::string::String>,
pub password: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for VeevaConnectorProfileCredentials {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("VeevaConnectorProfileCredentials");
formatter.field("username", &self.username);
formatter.field("password", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
pub mod veeva_connector_profile_credentials {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) username: std::option::Option<std::string::String>,
pub(crate) password: std::option::Option<std::string::String>,
}
impl Builder {
pub fn username(mut self, input: impl Into<std::string::String>) -> Self {
self.username = Some(input.into());
self
}
pub fn set_username(mut self, input: std::option::Option<std::string::String>) -> Self {
self.username = input;
self
}
pub fn password(mut self, input: impl Into<std::string::String>) -> Self {
self.password = Some(input.into());
self
}
pub fn set_password(mut self, input: std::option::Option<std::string::String>) -> Self {
self.password = input;
self
}
pub fn build(self) -> crate::model::VeevaConnectorProfileCredentials {
crate::model::VeevaConnectorProfileCredentials {
username: self.username,
password: self.password,
}
}
}
}
impl VeevaConnectorProfileCredentials {
pub fn builder() -> crate::model::veeva_connector_profile_credentials::Builder {
crate::model::veeva_connector_profile_credentials::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct TrendmicroConnectorProfileCredentials {
pub api_secret_key: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for TrendmicroConnectorProfileCredentials {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("TrendmicroConnectorProfileCredentials");
formatter.field("api_secret_key", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
pub mod trendmicro_connector_profile_credentials {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) api_secret_key: std::option::Option<std::string::String>,
}
impl Builder {
pub fn api_secret_key(mut self, input: impl Into<std::string::String>) -> Self {
self.api_secret_key = Some(input.into());
self
}
pub fn set_api_secret_key(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.api_secret_key = input;
self
}
pub fn build(self) -> crate::model::TrendmicroConnectorProfileCredentials {
crate::model::TrendmicroConnectorProfileCredentials {
api_secret_key: self.api_secret_key,
}
}
}
}
impl TrendmicroConnectorProfileCredentials {
pub fn builder() -> crate::model::trendmicro_connector_profile_credentials::Builder {
crate::model::trendmicro_connector_profile_credentials::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct SnowflakeConnectorProfileCredentials {
pub username: std::option::Option<std::string::String>,
pub password: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for SnowflakeConnectorProfileCredentials {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("SnowflakeConnectorProfileCredentials");
formatter.field("username", &self.username);
formatter.field("password", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
pub mod snowflake_connector_profile_credentials {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) username: std::option::Option<std::string::String>,
pub(crate) password: std::option::Option<std::string::String>,
}
impl Builder {
pub fn username(mut self, input: impl Into<std::string::String>) -> Self {
self.username = Some(input.into());
self
}
pub fn set_username(mut self, input: std::option::Option<std::string::String>) -> Self {
self.username = input;
self
}
pub fn password(mut self, input: impl Into<std::string::String>) -> Self {
self.password = Some(input.into());
self
}
pub fn set_password(mut self, input: std::option::Option<std::string::String>) -> Self {
self.password = input;
self
}
pub fn build(self) -> crate::model::SnowflakeConnectorProfileCredentials {
crate::model::SnowflakeConnectorProfileCredentials {
username: self.username,
password: self.password,
}
}
}
}
impl SnowflakeConnectorProfileCredentials {
pub fn builder() -> crate::model::snowflake_connector_profile_credentials::Builder {
crate::model::snowflake_connector_profile_credentials::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct SlackConnectorProfileCredentials {
pub client_id: std::option::Option<std::string::String>,
pub client_secret: std::option::Option<std::string::String>,
pub access_token: std::option::Option<std::string::String>,
pub o_auth_request: std::option::Option<crate::model::ConnectorOAuthRequest>,
}
impl std::fmt::Debug for SlackConnectorProfileCredentials {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("SlackConnectorProfileCredentials");
formatter.field("client_id", &self.client_id);
formatter.field("client_secret", &"*** Sensitive Data Redacted ***");
formatter.field("access_token", &"*** Sensitive Data Redacted ***");
formatter.field("o_auth_request", &self.o_auth_request);
formatter.finish()
}
}
pub mod slack_connector_profile_credentials {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) client_id: std::option::Option<std::string::String>,
pub(crate) client_secret: std::option::Option<std::string::String>,
pub(crate) access_token: std::option::Option<std::string::String>,
pub(crate) o_auth_request: std::option::Option<crate::model::ConnectorOAuthRequest>,
}
impl Builder {
pub fn client_id(mut self, input: impl Into<std::string::String>) -> Self {
self.client_id = Some(input.into());
self
}
pub fn set_client_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.client_id = input;
self
}
pub fn client_secret(mut self, input: impl Into<std::string::String>) -> Self {
self.client_secret = Some(input.into());
self
}
pub fn set_client_secret(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.client_secret = input;
self
}
pub fn access_token(mut self, input: impl Into<std::string::String>) -> Self {
self.access_token = Some(input.into());
self
}
pub fn set_access_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.access_token = input;
self
}
pub fn o_auth_request(mut self, input: crate::model::ConnectorOAuthRequest) -> Self {
self.o_auth_request = Some(input);
self
}
pub fn set_o_auth_request(
mut self,
input: std::option::Option<crate::model::ConnectorOAuthRequest>,
) -> Self {
self.o_auth_request = input;
self
}
pub fn build(self) -> crate::model::SlackConnectorProfileCredentials {
crate::model::SlackConnectorProfileCredentials {
client_id: self.client_id,
client_secret: self.client_secret,
access_token: self.access_token,
o_auth_request: self.o_auth_request,
}
}
}
}
impl SlackConnectorProfileCredentials {
pub fn builder() -> crate::model::slack_connector_profile_credentials::Builder {
crate::model::slack_connector_profile_credentials::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct SingularConnectorProfileCredentials {
pub api_key: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for SingularConnectorProfileCredentials {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("SingularConnectorProfileCredentials");
formatter.field("api_key", &self.api_key);
formatter.finish()
}
}
pub mod singular_connector_profile_credentials {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) api_key: std::option::Option<std::string::String>,
}
impl Builder {
pub fn api_key(mut self, input: impl Into<std::string::String>) -> Self {
self.api_key = Some(input.into());
self
}
pub fn set_api_key(mut self, input: std::option::Option<std::string::String>) -> Self {
self.api_key = input;
self
}
pub fn build(self) -> crate::model::SingularConnectorProfileCredentials {
crate::model::SingularConnectorProfileCredentials {
api_key: self.api_key,
}
}
}
}
impl SingularConnectorProfileCredentials {
pub fn builder() -> crate::model::singular_connector_profile_credentials::Builder {
crate::model::singular_connector_profile_credentials::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ServiceNowConnectorProfileCredentials {
pub username: std::option::Option<std::string::String>,
pub password: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for ServiceNowConnectorProfileCredentials {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ServiceNowConnectorProfileCredentials");
formatter.field("username", &self.username);
formatter.field("password", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
pub mod service_now_connector_profile_credentials {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) username: std::option::Option<std::string::String>,
pub(crate) password: std::option::Option<std::string::String>,
}
impl Builder {
pub fn username(mut self, input: impl Into<std::string::String>) -> Self {
self.username = Some(input.into());
self
}
pub fn set_username(mut self, input: std::option::Option<std::string::String>) -> Self {
self.username = input;
self
}
pub fn password(mut self, input: impl Into<std::string::String>) -> Self {
self.password = Some(input.into());
self
}
pub fn set_password(mut self, input: std::option::Option<std::string::String>) -> Self {
self.password = input;
self
}
pub fn build(self) -> crate::model::ServiceNowConnectorProfileCredentials {
crate::model::ServiceNowConnectorProfileCredentials {
username: self.username,
password: self.password,
}
}
}
}
impl ServiceNowConnectorProfileCredentials {
pub fn builder() -> crate::model::service_now_connector_profile_credentials::Builder {
crate::model::service_now_connector_profile_credentials::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct SalesforceConnectorProfileCredentials {
pub access_token: std::option::Option<std::string::String>,
pub refresh_token: std::option::Option<std::string::String>,
pub o_auth_request: std::option::Option<crate::model::ConnectorOAuthRequest>,
pub client_credentials_arn: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for SalesforceConnectorProfileCredentials {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("SalesforceConnectorProfileCredentials");
formatter.field("access_token", &"*** Sensitive Data Redacted ***");
formatter.field("refresh_token", &self.refresh_token);
formatter.field("o_auth_request", &self.o_auth_request);
formatter.field("client_credentials_arn", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
pub mod salesforce_connector_profile_credentials {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) access_token: std::option::Option<std::string::String>,
pub(crate) refresh_token: std::option::Option<std::string::String>,
pub(crate) o_auth_request: std::option::Option<crate::model::ConnectorOAuthRequest>,
pub(crate) client_credentials_arn: std::option::Option<std::string::String>,
}
impl Builder {
pub fn access_token(mut self, input: impl Into<std::string::String>) -> Self {
self.access_token = Some(input.into());
self
}
pub fn set_access_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.access_token = input;
self
}
pub fn refresh_token(mut self, input: impl Into<std::string::String>) -> Self {
self.refresh_token = Some(input.into());
self
}
pub fn set_refresh_token(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.refresh_token = input;
self
}
pub fn o_auth_request(mut self, input: crate::model::ConnectorOAuthRequest) -> Self {
self.o_auth_request = Some(input);
self
}
pub fn set_o_auth_request(
mut self,
input: std::option::Option<crate::model::ConnectorOAuthRequest>,
) -> Self {
self.o_auth_request = input;
self
}
pub fn client_credentials_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.client_credentials_arn = Some(input.into());
self
}
pub fn set_client_credentials_arn(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.client_credentials_arn = input;
self
}
pub fn build(self) -> crate::model::SalesforceConnectorProfileCredentials {
crate::model::SalesforceConnectorProfileCredentials {
access_token: self.access_token,
refresh_token: self.refresh_token,
o_auth_request: self.o_auth_request,
client_credentials_arn: self.client_credentials_arn,
}
}
}
}
impl SalesforceConnectorProfileCredentials {
pub fn builder() -> crate::model::salesforce_connector_profile_credentials::Builder {
crate::model::salesforce_connector_profile_credentials::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct RedshiftConnectorProfileCredentials {
pub username: std::option::Option<std::string::String>,
pub password: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for RedshiftConnectorProfileCredentials {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("RedshiftConnectorProfileCredentials");
formatter.field("username", &self.username);
formatter.field("password", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
pub mod redshift_connector_profile_credentials {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) username: std::option::Option<std::string::String>,
pub(crate) password: std::option::Option<std::string::String>,
}
impl Builder {
pub fn username(mut self, input: impl Into<std::string::String>) -> Self {
self.username = Some(input.into());
self
}
pub fn set_username(mut self, input: std::option::Option<std::string::String>) -> Self {
self.username = input;
self
}
pub fn password(mut self, input: impl Into<std::string::String>) -> Self {
self.password = Some(input.into());
self
}
pub fn set_password(mut self, input: std::option::Option<std::string::String>) -> Self {
self.password = input;
self
}
pub fn build(self) -> crate::model::RedshiftConnectorProfileCredentials {
crate::model::RedshiftConnectorProfileCredentials {
username: self.username,
password: self.password,
}
}
}
}
impl RedshiftConnectorProfileCredentials {
pub fn builder() -> crate::model::redshift_connector_profile_credentials::Builder {
crate::model::redshift_connector_profile_credentials::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct MarketoConnectorProfileCredentials {
pub client_id: std::option::Option<std::string::String>,
pub client_secret: std::option::Option<std::string::String>,
pub access_token: std::option::Option<std::string::String>,
pub o_auth_request: std::option::Option<crate::model::ConnectorOAuthRequest>,
}
impl std::fmt::Debug for MarketoConnectorProfileCredentials {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("MarketoConnectorProfileCredentials");
formatter.field("client_id", &self.client_id);
formatter.field("client_secret", &"*** Sensitive Data Redacted ***");
formatter.field("access_token", &"*** Sensitive Data Redacted ***");
formatter.field("o_auth_request", &self.o_auth_request);
formatter.finish()
}
}
pub mod marketo_connector_profile_credentials {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) client_id: std::option::Option<std::string::String>,
pub(crate) client_secret: std::option::Option<std::string::String>,
pub(crate) access_token: std::option::Option<std::string::String>,
pub(crate) o_auth_request: std::option::Option<crate::model::ConnectorOAuthRequest>,
}
impl Builder {
pub fn client_id(mut self, input: impl Into<std::string::String>) -> Self {
self.client_id = Some(input.into());
self
}
pub fn set_client_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.client_id = input;
self
}
pub fn client_secret(mut self, input: impl Into<std::string::String>) -> Self {
self.client_secret = Some(input.into());
self
}
pub fn set_client_secret(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.client_secret = input;
self
}
pub fn access_token(mut self, input: impl Into<std::string::String>) -> Self {
self.access_token = Some(input.into());
self
}
pub fn set_access_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.access_token = input;
self
}
pub fn o_auth_request(mut self, input: crate::model::ConnectorOAuthRequest) -> Self {
self.o_auth_request = Some(input);
self
}
pub fn set_o_auth_request(
mut self,
input: std::option::Option<crate::model::ConnectorOAuthRequest>,
) -> Self {
self.o_auth_request = input;
self
}
pub fn build(self) -> crate::model::MarketoConnectorProfileCredentials {
crate::model::MarketoConnectorProfileCredentials {
client_id: self.client_id,
client_secret: self.client_secret,
access_token: self.access_token,
o_auth_request: self.o_auth_request,
}
}
}
}
impl MarketoConnectorProfileCredentials {
pub fn builder() -> crate::model::marketo_connector_profile_credentials::Builder {
crate::model::marketo_connector_profile_credentials::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct InforNexusConnectorProfileCredentials {
pub access_key_id: std::option::Option<std::string::String>,
pub user_id: std::option::Option<std::string::String>,
pub secret_access_key: std::option::Option<std::string::String>,
pub datakey: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for InforNexusConnectorProfileCredentials {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("InforNexusConnectorProfileCredentials");
formatter.field("access_key_id", &"*** Sensitive Data Redacted ***");
formatter.field("user_id", &self.user_id);
formatter.field("secret_access_key", &self.secret_access_key);
formatter.field("datakey", &self.datakey);
formatter.finish()
}
}
pub mod infor_nexus_connector_profile_credentials {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) access_key_id: std::option::Option<std::string::String>,
pub(crate) user_id: std::option::Option<std::string::String>,
pub(crate) secret_access_key: std::option::Option<std::string::String>,
pub(crate) datakey: std::option::Option<std::string::String>,
}
impl Builder {
pub fn access_key_id(mut self, input: impl Into<std::string::String>) -> Self {
self.access_key_id = Some(input.into());
self
}
pub fn set_access_key_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.access_key_id = input;
self
}
pub fn user_id(mut self, input: impl Into<std::string::String>) -> Self {
self.user_id = Some(input.into());
self
}
pub fn set_user_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.user_id = input;
self
}
pub fn secret_access_key(mut self, input: impl Into<std::string::String>) -> Self {
self.secret_access_key = Some(input.into());
self
}
pub fn set_secret_access_key(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.secret_access_key = input;
self
}
pub fn datakey(mut self, input: impl Into<std::string::String>) -> Self {
self.datakey = Some(input.into());
self
}
pub fn set_datakey(mut self, input: std::option::Option<std::string::String>) -> Self {
self.datakey = input;
self
}
pub fn build(self) -> crate::model::InforNexusConnectorProfileCredentials {
crate::model::InforNexusConnectorProfileCredentials {
access_key_id: self.access_key_id,
user_id: self.user_id,
secret_access_key: self.secret_access_key,
datakey: self.datakey,
}
}
}
}
impl InforNexusConnectorProfileCredentials {
pub fn builder() -> crate::model::infor_nexus_connector_profile_credentials::Builder {
crate::model::infor_nexus_connector_profile_credentials::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct HoneycodeConnectorProfileCredentials {
pub access_token: std::option::Option<std::string::String>,
pub refresh_token: std::option::Option<std::string::String>,
pub o_auth_request: std::option::Option<crate::model::ConnectorOAuthRequest>,
}
impl std::fmt::Debug for HoneycodeConnectorProfileCredentials {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("HoneycodeConnectorProfileCredentials");
formatter.field("access_token", &"*** Sensitive Data Redacted ***");
formatter.field("refresh_token", &self.refresh_token);
formatter.field("o_auth_request", &self.o_auth_request);
formatter.finish()
}
}
pub mod honeycode_connector_profile_credentials {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) access_token: std::option::Option<std::string::String>,
pub(crate) refresh_token: std::option::Option<std::string::String>,
pub(crate) o_auth_request: std::option::Option<crate::model::ConnectorOAuthRequest>,
}
impl Builder {
pub fn access_token(mut self, input: impl Into<std::string::String>) -> Self {
self.access_token = Some(input.into());
self
}
pub fn set_access_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.access_token = input;
self
}
pub fn refresh_token(mut self, input: impl Into<std::string::String>) -> Self {
self.refresh_token = Some(input.into());
self
}
pub fn set_refresh_token(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.refresh_token = input;
self
}
pub fn o_auth_request(mut self, input: crate::model::ConnectorOAuthRequest) -> Self {
self.o_auth_request = Some(input);
self
}
pub fn set_o_auth_request(
mut self,
input: std::option::Option<crate::model::ConnectorOAuthRequest>,
) -> Self {
self.o_auth_request = input;
self
}
pub fn build(self) -> crate::model::HoneycodeConnectorProfileCredentials {
crate::model::HoneycodeConnectorProfileCredentials {
access_token: self.access_token,
refresh_token: self.refresh_token,
o_auth_request: self.o_auth_request,
}
}
}
}
impl HoneycodeConnectorProfileCredentials {
pub fn builder() -> crate::model::honeycode_connector_profile_credentials::Builder {
crate::model::honeycode_connector_profile_credentials::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct GoogleAnalyticsConnectorProfileCredentials {
pub client_id: std::option::Option<std::string::String>,
pub client_secret: std::option::Option<std::string::String>,
pub access_token: std::option::Option<std::string::String>,
pub refresh_token: std::option::Option<std::string::String>,
pub o_auth_request: std::option::Option<crate::model::ConnectorOAuthRequest>,
}
impl std::fmt::Debug for GoogleAnalyticsConnectorProfileCredentials {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("GoogleAnalyticsConnectorProfileCredentials");
formatter.field("client_id", &self.client_id);
formatter.field("client_secret", &"*** Sensitive Data Redacted ***");
formatter.field("access_token", &"*** Sensitive Data Redacted ***");
formatter.field("refresh_token", &self.refresh_token);
formatter.field("o_auth_request", &self.o_auth_request);
formatter.finish()
}
}
pub mod google_analytics_connector_profile_credentials {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) client_id: std::option::Option<std::string::String>,
pub(crate) client_secret: std::option::Option<std::string::String>,
pub(crate) access_token: std::option::Option<std::string::String>,
pub(crate) refresh_token: std::option::Option<std::string::String>,
pub(crate) o_auth_request: std::option::Option<crate::model::ConnectorOAuthRequest>,
}
impl Builder {
pub fn client_id(mut self, input: impl Into<std::string::String>) -> Self {
self.client_id = Some(input.into());
self
}
pub fn set_client_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.client_id = input;
self
}
pub fn client_secret(mut self, input: impl Into<std::string::String>) -> Self {
self.client_secret = Some(input.into());
self
}
pub fn set_client_secret(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.client_secret = input;
self
}
pub fn access_token(mut self, input: impl Into<std::string::String>) -> Self {
self.access_token = Some(input.into());
self
}
pub fn set_access_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.access_token = input;
self
}
pub fn refresh_token(mut self, input: impl Into<std::string::String>) -> Self {
self.refresh_token = Some(input.into());
self
}
pub fn set_refresh_token(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.refresh_token = input;
self
}
pub fn o_auth_request(mut self, input: crate::model::ConnectorOAuthRequest) -> Self {
self.o_auth_request = Some(input);
self
}
pub fn set_o_auth_request(
mut self,
input: std::option::Option<crate::model::ConnectorOAuthRequest>,
) -> Self {
self.o_auth_request = input;
self
}
pub fn build(self) -> crate::model::GoogleAnalyticsConnectorProfileCredentials {
crate::model::GoogleAnalyticsConnectorProfileCredentials {
client_id: self.client_id,
client_secret: self.client_secret,
access_token: self.access_token,
refresh_token: self.refresh_token,
o_auth_request: self.o_auth_request,
}
}
}
}
impl GoogleAnalyticsConnectorProfileCredentials {
pub fn builder() -> crate::model::google_analytics_connector_profile_credentials::Builder {
crate::model::google_analytics_connector_profile_credentials::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct DynatraceConnectorProfileCredentials {
pub api_token: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for DynatraceConnectorProfileCredentials {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("DynatraceConnectorProfileCredentials");
formatter.field("api_token", &self.api_token);
formatter.finish()
}
}
pub mod dynatrace_connector_profile_credentials {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) api_token: std::option::Option<std::string::String>,
}
impl Builder {
pub fn api_token(mut self, input: impl Into<std::string::String>) -> Self {
self.api_token = Some(input.into());
self
}
pub fn set_api_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.api_token = input;
self
}
pub fn build(self) -> crate::model::DynatraceConnectorProfileCredentials {
crate::model::DynatraceConnectorProfileCredentials {
api_token: self.api_token,
}
}
}
}
impl DynatraceConnectorProfileCredentials {
pub fn builder() -> crate::model::dynatrace_connector_profile_credentials::Builder {
crate::model::dynatrace_connector_profile_credentials::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct DatadogConnectorProfileCredentials {
pub api_key: std::option::Option<std::string::String>,
pub application_key: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for DatadogConnectorProfileCredentials {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("DatadogConnectorProfileCredentials");
formatter.field("api_key", &self.api_key);
formatter.field("application_key", &self.application_key);
formatter.finish()
}
}
pub mod datadog_connector_profile_credentials {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) api_key: std::option::Option<std::string::String>,
pub(crate) application_key: std::option::Option<std::string::String>,
}
impl Builder {
pub fn api_key(mut self, input: impl Into<std::string::String>) -> Self {
self.api_key = Some(input.into());
self
}
pub fn set_api_key(mut self, input: std::option::Option<std::string::String>) -> Self {
self.api_key = input;
self
}
pub fn application_key(mut self, input: impl Into<std::string::String>) -> Self {
self.application_key = Some(input.into());
self
}
pub fn set_application_key(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.application_key = input;
self
}
pub fn build(self) -> crate::model::DatadogConnectorProfileCredentials {
crate::model::DatadogConnectorProfileCredentials {
api_key: self.api_key,
application_key: self.application_key,
}
}
}
}
impl DatadogConnectorProfileCredentials {
pub fn builder() -> crate::model::datadog_connector_profile_credentials::Builder {
crate::model::datadog_connector_profile_credentials::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct AmplitudeConnectorProfileCredentials {
pub api_key: std::option::Option<std::string::String>,
pub secret_key: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for AmplitudeConnectorProfileCredentials {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("AmplitudeConnectorProfileCredentials");
formatter.field("api_key", &self.api_key);
formatter.field("secret_key", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
pub mod amplitude_connector_profile_credentials {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) api_key: std::option::Option<std::string::String>,
pub(crate) secret_key: std::option::Option<std::string::String>,
}
impl Builder {
pub fn api_key(mut self, input: impl Into<std::string::String>) -> Self {
self.api_key = Some(input.into());
self
}
pub fn set_api_key(mut self, input: std::option::Option<std::string::String>) -> Self {
self.api_key = input;
self
}
pub fn secret_key(mut self, input: impl Into<std::string::String>) -> Self {
self.secret_key = Some(input.into());
self
}
pub fn set_secret_key(mut self, input: std::option::Option<std::string::String>) -> Self {
self.secret_key = input;
self
}
pub fn build(self) -> crate::model::AmplitudeConnectorProfileCredentials {
crate::model::AmplitudeConnectorProfileCredentials {
api_key: self.api_key,
secret_key: self.secret_key,
}
}
}
}
impl AmplitudeConnectorProfileCredentials {
pub fn builder() -> crate::model::amplitude_connector_profile_credentials::Builder {
crate::model::amplitude_connector_profile_credentials::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ConnectorProfileProperties {
pub amplitude: std::option::Option<crate::model::AmplitudeConnectorProfileProperties>,
pub datadog: std::option::Option<crate::model::DatadogConnectorProfileProperties>,
pub dynatrace: std::option::Option<crate::model::DynatraceConnectorProfileProperties>,
pub google_analytics:
std::option::Option<crate::model::GoogleAnalyticsConnectorProfileProperties>,
pub honeycode: std::option::Option<crate::model::HoneycodeConnectorProfileProperties>,
pub infor_nexus: std::option::Option<crate::model::InforNexusConnectorProfileProperties>,
pub marketo: std::option::Option<crate::model::MarketoConnectorProfileProperties>,
pub redshift: std::option::Option<crate::model::RedshiftConnectorProfileProperties>,
pub salesforce: std::option::Option<crate::model::SalesforceConnectorProfileProperties>,
pub service_now: std::option::Option<crate::model::ServiceNowConnectorProfileProperties>,
pub singular: std::option::Option<crate::model::SingularConnectorProfileProperties>,
pub slack: std::option::Option<crate::model::SlackConnectorProfileProperties>,
pub snowflake: std::option::Option<crate::model::SnowflakeConnectorProfileProperties>,
pub trendmicro: std::option::Option<crate::model::TrendmicroConnectorProfileProperties>,
pub veeva: std::option::Option<crate::model::VeevaConnectorProfileProperties>,
pub zendesk: std::option::Option<crate::model::ZendeskConnectorProfileProperties>,
pub sapo_data: std::option::Option<crate::model::SapoDataConnectorProfileProperties>,
}
impl std::fmt::Debug for ConnectorProfileProperties {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ConnectorProfileProperties");
formatter.field("amplitude", &self.amplitude);
formatter.field("datadog", &self.datadog);
formatter.field("dynatrace", &self.dynatrace);
formatter.field("google_analytics", &self.google_analytics);
formatter.field("honeycode", &self.honeycode);
formatter.field("infor_nexus", &self.infor_nexus);
formatter.field("marketo", &self.marketo);
formatter.field("redshift", &self.redshift);
formatter.field("salesforce", &self.salesforce);
formatter.field("service_now", &self.service_now);
formatter.field("singular", &self.singular);
formatter.field("slack", &self.slack);
formatter.field("snowflake", &self.snowflake);
formatter.field("trendmicro", &self.trendmicro);
formatter.field("veeva", &self.veeva);
formatter.field("zendesk", &self.zendesk);
formatter.field("sapo_data", &self.sapo_data);
formatter.finish()
}
}
pub mod connector_profile_properties {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) amplitude:
std::option::Option<crate::model::AmplitudeConnectorProfileProperties>,
pub(crate) datadog: std::option::Option<crate::model::DatadogConnectorProfileProperties>,
pub(crate) dynatrace:
std::option::Option<crate::model::DynatraceConnectorProfileProperties>,
pub(crate) google_analytics:
std::option::Option<crate::model::GoogleAnalyticsConnectorProfileProperties>,
pub(crate) honeycode:
std::option::Option<crate::model::HoneycodeConnectorProfileProperties>,
pub(crate) infor_nexus:
std::option::Option<crate::model::InforNexusConnectorProfileProperties>,
pub(crate) marketo: std::option::Option<crate::model::MarketoConnectorProfileProperties>,
pub(crate) redshift: std::option::Option<crate::model::RedshiftConnectorProfileProperties>,
pub(crate) salesforce:
std::option::Option<crate::model::SalesforceConnectorProfileProperties>,
pub(crate) service_now:
std::option::Option<crate::model::ServiceNowConnectorProfileProperties>,
pub(crate) singular: std::option::Option<crate::model::SingularConnectorProfileProperties>,
pub(crate) slack: std::option::Option<crate::model::SlackConnectorProfileProperties>,
pub(crate) snowflake:
std::option::Option<crate::model::SnowflakeConnectorProfileProperties>,
pub(crate) trendmicro:
std::option::Option<crate::model::TrendmicroConnectorProfileProperties>,
pub(crate) veeva: std::option::Option<crate::model::VeevaConnectorProfileProperties>,
pub(crate) zendesk: std::option::Option<crate::model::ZendeskConnectorProfileProperties>,
pub(crate) sapo_data: std::option::Option<crate::model::SapoDataConnectorProfileProperties>,
}
impl Builder {
pub fn amplitude(
mut self,
input: crate::model::AmplitudeConnectorProfileProperties,
) -> Self {
self.amplitude = Some(input);
self
}
pub fn set_amplitude(
mut self,
input: std::option::Option<crate::model::AmplitudeConnectorProfileProperties>,
) -> Self {
self.amplitude = input;
self
}
pub fn datadog(mut self, input: crate::model::DatadogConnectorProfileProperties) -> Self {
self.datadog = Some(input);
self
}
pub fn set_datadog(
mut self,
input: std::option::Option<crate::model::DatadogConnectorProfileProperties>,
) -> Self {
self.datadog = input;
self
}
pub fn dynatrace(
mut self,
input: crate::model::DynatraceConnectorProfileProperties,
) -> Self {
self.dynatrace = Some(input);
self
}
pub fn set_dynatrace(
mut self,
input: std::option::Option<crate::model::DynatraceConnectorProfileProperties>,
) -> Self {
self.dynatrace = input;
self
}
pub fn google_analytics(
mut self,
input: crate::model::GoogleAnalyticsConnectorProfileProperties,
) -> Self {
self.google_analytics = Some(input);
self
}
pub fn set_google_analytics(
mut self,
input: std::option::Option<crate::model::GoogleAnalyticsConnectorProfileProperties>,
) -> Self {
self.google_analytics = input;
self
}
pub fn honeycode(
mut self,
input: crate::model::HoneycodeConnectorProfileProperties,
) -> Self {
self.honeycode = Some(input);
self
}
pub fn set_honeycode(
mut self,
input: std::option::Option<crate::model::HoneycodeConnectorProfileProperties>,
) -> Self {
self.honeycode = input;
self
}
pub fn infor_nexus(
mut self,
input: crate::model::InforNexusConnectorProfileProperties,
) -> Self {
self.infor_nexus = Some(input);
self
}
pub fn set_infor_nexus(
mut self,
input: std::option::Option<crate::model::InforNexusConnectorProfileProperties>,
) -> Self {
self.infor_nexus = input;
self
}
pub fn marketo(mut self, input: crate::model::MarketoConnectorProfileProperties) -> Self {
self.marketo = Some(input);
self
}
pub fn set_marketo(
mut self,
input: std::option::Option<crate::model::MarketoConnectorProfileProperties>,
) -> Self {
self.marketo = input;
self
}
pub fn redshift(mut self, input: crate::model::RedshiftConnectorProfileProperties) -> Self {
self.redshift = Some(input);
self
}
pub fn set_redshift(
mut self,
input: std::option::Option<crate::model::RedshiftConnectorProfileProperties>,
) -> Self {
self.redshift = input;
self
}
pub fn salesforce(
mut self,
input: crate::model::SalesforceConnectorProfileProperties,
) -> Self {
self.salesforce = Some(input);
self
}
pub fn set_salesforce(
mut self,
input: std::option::Option<crate::model::SalesforceConnectorProfileProperties>,
) -> Self {
self.salesforce = input;
self
}
pub fn service_now(
mut self,
input: crate::model::ServiceNowConnectorProfileProperties,
) -> Self {
self.service_now = Some(input);
self
}
pub fn set_service_now(
mut self,
input: std::option::Option<crate::model::ServiceNowConnectorProfileProperties>,
) -> Self {
self.service_now = input;
self
}
pub fn singular(mut self, input: crate::model::SingularConnectorProfileProperties) -> Self {
self.singular = Some(input);
self
}
pub fn set_singular(
mut self,
input: std::option::Option<crate::model::SingularConnectorProfileProperties>,
) -> Self {
self.singular = input;
self
}
pub fn slack(mut self, input: crate::model::SlackConnectorProfileProperties) -> Self {
self.slack = Some(input);
self
}
pub fn set_slack(
mut self,
input: std::option::Option<crate::model::SlackConnectorProfileProperties>,
) -> Self {
self.slack = input;
self
}
pub fn snowflake(
mut self,
input: crate::model::SnowflakeConnectorProfileProperties,
) -> Self {
self.snowflake = Some(input);
self
}
pub fn set_snowflake(
mut self,
input: std::option::Option<crate::model::SnowflakeConnectorProfileProperties>,
) -> Self {
self.snowflake = input;
self
}
pub fn trendmicro(
mut self,
input: crate::model::TrendmicroConnectorProfileProperties,
) -> Self {
self.trendmicro = Some(input);
self
}
pub fn set_trendmicro(
mut self,
input: std::option::Option<crate::model::TrendmicroConnectorProfileProperties>,
) -> Self {
self.trendmicro = input;
self
}
pub fn veeva(mut self, input: crate::model::VeevaConnectorProfileProperties) -> Self {
self.veeva = Some(input);
self
}
pub fn set_veeva(
mut self,
input: std::option::Option<crate::model::VeevaConnectorProfileProperties>,
) -> Self {
self.veeva = input;
self
}
pub fn zendesk(mut self, input: crate::model::ZendeskConnectorProfileProperties) -> Self {
self.zendesk = Some(input);
self
}
pub fn set_zendesk(
mut self,
input: std::option::Option<crate::model::ZendeskConnectorProfileProperties>,
) -> Self {
self.zendesk = input;
self
}
pub fn sapo_data(
mut self,
input: crate::model::SapoDataConnectorProfileProperties,
) -> Self {
self.sapo_data = Some(input);
self
}
pub fn set_sapo_data(
mut self,
input: std::option::Option<crate::model::SapoDataConnectorProfileProperties>,
) -> Self {
self.sapo_data = input;
self
}
pub fn build(self) -> crate::model::ConnectorProfileProperties {
crate::model::ConnectorProfileProperties {
amplitude: self.amplitude,
datadog: self.datadog,
dynatrace: self.dynatrace,
google_analytics: self.google_analytics,
honeycode: self.honeycode,
infor_nexus: self.infor_nexus,
marketo: self.marketo,
redshift: self.redshift,
salesforce: self.salesforce,
service_now: self.service_now,
singular: self.singular,
slack: self.slack,
snowflake: self.snowflake,
trendmicro: self.trendmicro,
veeva: self.veeva,
zendesk: self.zendesk,
sapo_data: self.sapo_data,
}
}
}
}
impl ConnectorProfileProperties {
pub fn builder() -> crate::model::connector_profile_properties::Builder {
crate::model::connector_profile_properties::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct SapoDataConnectorProfileProperties {
pub application_host_url: std::option::Option<std::string::String>,
pub application_service_path: std::option::Option<std::string::String>,
pub port_number: std::option::Option<i32>,
pub client_number: std::option::Option<std::string::String>,
pub logon_language: std::option::Option<std::string::String>,
pub private_link_service_name: std::option::Option<std::string::String>,
pub o_auth_properties: std::option::Option<crate::model::OAuthProperties>,
}
impl std::fmt::Debug for SapoDataConnectorProfileProperties {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("SapoDataConnectorProfileProperties");
formatter.field("application_host_url", &self.application_host_url);
formatter.field("application_service_path", &self.application_service_path);
formatter.field("port_number", &self.port_number);
formatter.field("client_number", &self.client_number);
formatter.field("logon_language", &self.logon_language);
formatter.field("private_link_service_name", &self.private_link_service_name);
formatter.field("o_auth_properties", &self.o_auth_properties);
formatter.finish()
}
}
pub mod sapo_data_connector_profile_properties {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) application_host_url: std::option::Option<std::string::String>,
pub(crate) application_service_path: std::option::Option<std::string::String>,
pub(crate) port_number: std::option::Option<i32>,
pub(crate) client_number: std::option::Option<std::string::String>,
pub(crate) logon_language: std::option::Option<std::string::String>,
pub(crate) private_link_service_name: std::option::Option<std::string::String>,
pub(crate) o_auth_properties: std::option::Option<crate::model::OAuthProperties>,
}
impl Builder {
pub fn application_host_url(mut self, input: impl Into<std::string::String>) -> Self {
self.application_host_url = Some(input.into());
self
}
pub fn set_application_host_url(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.application_host_url = input;
self
}
pub fn application_service_path(mut self, input: impl Into<std::string::String>) -> Self {
self.application_service_path = Some(input.into());
self
}
pub fn set_application_service_path(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.application_service_path = input;
self
}
pub fn port_number(mut self, input: i32) -> Self {
self.port_number = Some(input);
self
}
pub fn set_port_number(mut self, input: std::option::Option<i32>) -> Self {
self.port_number = input;
self
}
pub fn client_number(mut self, input: impl Into<std::string::String>) -> Self {
self.client_number = Some(input.into());
self
}
pub fn set_client_number(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.client_number = input;
self
}
pub fn logon_language(mut self, input: impl Into<std::string::String>) -> Self {
self.logon_language = Some(input.into());
self
}
pub fn set_logon_language(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.logon_language = input;
self
}
pub fn private_link_service_name(mut self, input: impl Into<std::string::String>) -> Self {
self.private_link_service_name = Some(input.into());
self
}
pub fn set_private_link_service_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.private_link_service_name = input;
self
}
pub fn o_auth_properties(mut self, input: crate::model::OAuthProperties) -> Self {
self.o_auth_properties = Some(input);
self
}
pub fn set_o_auth_properties(
mut self,
input: std::option::Option<crate::model::OAuthProperties>,
) -> Self {
self.o_auth_properties = input;
self
}
pub fn build(self) -> crate::model::SapoDataConnectorProfileProperties {
crate::model::SapoDataConnectorProfileProperties {
application_host_url: self.application_host_url,
application_service_path: self.application_service_path,
port_number: self.port_number,
client_number: self.client_number,
logon_language: self.logon_language,
private_link_service_name: self.private_link_service_name,
o_auth_properties: self.o_auth_properties,
}
}
}
}
impl SapoDataConnectorProfileProperties {
pub fn builder() -> crate::model::sapo_data_connector_profile_properties::Builder {
crate::model::sapo_data_connector_profile_properties::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct OAuthProperties {
pub token_url: std::option::Option<std::string::String>,
pub auth_code_url: std::option::Option<std::string::String>,
pub o_auth_scopes: std::option::Option<std::vec::Vec<std::string::String>>,
}
impl std::fmt::Debug for OAuthProperties {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("OAuthProperties");
formatter.field("token_url", &self.token_url);
formatter.field("auth_code_url", &self.auth_code_url);
formatter.field("o_auth_scopes", &self.o_auth_scopes);
formatter.finish()
}
}
pub mod o_auth_properties {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) token_url: std::option::Option<std::string::String>,
pub(crate) auth_code_url: std::option::Option<std::string::String>,
pub(crate) o_auth_scopes: std::option::Option<std::vec::Vec<std::string::String>>,
}
impl Builder {
pub fn token_url(mut self, input: impl Into<std::string::String>) -> Self {
self.token_url = Some(input.into());
self
}
pub fn set_token_url(mut self, input: std::option::Option<std::string::String>) -> Self {
self.token_url = input;
self
}
pub fn auth_code_url(mut self, input: impl Into<std::string::String>) -> Self {
self.auth_code_url = Some(input.into());
self
}
pub fn set_auth_code_url(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.auth_code_url = input;
self
}
pub fn o_auth_scopes(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.o_auth_scopes.unwrap_or_default();
v.push(input.into());
self.o_auth_scopes = Some(v);
self
}
pub fn set_o_auth_scopes(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.o_auth_scopes = input;
self
}
pub fn build(self) -> crate::model::OAuthProperties {
crate::model::OAuthProperties {
token_url: self.token_url,
auth_code_url: self.auth_code_url,
o_auth_scopes: self.o_auth_scopes,
}
}
}
}
impl OAuthProperties {
pub fn builder() -> crate::model::o_auth_properties::Builder {
crate::model::o_auth_properties::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ZendeskConnectorProfileProperties {
pub instance_url: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for ZendeskConnectorProfileProperties {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ZendeskConnectorProfileProperties");
formatter.field("instance_url", &self.instance_url);
formatter.finish()
}
}
pub mod zendesk_connector_profile_properties {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) instance_url: std::option::Option<std::string::String>,
}
impl Builder {
pub fn instance_url(mut self, input: impl Into<std::string::String>) -> Self {
self.instance_url = Some(input.into());
self
}
pub fn set_instance_url(mut self, input: std::option::Option<std::string::String>) -> Self {
self.instance_url = input;
self
}
pub fn build(self) -> crate::model::ZendeskConnectorProfileProperties {
crate::model::ZendeskConnectorProfileProperties {
instance_url: self.instance_url,
}
}
}
}
impl ZendeskConnectorProfileProperties {
pub fn builder() -> crate::model::zendesk_connector_profile_properties::Builder {
crate::model::zendesk_connector_profile_properties::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct VeevaConnectorProfileProperties {
pub instance_url: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for VeevaConnectorProfileProperties {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("VeevaConnectorProfileProperties");
formatter.field("instance_url", &self.instance_url);
formatter.finish()
}
}
pub mod veeva_connector_profile_properties {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) instance_url: std::option::Option<std::string::String>,
}
impl Builder {
pub fn instance_url(mut self, input: impl Into<std::string::String>) -> Self {
self.instance_url = Some(input.into());
self
}
pub fn set_instance_url(mut self, input: std::option::Option<std::string::String>) -> Self {
self.instance_url = input;
self
}
pub fn build(self) -> crate::model::VeevaConnectorProfileProperties {
crate::model::VeevaConnectorProfileProperties {
instance_url: self.instance_url,
}
}
}
}
impl VeevaConnectorProfileProperties {
pub fn builder() -> crate::model::veeva_connector_profile_properties::Builder {
crate::model::veeva_connector_profile_properties::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct TrendmicroConnectorProfileProperties {}
impl std::fmt::Debug for TrendmicroConnectorProfileProperties {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("TrendmicroConnectorProfileProperties");
formatter.finish()
}
}
pub mod trendmicro_connector_profile_properties {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
pub fn build(self) -> crate::model::TrendmicroConnectorProfileProperties {
crate::model::TrendmicroConnectorProfileProperties {}
}
}
}
impl TrendmicroConnectorProfileProperties {
pub fn builder() -> crate::model::trendmicro_connector_profile_properties::Builder {
crate::model::trendmicro_connector_profile_properties::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct SnowflakeConnectorProfileProperties {
pub warehouse: std::option::Option<std::string::String>,
pub stage: std::option::Option<std::string::String>,
pub bucket_name: std::option::Option<std::string::String>,
pub bucket_prefix: std::option::Option<std::string::String>,
pub private_link_service_name: std::option::Option<std::string::String>,
pub account_name: std::option::Option<std::string::String>,
pub region: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for SnowflakeConnectorProfileProperties {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("SnowflakeConnectorProfileProperties");
formatter.field("warehouse", &self.warehouse);
formatter.field("stage", &self.stage);
formatter.field("bucket_name", &self.bucket_name);
formatter.field("bucket_prefix", &self.bucket_prefix);
formatter.field("private_link_service_name", &self.private_link_service_name);
formatter.field("account_name", &self.account_name);
formatter.field("region", &self.region);
formatter.finish()
}
}
pub mod snowflake_connector_profile_properties {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) warehouse: std::option::Option<std::string::String>,
pub(crate) stage: std::option::Option<std::string::String>,
pub(crate) bucket_name: std::option::Option<std::string::String>,
pub(crate) bucket_prefix: std::option::Option<std::string::String>,
pub(crate) private_link_service_name: std::option::Option<std::string::String>,
pub(crate) account_name: std::option::Option<std::string::String>,
pub(crate) region: std::option::Option<std::string::String>,
}
impl Builder {
pub fn warehouse(mut self, input: impl Into<std::string::String>) -> Self {
self.warehouse = Some(input.into());
self
}
pub fn set_warehouse(mut self, input: std::option::Option<std::string::String>) -> Self {
self.warehouse = input;
self
}
pub fn stage(mut self, input: impl Into<std::string::String>) -> Self {
self.stage = Some(input.into());
self
}
pub fn set_stage(mut self, input: std::option::Option<std::string::String>) -> Self {
self.stage = input;
self
}
pub fn bucket_name(mut self, input: impl Into<std::string::String>) -> Self {
self.bucket_name = Some(input.into());
self
}
pub fn set_bucket_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.bucket_name = input;
self
}
pub fn bucket_prefix(mut self, input: impl Into<std::string::String>) -> Self {
self.bucket_prefix = Some(input.into());
self
}
pub fn set_bucket_prefix(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.bucket_prefix = input;
self
}
pub fn private_link_service_name(mut self, input: impl Into<std::string::String>) -> Self {
self.private_link_service_name = Some(input.into());
self
}
pub fn set_private_link_service_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.private_link_service_name = input;
self
}
pub fn account_name(mut self, input: impl Into<std::string::String>) -> Self {
self.account_name = Some(input.into());
self
}
pub fn set_account_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.account_name = input;
self
}
pub fn region(mut self, input: impl Into<std::string::String>) -> Self {
self.region = Some(input.into());
self
}
pub fn set_region(mut self, input: std::option::Option<std::string::String>) -> Self {
self.region = input;
self
}
pub fn build(self) -> crate::model::SnowflakeConnectorProfileProperties {
crate::model::SnowflakeConnectorProfileProperties {
warehouse: self.warehouse,
stage: self.stage,
bucket_name: self.bucket_name,
bucket_prefix: self.bucket_prefix,
private_link_service_name: self.private_link_service_name,
account_name: self.account_name,
region: self.region,
}
}
}
}
impl SnowflakeConnectorProfileProperties {
pub fn builder() -> crate::model::snowflake_connector_profile_properties::Builder {
crate::model::snowflake_connector_profile_properties::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct SlackConnectorProfileProperties {
pub instance_url: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for SlackConnectorProfileProperties {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("SlackConnectorProfileProperties");
formatter.field("instance_url", &self.instance_url);
formatter.finish()
}
}
pub mod slack_connector_profile_properties {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) instance_url: std::option::Option<std::string::String>,
}
impl Builder {
pub fn instance_url(mut self, input: impl Into<std::string::String>) -> Self {
self.instance_url = Some(input.into());
self
}
pub fn set_instance_url(mut self, input: std::option::Option<std::string::String>) -> Self {
self.instance_url = input;
self
}
pub fn build(self) -> crate::model::SlackConnectorProfileProperties {
crate::model::SlackConnectorProfileProperties {
instance_url: self.instance_url,
}
}
}
}
impl SlackConnectorProfileProperties {
pub fn builder() -> crate::model::slack_connector_profile_properties::Builder {
crate::model::slack_connector_profile_properties::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct SingularConnectorProfileProperties {}
impl std::fmt::Debug for SingularConnectorProfileProperties {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("SingularConnectorProfileProperties");
formatter.finish()
}
}
pub mod singular_connector_profile_properties {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
pub fn build(self) -> crate::model::SingularConnectorProfileProperties {
crate::model::SingularConnectorProfileProperties {}
}
}
}
impl SingularConnectorProfileProperties {
pub fn builder() -> crate::model::singular_connector_profile_properties::Builder {
crate::model::singular_connector_profile_properties::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ServiceNowConnectorProfileProperties {
pub instance_url: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for ServiceNowConnectorProfileProperties {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ServiceNowConnectorProfileProperties");
formatter.field("instance_url", &self.instance_url);
formatter.finish()
}
}
pub mod service_now_connector_profile_properties {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) instance_url: std::option::Option<std::string::String>,
}
impl Builder {
pub fn instance_url(mut self, input: impl Into<std::string::String>) -> Self {
self.instance_url = Some(input.into());
self
}
pub fn set_instance_url(mut self, input: std::option::Option<std::string::String>) -> Self {
self.instance_url = input;
self
}
pub fn build(self) -> crate::model::ServiceNowConnectorProfileProperties {
crate::model::ServiceNowConnectorProfileProperties {
instance_url: self.instance_url,
}
}
}
}
impl ServiceNowConnectorProfileProperties {
pub fn builder() -> crate::model::service_now_connector_profile_properties::Builder {
crate::model::service_now_connector_profile_properties::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct SalesforceConnectorProfileProperties {
pub instance_url: std::option::Option<std::string::String>,
pub is_sandbox_environment: bool,
}
impl std::fmt::Debug for SalesforceConnectorProfileProperties {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("SalesforceConnectorProfileProperties");
formatter.field("instance_url", &self.instance_url);
formatter.field("is_sandbox_environment", &self.is_sandbox_environment);
formatter.finish()
}
}
pub mod salesforce_connector_profile_properties {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) instance_url: std::option::Option<std::string::String>,
pub(crate) is_sandbox_environment: std::option::Option<bool>,
}
impl Builder {
pub fn instance_url(mut self, input: impl Into<std::string::String>) -> Self {
self.instance_url = Some(input.into());
self
}
pub fn set_instance_url(mut self, input: std::option::Option<std::string::String>) -> Self {
self.instance_url = input;
self
}
pub fn is_sandbox_environment(mut self, input: bool) -> Self {
self.is_sandbox_environment = Some(input);
self
}
pub fn set_is_sandbox_environment(mut self, input: std::option::Option<bool>) -> Self {
self.is_sandbox_environment = input;
self
}
pub fn build(self) -> crate::model::SalesforceConnectorProfileProperties {
crate::model::SalesforceConnectorProfileProperties {
instance_url: self.instance_url,
is_sandbox_environment: self.is_sandbox_environment.unwrap_or_default(),
}
}
}
}
impl SalesforceConnectorProfileProperties {
pub fn builder() -> crate::model::salesforce_connector_profile_properties::Builder {
crate::model::salesforce_connector_profile_properties::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct RedshiftConnectorProfileProperties {
pub database_url: std::option::Option<std::string::String>,
pub bucket_name: std::option::Option<std::string::String>,
pub bucket_prefix: std::option::Option<std::string::String>,
pub role_arn: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for RedshiftConnectorProfileProperties {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("RedshiftConnectorProfileProperties");
formatter.field("database_url", &self.database_url);
formatter.field("bucket_name", &self.bucket_name);
formatter.field("bucket_prefix", &self.bucket_prefix);
formatter.field("role_arn", &self.role_arn);
formatter.finish()
}
}
pub mod redshift_connector_profile_properties {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) database_url: std::option::Option<std::string::String>,
pub(crate) bucket_name: std::option::Option<std::string::String>,
pub(crate) bucket_prefix: std::option::Option<std::string::String>,
pub(crate) role_arn: std::option::Option<std::string::String>,
}
impl Builder {
pub fn database_url(mut self, input: impl Into<std::string::String>) -> Self {
self.database_url = Some(input.into());
self
}
pub fn set_database_url(mut self, input: std::option::Option<std::string::String>) -> Self {
self.database_url = input;
self
}
pub fn bucket_name(mut self, input: impl Into<std::string::String>) -> Self {
self.bucket_name = Some(input.into());
self
}
pub fn set_bucket_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.bucket_name = input;
self
}
pub fn bucket_prefix(mut self, input: impl Into<std::string::String>) -> Self {
self.bucket_prefix = Some(input.into());
self
}
pub fn set_bucket_prefix(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.bucket_prefix = input;
self
}
pub fn role_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.role_arn = Some(input.into());
self
}
pub fn set_role_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.role_arn = input;
self
}
pub fn build(self) -> crate::model::RedshiftConnectorProfileProperties {
crate::model::RedshiftConnectorProfileProperties {
database_url: self.database_url,
bucket_name: self.bucket_name,
bucket_prefix: self.bucket_prefix,
role_arn: self.role_arn,
}
}
}
}
impl RedshiftConnectorProfileProperties {
pub fn builder() -> crate::model::redshift_connector_profile_properties::Builder {
crate::model::redshift_connector_profile_properties::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct MarketoConnectorProfileProperties {
pub instance_url: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for MarketoConnectorProfileProperties {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("MarketoConnectorProfileProperties");
formatter.field("instance_url", &self.instance_url);
formatter.finish()
}
}
pub mod marketo_connector_profile_properties {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) instance_url: std::option::Option<std::string::String>,
}
impl Builder {
pub fn instance_url(mut self, input: impl Into<std::string::String>) -> Self {
self.instance_url = Some(input.into());
self
}
pub fn set_instance_url(mut self, input: std::option::Option<std::string::String>) -> Self {
self.instance_url = input;
self
}
pub fn build(self) -> crate::model::MarketoConnectorProfileProperties {
crate::model::MarketoConnectorProfileProperties {
instance_url: self.instance_url,
}
}
}
}
impl MarketoConnectorProfileProperties {
pub fn builder() -> crate::model::marketo_connector_profile_properties::Builder {
crate::model::marketo_connector_profile_properties::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct InforNexusConnectorProfileProperties {
pub instance_url: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for InforNexusConnectorProfileProperties {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("InforNexusConnectorProfileProperties");
formatter.field("instance_url", &self.instance_url);
formatter.finish()
}
}
pub mod infor_nexus_connector_profile_properties {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) instance_url: std::option::Option<std::string::String>,
}
impl Builder {
pub fn instance_url(mut self, input: impl Into<std::string::String>) -> Self {
self.instance_url = Some(input.into());
self
}
pub fn set_instance_url(mut self, input: std::option::Option<std::string::String>) -> Self {
self.instance_url = input;
self
}
pub fn build(self) -> crate::model::InforNexusConnectorProfileProperties {
crate::model::InforNexusConnectorProfileProperties {
instance_url: self.instance_url,
}
}
}
}
impl InforNexusConnectorProfileProperties {
pub fn builder() -> crate::model::infor_nexus_connector_profile_properties::Builder {
crate::model::infor_nexus_connector_profile_properties::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct HoneycodeConnectorProfileProperties {}
impl std::fmt::Debug for HoneycodeConnectorProfileProperties {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("HoneycodeConnectorProfileProperties");
formatter.finish()
}
}
pub mod honeycode_connector_profile_properties {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
pub fn build(self) -> crate::model::HoneycodeConnectorProfileProperties {
crate::model::HoneycodeConnectorProfileProperties {}
}
}
}
impl HoneycodeConnectorProfileProperties {
pub fn builder() -> crate::model::honeycode_connector_profile_properties::Builder {
crate::model::honeycode_connector_profile_properties::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct GoogleAnalyticsConnectorProfileProperties {}
impl std::fmt::Debug for GoogleAnalyticsConnectorProfileProperties {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("GoogleAnalyticsConnectorProfileProperties");
formatter.finish()
}
}
pub mod google_analytics_connector_profile_properties {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
pub fn build(self) -> crate::model::GoogleAnalyticsConnectorProfileProperties {
crate::model::GoogleAnalyticsConnectorProfileProperties {}
}
}
}
impl GoogleAnalyticsConnectorProfileProperties {
pub fn builder() -> crate::model::google_analytics_connector_profile_properties::Builder {
crate::model::google_analytics_connector_profile_properties::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct DynatraceConnectorProfileProperties {
pub instance_url: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for DynatraceConnectorProfileProperties {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("DynatraceConnectorProfileProperties");
formatter.field("instance_url", &self.instance_url);
formatter.finish()
}
}
pub mod dynatrace_connector_profile_properties {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) instance_url: std::option::Option<std::string::String>,
}
impl Builder {
pub fn instance_url(mut self, input: impl Into<std::string::String>) -> Self {
self.instance_url = Some(input.into());
self
}
pub fn set_instance_url(mut self, input: std::option::Option<std::string::String>) -> Self {
self.instance_url = input;
self
}
pub fn build(self) -> crate::model::DynatraceConnectorProfileProperties {
crate::model::DynatraceConnectorProfileProperties {
instance_url: self.instance_url,
}
}
}
}
impl DynatraceConnectorProfileProperties {
pub fn builder() -> crate::model::dynatrace_connector_profile_properties::Builder {
crate::model::dynatrace_connector_profile_properties::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct DatadogConnectorProfileProperties {
pub instance_url: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for DatadogConnectorProfileProperties {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("DatadogConnectorProfileProperties");
formatter.field("instance_url", &self.instance_url);
formatter.finish()
}
}
pub mod datadog_connector_profile_properties {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) instance_url: std::option::Option<std::string::String>,
}
impl Builder {
pub fn instance_url(mut self, input: impl Into<std::string::String>) -> Self {
self.instance_url = Some(input.into());
self
}
pub fn set_instance_url(mut self, input: std::option::Option<std::string::String>) -> Self {
self.instance_url = input;
self
}
pub fn build(self) -> crate::model::DatadogConnectorProfileProperties {
crate::model::DatadogConnectorProfileProperties {
instance_url: self.instance_url,
}
}
}
}
impl DatadogConnectorProfileProperties {
pub fn builder() -> crate::model::datadog_connector_profile_properties::Builder {
crate::model::datadog_connector_profile_properties::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct AmplitudeConnectorProfileProperties {}
impl std::fmt::Debug for AmplitudeConnectorProfileProperties {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("AmplitudeConnectorProfileProperties");
formatter.finish()
}
}
pub mod amplitude_connector_profile_properties {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
pub fn build(self) -> crate::model::AmplitudeConnectorProfileProperties {
crate::model::AmplitudeConnectorProfileProperties {}
}
}
}
impl AmplitudeConnectorProfileProperties {
pub fn builder() -> crate::model::amplitude_connector_profile_properties::Builder {
crate::model::amplitude_connector_profile_properties::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 ConnectionMode {
#[allow(missing_docs)] Private,
#[allow(missing_docs)] Public,
Unknown(String),
}
impl std::convert::From<&str> for ConnectionMode {
fn from(s: &str) -> Self {
match s {
"Private" => ConnectionMode::Private,
"Public" => ConnectionMode::Public,
other => ConnectionMode::Unknown(other.to_owned()),
}
}
}
impl std::str::FromStr for ConnectionMode {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(ConnectionMode::from(s))
}
}
impl ConnectionMode {
pub fn as_str(&self) -> &str {
match self {
ConnectionMode::Private => "Private",
ConnectionMode::Public => "Public",
ConnectionMode::Unknown(s) => s.as_ref(),
}
}
pub fn values() -> &'static [&'static str] {
&["Private", "Public"]
}
}
impl AsRef<str> for ConnectionMode {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct FlowDefinition {
pub flow_arn: std::option::Option<std::string::String>,
pub description: std::option::Option<std::string::String>,
pub flow_name: std::option::Option<std::string::String>,
pub flow_status: std::option::Option<crate::model::FlowStatus>,
pub source_connector_type: std::option::Option<crate::model::ConnectorType>,
pub destination_connector_type: std::option::Option<crate::model::ConnectorType>,
pub trigger_type: std::option::Option<crate::model::TriggerType>,
pub created_at: std::option::Option<aws_smithy_types::Instant>,
pub last_updated_at: std::option::Option<aws_smithy_types::Instant>,
pub created_by: std::option::Option<std::string::String>,
pub last_updated_by: std::option::Option<std::string::String>,
pub tags:
std::option::Option<std::collections::HashMap<std::string::String, std::string::String>>,
pub last_run_execution_details: std::option::Option<crate::model::ExecutionDetails>,
}
impl std::fmt::Debug for FlowDefinition {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("FlowDefinition");
formatter.field("flow_arn", &self.flow_arn);
formatter.field("description", &self.description);
formatter.field("flow_name", &self.flow_name);
formatter.field("flow_status", &self.flow_status);
formatter.field("source_connector_type", &self.source_connector_type);
formatter.field(
"destination_connector_type",
&self.destination_connector_type,
);
formatter.field("trigger_type", &self.trigger_type);
formatter.field("created_at", &self.created_at);
formatter.field("last_updated_at", &self.last_updated_at);
formatter.field("created_by", &self.created_by);
formatter.field("last_updated_by", &self.last_updated_by);
formatter.field("tags", &self.tags);
formatter.field(
"last_run_execution_details",
&self.last_run_execution_details,
);
formatter.finish()
}
}
pub mod flow_definition {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) flow_arn: std::option::Option<std::string::String>,
pub(crate) description: std::option::Option<std::string::String>,
pub(crate) flow_name: std::option::Option<std::string::String>,
pub(crate) flow_status: std::option::Option<crate::model::FlowStatus>,
pub(crate) source_connector_type: std::option::Option<crate::model::ConnectorType>,
pub(crate) destination_connector_type: std::option::Option<crate::model::ConnectorType>,
pub(crate) trigger_type: std::option::Option<crate::model::TriggerType>,
pub(crate) created_at: std::option::Option<aws_smithy_types::Instant>,
pub(crate) last_updated_at: std::option::Option<aws_smithy_types::Instant>,
pub(crate) created_by: std::option::Option<std::string::String>,
pub(crate) last_updated_by: std::option::Option<std::string::String>,
pub(crate) tags: std::option::Option<
std::collections::HashMap<std::string::String, std::string::String>,
>,
pub(crate) last_run_execution_details: std::option::Option<crate::model::ExecutionDetails>,
}
impl Builder {
pub fn flow_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.flow_arn = Some(input.into());
self
}
pub fn set_flow_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.flow_arn = input;
self
}
pub fn description(mut self, input: impl Into<std::string::String>) -> Self {
self.description = Some(input.into());
self
}
pub fn set_description(mut self, input: std::option::Option<std::string::String>) -> Self {
self.description = input;
self
}
pub fn flow_name(mut self, input: impl Into<std::string::String>) -> Self {
self.flow_name = Some(input.into());
self
}
pub fn set_flow_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.flow_name = input;
self
}
pub fn flow_status(mut self, input: crate::model::FlowStatus) -> Self {
self.flow_status = Some(input);
self
}
pub fn set_flow_status(
mut self,
input: std::option::Option<crate::model::FlowStatus>,
) -> Self {
self.flow_status = input;
self
}
pub fn source_connector_type(mut self, input: crate::model::ConnectorType) -> Self {
self.source_connector_type = Some(input);
self
}
pub fn set_source_connector_type(
mut self,
input: std::option::Option<crate::model::ConnectorType>,
) -> Self {
self.source_connector_type = input;
self
}
pub fn destination_connector_type(mut self, input: crate::model::ConnectorType) -> Self {
self.destination_connector_type = Some(input);
self
}
pub fn set_destination_connector_type(
mut self,
input: std::option::Option<crate::model::ConnectorType>,
) -> Self {
self.destination_connector_type = input;
self
}
pub fn trigger_type(mut self, input: crate::model::TriggerType) -> Self {
self.trigger_type = Some(input);
self
}
pub fn set_trigger_type(
mut self,
input: std::option::Option<crate::model::TriggerType>,
) -> Self {
self.trigger_type = input;
self
}
pub fn created_at(mut self, input: aws_smithy_types::Instant) -> Self {
self.created_at = Some(input);
self
}
pub fn set_created_at(
mut self,
input: std::option::Option<aws_smithy_types::Instant>,
) -> Self {
self.created_at = input;
self
}
pub fn last_updated_at(mut self, input: aws_smithy_types::Instant) -> Self {
self.last_updated_at = Some(input);
self
}
pub fn set_last_updated_at(
mut self,
input: std::option::Option<aws_smithy_types::Instant>,
) -> Self {
self.last_updated_at = input;
self
}
pub fn created_by(mut self, input: impl Into<std::string::String>) -> Self {
self.created_by = Some(input.into());
self
}
pub fn set_created_by(mut self, input: std::option::Option<std::string::String>) -> Self {
self.created_by = input;
self
}
pub fn last_updated_by(mut self, input: impl Into<std::string::String>) -> Self {
self.last_updated_by = Some(input.into());
self
}
pub fn set_last_updated_by(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.last_updated_by = input;
self
}
pub fn tags(
mut self,
k: impl Into<std::string::String>,
v: impl Into<std::string::String>,
) -> Self {
let mut hash_map = self.tags.unwrap_or_default();
hash_map.insert(k.into(), v.into());
self.tags = Some(hash_map);
self
}
pub fn set_tags(
mut self,
input: std::option::Option<
std::collections::HashMap<std::string::String, std::string::String>,
>,
) -> Self {
self.tags = input;
self
}
pub fn last_run_execution_details(mut self, input: crate::model::ExecutionDetails) -> Self {
self.last_run_execution_details = Some(input);
self
}
pub fn set_last_run_execution_details(
mut self,
input: std::option::Option<crate::model::ExecutionDetails>,
) -> Self {
self.last_run_execution_details = input;
self
}
pub fn build(self) -> crate::model::FlowDefinition {
crate::model::FlowDefinition {
flow_arn: self.flow_arn,
description: self.description,
flow_name: self.flow_name,
flow_status: self.flow_status,
source_connector_type: self.source_connector_type,
destination_connector_type: self.destination_connector_type,
trigger_type: self.trigger_type,
created_at: self.created_at,
last_updated_at: self.last_updated_at,
created_by: self.created_by,
last_updated_by: self.last_updated_by,
tags: self.tags,
last_run_execution_details: self.last_run_execution_details,
}
}
}
}
impl FlowDefinition {
pub fn builder() -> crate::model::flow_definition::Builder {
crate::model::flow_definition::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ExecutionDetails {
pub most_recent_execution_message: std::option::Option<std::string::String>,
pub most_recent_execution_time: std::option::Option<aws_smithy_types::Instant>,
pub most_recent_execution_status: std::option::Option<crate::model::ExecutionStatus>,
}
impl std::fmt::Debug for ExecutionDetails {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ExecutionDetails");
formatter.field(
"most_recent_execution_message",
&self.most_recent_execution_message,
);
formatter.field(
"most_recent_execution_time",
&self.most_recent_execution_time,
);
formatter.field(
"most_recent_execution_status",
&self.most_recent_execution_status,
);
formatter.finish()
}
}
pub mod execution_details {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) most_recent_execution_message: std::option::Option<std::string::String>,
pub(crate) most_recent_execution_time: std::option::Option<aws_smithy_types::Instant>,
pub(crate) most_recent_execution_status: std::option::Option<crate::model::ExecutionStatus>,
}
impl Builder {
pub fn most_recent_execution_message(
mut self,
input: impl Into<std::string::String>,
) -> Self {
self.most_recent_execution_message = Some(input.into());
self
}
pub fn set_most_recent_execution_message(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.most_recent_execution_message = input;
self
}
pub fn most_recent_execution_time(mut self, input: aws_smithy_types::Instant) -> Self {
self.most_recent_execution_time = Some(input);
self
}
pub fn set_most_recent_execution_time(
mut self,
input: std::option::Option<aws_smithy_types::Instant>,
) -> Self {
self.most_recent_execution_time = input;
self
}
pub fn most_recent_execution_status(
mut self,
input: crate::model::ExecutionStatus,
) -> Self {
self.most_recent_execution_status = Some(input);
self
}
pub fn set_most_recent_execution_status(
mut self,
input: std::option::Option<crate::model::ExecutionStatus>,
) -> Self {
self.most_recent_execution_status = input;
self
}
pub fn build(self) -> crate::model::ExecutionDetails {
crate::model::ExecutionDetails {
most_recent_execution_message: self.most_recent_execution_message,
most_recent_execution_time: self.most_recent_execution_time,
most_recent_execution_status: self.most_recent_execution_status,
}
}
}
}
impl ExecutionDetails {
pub fn builder() -> crate::model::execution_details::Builder {
crate::model::execution_details::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 ExecutionStatus {
#[allow(missing_docs)] Error,
#[allow(missing_docs)] Inprogress,
#[allow(missing_docs)] Successful,
Unknown(String),
}
impl std::convert::From<&str> for ExecutionStatus {
fn from(s: &str) -> Self {
match s {
"Error" => ExecutionStatus::Error,
"InProgress" => ExecutionStatus::Inprogress,
"Successful" => ExecutionStatus::Successful,
other => ExecutionStatus::Unknown(other.to_owned()),
}
}
}
impl std::str::FromStr for ExecutionStatus {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(ExecutionStatus::from(s))
}
}
impl ExecutionStatus {
pub fn as_str(&self) -> &str {
match self {
ExecutionStatus::Error => "Error",
ExecutionStatus::Inprogress => "InProgress",
ExecutionStatus::Successful => "Successful",
ExecutionStatus::Unknown(s) => s.as_ref(),
}
}
pub fn values() -> &'static [&'static str] {
&["Error", "InProgress", "Successful"]
}
}
impl AsRef<str> for ExecutionStatus {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ConnectorEntity {
pub name: std::option::Option<std::string::String>,
pub label: std::option::Option<std::string::String>,
pub has_nested_entities: bool,
}
impl std::fmt::Debug for ConnectorEntity {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ConnectorEntity");
formatter.field("name", &self.name);
formatter.field("label", &self.label);
formatter.field("has_nested_entities", &self.has_nested_entities);
formatter.finish()
}
}
pub mod connector_entity {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) name: std::option::Option<std::string::String>,
pub(crate) label: std::option::Option<std::string::String>,
pub(crate) has_nested_entities: std::option::Option<bool>,
}
impl Builder {
pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
self.name = Some(input.into());
self
}
pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.name = input;
self
}
pub fn label(mut self, input: impl Into<std::string::String>) -> Self {
self.label = Some(input.into());
self
}
pub fn set_label(mut self, input: std::option::Option<std::string::String>) -> Self {
self.label = input;
self
}
pub fn has_nested_entities(mut self, input: bool) -> Self {
self.has_nested_entities = Some(input);
self
}
pub fn set_has_nested_entities(mut self, input: std::option::Option<bool>) -> Self {
self.has_nested_entities = input;
self
}
pub fn build(self) -> crate::model::ConnectorEntity {
crate::model::ConnectorEntity {
name: self.name,
label: self.label,
has_nested_entities: self.has_nested_entities.unwrap_or_default(),
}
}
}
}
impl ConnectorEntity {
pub fn builder() -> crate::model::connector_entity::Builder {
crate::model::connector_entity::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ExecutionRecord {
pub execution_id: std::option::Option<std::string::String>,
pub execution_status: std::option::Option<crate::model::ExecutionStatus>,
pub execution_result: std::option::Option<crate::model::ExecutionResult>,
pub started_at: std::option::Option<aws_smithy_types::Instant>,
pub last_updated_at: std::option::Option<aws_smithy_types::Instant>,
pub data_pull_start_time: std::option::Option<aws_smithy_types::Instant>,
pub data_pull_end_time: std::option::Option<aws_smithy_types::Instant>,
}
impl std::fmt::Debug for ExecutionRecord {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ExecutionRecord");
formatter.field("execution_id", &self.execution_id);
formatter.field("execution_status", &self.execution_status);
formatter.field("execution_result", &self.execution_result);
formatter.field("started_at", &self.started_at);
formatter.field("last_updated_at", &self.last_updated_at);
formatter.field("data_pull_start_time", &self.data_pull_start_time);
formatter.field("data_pull_end_time", &self.data_pull_end_time);
formatter.finish()
}
}
pub mod execution_record {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) execution_id: std::option::Option<std::string::String>,
pub(crate) execution_status: std::option::Option<crate::model::ExecutionStatus>,
pub(crate) execution_result: std::option::Option<crate::model::ExecutionResult>,
pub(crate) started_at: std::option::Option<aws_smithy_types::Instant>,
pub(crate) last_updated_at: std::option::Option<aws_smithy_types::Instant>,
pub(crate) data_pull_start_time: std::option::Option<aws_smithy_types::Instant>,
pub(crate) data_pull_end_time: std::option::Option<aws_smithy_types::Instant>,
}
impl Builder {
pub fn execution_id(mut self, input: impl Into<std::string::String>) -> Self {
self.execution_id = Some(input.into());
self
}
pub fn set_execution_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.execution_id = input;
self
}
pub fn execution_status(mut self, input: crate::model::ExecutionStatus) -> Self {
self.execution_status = Some(input);
self
}
pub fn set_execution_status(
mut self,
input: std::option::Option<crate::model::ExecutionStatus>,
) -> Self {
self.execution_status = input;
self
}
pub fn execution_result(mut self, input: crate::model::ExecutionResult) -> Self {
self.execution_result = Some(input);
self
}
pub fn set_execution_result(
mut self,
input: std::option::Option<crate::model::ExecutionResult>,
) -> Self {
self.execution_result = input;
self
}
pub fn started_at(mut self, input: aws_smithy_types::Instant) -> Self {
self.started_at = Some(input);
self
}
pub fn set_started_at(
mut self,
input: std::option::Option<aws_smithy_types::Instant>,
) -> Self {
self.started_at = input;
self
}
pub fn last_updated_at(mut self, input: aws_smithy_types::Instant) -> Self {
self.last_updated_at = Some(input);
self
}
pub fn set_last_updated_at(
mut self,
input: std::option::Option<aws_smithy_types::Instant>,
) -> Self {
self.last_updated_at = input;
self
}
pub fn data_pull_start_time(mut self, input: aws_smithy_types::Instant) -> Self {
self.data_pull_start_time = Some(input);
self
}
pub fn set_data_pull_start_time(
mut self,
input: std::option::Option<aws_smithy_types::Instant>,
) -> Self {
self.data_pull_start_time = input;
self
}
pub fn data_pull_end_time(mut self, input: aws_smithy_types::Instant) -> Self {
self.data_pull_end_time = Some(input);
self
}
pub fn set_data_pull_end_time(
mut self,
input: std::option::Option<aws_smithy_types::Instant>,
) -> Self {
self.data_pull_end_time = input;
self
}
pub fn build(self) -> crate::model::ExecutionRecord {
crate::model::ExecutionRecord {
execution_id: self.execution_id,
execution_status: self.execution_status,
execution_result: self.execution_result,
started_at: self.started_at,
last_updated_at: self.last_updated_at,
data_pull_start_time: self.data_pull_start_time,
data_pull_end_time: self.data_pull_end_time,
}
}
}
}
impl ExecutionRecord {
pub fn builder() -> crate::model::execution_record::Builder {
crate::model::execution_record::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ExecutionResult {
pub error_info: std::option::Option<crate::model::ErrorInfo>,
pub bytes_processed: std::option::Option<i64>,
pub bytes_written: std::option::Option<i64>,
pub records_processed: std::option::Option<i64>,
}
impl std::fmt::Debug for ExecutionResult {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ExecutionResult");
formatter.field("error_info", &self.error_info);
formatter.field("bytes_processed", &self.bytes_processed);
formatter.field("bytes_written", &self.bytes_written);
formatter.field("records_processed", &self.records_processed);
formatter.finish()
}
}
pub mod execution_result {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) error_info: std::option::Option<crate::model::ErrorInfo>,
pub(crate) bytes_processed: std::option::Option<i64>,
pub(crate) bytes_written: std::option::Option<i64>,
pub(crate) records_processed: std::option::Option<i64>,
}
impl Builder {
pub fn error_info(mut self, input: crate::model::ErrorInfo) -> Self {
self.error_info = Some(input);
self
}
pub fn set_error_info(
mut self,
input: std::option::Option<crate::model::ErrorInfo>,
) -> Self {
self.error_info = input;
self
}
pub fn bytes_processed(mut self, input: i64) -> Self {
self.bytes_processed = Some(input);
self
}
pub fn set_bytes_processed(mut self, input: std::option::Option<i64>) -> Self {
self.bytes_processed = input;
self
}
pub fn bytes_written(mut self, input: i64) -> Self {
self.bytes_written = Some(input);
self
}
pub fn set_bytes_written(mut self, input: std::option::Option<i64>) -> Self {
self.bytes_written = input;
self
}
pub fn records_processed(mut self, input: i64) -> Self {
self.records_processed = Some(input);
self
}
pub fn set_records_processed(mut self, input: std::option::Option<i64>) -> Self {
self.records_processed = input;
self
}
pub fn build(self) -> crate::model::ExecutionResult {
crate::model::ExecutionResult {
error_info: self.error_info,
bytes_processed: self.bytes_processed,
bytes_written: self.bytes_written,
records_processed: self.records_processed,
}
}
}
}
impl ExecutionResult {
pub fn builder() -> crate::model::execution_result::Builder {
crate::model::execution_result::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ErrorInfo {
pub put_failures_count: std::option::Option<i64>,
pub execution_message: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for ErrorInfo {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ErrorInfo");
formatter.field("put_failures_count", &self.put_failures_count);
formatter.field("execution_message", &self.execution_message);
formatter.finish()
}
}
pub mod error_info {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) put_failures_count: std::option::Option<i64>,
pub(crate) execution_message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn put_failures_count(mut self, input: i64) -> Self {
self.put_failures_count = Some(input);
self
}
pub fn set_put_failures_count(mut self, input: std::option::Option<i64>) -> Self {
self.put_failures_count = input;
self
}
pub fn execution_message(mut self, input: impl Into<std::string::String>) -> Self {
self.execution_message = Some(input.into());
self
}
pub fn set_execution_message(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.execution_message = input;
self
}
pub fn build(self) -> crate::model::ErrorInfo {
crate::model::ErrorInfo {
put_failures_count: self.put_failures_count,
execution_message: self.execution_message,
}
}
}
}
impl ErrorInfo {
pub fn builder() -> crate::model::error_info::Builder {
crate::model::error_info::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ConnectorConfiguration {
pub can_use_as_source: bool,
pub can_use_as_destination: bool,
pub supported_destination_connectors:
std::option::Option<std::vec::Vec<crate::model::ConnectorType>>,
pub supported_scheduling_frequencies:
std::option::Option<std::vec::Vec<crate::model::ScheduleFrequencyType>>,
pub is_private_link_enabled: bool,
pub is_private_link_endpoint_url_required: bool,
pub supported_trigger_types: std::option::Option<std::vec::Vec<crate::model::TriggerType>>,
pub connector_metadata: std::option::Option<crate::model::ConnectorMetadata>,
}
impl std::fmt::Debug for ConnectorConfiguration {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ConnectorConfiguration");
formatter.field("can_use_as_source", &self.can_use_as_source);
formatter.field("can_use_as_destination", &self.can_use_as_destination);
formatter.field(
"supported_destination_connectors",
&self.supported_destination_connectors,
);
formatter.field(
"supported_scheduling_frequencies",
&self.supported_scheduling_frequencies,
);
formatter.field("is_private_link_enabled", &self.is_private_link_enabled);
formatter.field(
"is_private_link_endpoint_url_required",
&self.is_private_link_endpoint_url_required,
);
formatter.field("supported_trigger_types", &self.supported_trigger_types);
formatter.field("connector_metadata", &self.connector_metadata);
formatter.finish()
}
}
pub mod connector_configuration {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) can_use_as_source: std::option::Option<bool>,
pub(crate) can_use_as_destination: std::option::Option<bool>,
pub(crate) supported_destination_connectors:
std::option::Option<std::vec::Vec<crate::model::ConnectorType>>,
pub(crate) supported_scheduling_frequencies:
std::option::Option<std::vec::Vec<crate::model::ScheduleFrequencyType>>,
pub(crate) is_private_link_enabled: std::option::Option<bool>,
pub(crate) is_private_link_endpoint_url_required: std::option::Option<bool>,
pub(crate) supported_trigger_types:
std::option::Option<std::vec::Vec<crate::model::TriggerType>>,
pub(crate) connector_metadata: std::option::Option<crate::model::ConnectorMetadata>,
}
impl Builder {
pub fn can_use_as_source(mut self, input: bool) -> Self {
self.can_use_as_source = Some(input);
self
}
pub fn set_can_use_as_source(mut self, input: std::option::Option<bool>) -> Self {
self.can_use_as_source = input;
self
}
pub fn can_use_as_destination(mut self, input: bool) -> Self {
self.can_use_as_destination = Some(input);
self
}
pub fn set_can_use_as_destination(mut self, input: std::option::Option<bool>) -> Self {
self.can_use_as_destination = input;
self
}
pub fn supported_destination_connectors(
mut self,
input: impl Into<crate::model::ConnectorType>,
) -> Self {
let mut v = self.supported_destination_connectors.unwrap_or_default();
v.push(input.into());
self.supported_destination_connectors = Some(v);
self
}
pub fn set_supported_destination_connectors(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::ConnectorType>>,
) -> Self {
self.supported_destination_connectors = input;
self
}
pub fn supported_scheduling_frequencies(
mut self,
input: impl Into<crate::model::ScheduleFrequencyType>,
) -> Self {
let mut v = self.supported_scheduling_frequencies.unwrap_or_default();
v.push(input.into());
self.supported_scheduling_frequencies = Some(v);
self
}
pub fn set_supported_scheduling_frequencies(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::ScheduleFrequencyType>>,
) -> Self {
self.supported_scheduling_frequencies = input;
self
}
pub fn is_private_link_enabled(mut self, input: bool) -> Self {
self.is_private_link_enabled = Some(input);
self
}
pub fn set_is_private_link_enabled(mut self, input: std::option::Option<bool>) -> Self {
self.is_private_link_enabled = input;
self
}
pub fn is_private_link_endpoint_url_required(mut self, input: bool) -> Self {
self.is_private_link_endpoint_url_required = Some(input);
self
}
pub fn set_is_private_link_endpoint_url_required(
mut self,
input: std::option::Option<bool>,
) -> Self {
self.is_private_link_endpoint_url_required = input;
self
}
pub fn supported_trigger_types(
mut self,
input: impl Into<crate::model::TriggerType>,
) -> Self {
let mut v = self.supported_trigger_types.unwrap_or_default();
v.push(input.into());
self.supported_trigger_types = Some(v);
self
}
pub fn set_supported_trigger_types(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::TriggerType>>,
) -> Self {
self.supported_trigger_types = input;
self
}
pub fn connector_metadata(mut self, input: crate::model::ConnectorMetadata) -> Self {
self.connector_metadata = Some(input);
self
}
pub fn set_connector_metadata(
mut self,
input: std::option::Option<crate::model::ConnectorMetadata>,
) -> Self {
self.connector_metadata = input;
self
}
pub fn build(self) -> crate::model::ConnectorConfiguration {
crate::model::ConnectorConfiguration {
can_use_as_source: self.can_use_as_source.unwrap_or_default(),
can_use_as_destination: self.can_use_as_destination.unwrap_or_default(),
supported_destination_connectors: self.supported_destination_connectors,
supported_scheduling_frequencies: self.supported_scheduling_frequencies,
is_private_link_enabled: self.is_private_link_enabled.unwrap_or_default(),
is_private_link_endpoint_url_required: self
.is_private_link_endpoint_url_required
.unwrap_or_default(),
supported_trigger_types: self.supported_trigger_types,
connector_metadata: self.connector_metadata,
}
}
}
}
impl ConnectorConfiguration {
pub fn builder() -> crate::model::connector_configuration::Builder {
crate::model::connector_configuration::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ConnectorMetadata {
pub amplitude: std::option::Option<crate::model::AmplitudeMetadata>,
pub datadog: std::option::Option<crate::model::DatadogMetadata>,
pub dynatrace: std::option::Option<crate::model::DynatraceMetadata>,
pub google_analytics: std::option::Option<crate::model::GoogleAnalyticsMetadata>,
pub infor_nexus: std::option::Option<crate::model::InforNexusMetadata>,
pub marketo: std::option::Option<crate::model::MarketoMetadata>,
pub redshift: std::option::Option<crate::model::RedshiftMetadata>,
pub s3: std::option::Option<crate::model::S3Metadata>,
pub salesforce: std::option::Option<crate::model::SalesforceMetadata>,
pub service_now: std::option::Option<crate::model::ServiceNowMetadata>,
pub singular: std::option::Option<crate::model::SingularMetadata>,
pub slack: std::option::Option<crate::model::SlackMetadata>,
pub snowflake: std::option::Option<crate::model::SnowflakeMetadata>,
pub trendmicro: std::option::Option<crate::model::TrendmicroMetadata>,
pub veeva: std::option::Option<crate::model::VeevaMetadata>,
pub zendesk: std::option::Option<crate::model::ZendeskMetadata>,
pub event_bridge: std::option::Option<crate::model::EventBridgeMetadata>,
pub upsolver: std::option::Option<crate::model::UpsolverMetadata>,
pub customer_profiles: std::option::Option<crate::model::CustomerProfilesMetadata>,
pub honeycode: std::option::Option<crate::model::HoneycodeMetadata>,
pub sapo_data: std::option::Option<crate::model::SapoDataMetadata>,
}
impl std::fmt::Debug for ConnectorMetadata {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ConnectorMetadata");
formatter.field("amplitude", &self.amplitude);
formatter.field("datadog", &self.datadog);
formatter.field("dynatrace", &self.dynatrace);
formatter.field("google_analytics", &self.google_analytics);
formatter.field("infor_nexus", &self.infor_nexus);
formatter.field("marketo", &self.marketo);
formatter.field("redshift", &self.redshift);
formatter.field("s3", &self.s3);
formatter.field("salesforce", &self.salesforce);
formatter.field("service_now", &self.service_now);
formatter.field("singular", &self.singular);
formatter.field("slack", &self.slack);
formatter.field("snowflake", &self.snowflake);
formatter.field("trendmicro", &self.trendmicro);
formatter.field("veeva", &self.veeva);
formatter.field("zendesk", &self.zendesk);
formatter.field("event_bridge", &self.event_bridge);
formatter.field("upsolver", &self.upsolver);
formatter.field("customer_profiles", &self.customer_profiles);
formatter.field("honeycode", &self.honeycode);
formatter.field("sapo_data", &self.sapo_data);
formatter.finish()
}
}
pub mod connector_metadata {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) amplitude: std::option::Option<crate::model::AmplitudeMetadata>,
pub(crate) datadog: std::option::Option<crate::model::DatadogMetadata>,
pub(crate) dynatrace: std::option::Option<crate::model::DynatraceMetadata>,
pub(crate) google_analytics: std::option::Option<crate::model::GoogleAnalyticsMetadata>,
pub(crate) infor_nexus: std::option::Option<crate::model::InforNexusMetadata>,
pub(crate) marketo: std::option::Option<crate::model::MarketoMetadata>,
pub(crate) redshift: std::option::Option<crate::model::RedshiftMetadata>,
pub(crate) s3: std::option::Option<crate::model::S3Metadata>,
pub(crate) salesforce: std::option::Option<crate::model::SalesforceMetadata>,
pub(crate) service_now: std::option::Option<crate::model::ServiceNowMetadata>,
pub(crate) singular: std::option::Option<crate::model::SingularMetadata>,
pub(crate) slack: std::option::Option<crate::model::SlackMetadata>,
pub(crate) snowflake: std::option::Option<crate::model::SnowflakeMetadata>,
pub(crate) trendmicro: std::option::Option<crate::model::TrendmicroMetadata>,
pub(crate) veeva: std::option::Option<crate::model::VeevaMetadata>,
pub(crate) zendesk: std::option::Option<crate::model::ZendeskMetadata>,
pub(crate) event_bridge: std::option::Option<crate::model::EventBridgeMetadata>,
pub(crate) upsolver: std::option::Option<crate::model::UpsolverMetadata>,
pub(crate) customer_profiles: std::option::Option<crate::model::CustomerProfilesMetadata>,
pub(crate) honeycode: std::option::Option<crate::model::HoneycodeMetadata>,
pub(crate) sapo_data: std::option::Option<crate::model::SapoDataMetadata>,
}
impl Builder {
pub fn amplitude(mut self, input: crate::model::AmplitudeMetadata) -> Self {
self.amplitude = Some(input);
self
}
pub fn set_amplitude(
mut self,
input: std::option::Option<crate::model::AmplitudeMetadata>,
) -> Self {
self.amplitude = input;
self
}
pub fn datadog(mut self, input: crate::model::DatadogMetadata) -> Self {
self.datadog = Some(input);
self
}
pub fn set_datadog(
mut self,
input: std::option::Option<crate::model::DatadogMetadata>,
) -> Self {
self.datadog = input;
self
}
pub fn dynatrace(mut self, input: crate::model::DynatraceMetadata) -> Self {
self.dynatrace = Some(input);
self
}
pub fn set_dynatrace(
mut self,
input: std::option::Option<crate::model::DynatraceMetadata>,
) -> Self {
self.dynatrace = input;
self
}
pub fn google_analytics(mut self, input: crate::model::GoogleAnalyticsMetadata) -> Self {
self.google_analytics = Some(input);
self
}
pub fn set_google_analytics(
mut self,
input: std::option::Option<crate::model::GoogleAnalyticsMetadata>,
) -> Self {
self.google_analytics = input;
self
}
pub fn infor_nexus(mut self, input: crate::model::InforNexusMetadata) -> Self {
self.infor_nexus = Some(input);
self
}
pub fn set_infor_nexus(
mut self,
input: std::option::Option<crate::model::InforNexusMetadata>,
) -> Self {
self.infor_nexus = input;
self
}
pub fn marketo(mut self, input: crate::model::MarketoMetadata) -> Self {
self.marketo = Some(input);
self
}
pub fn set_marketo(
mut self,
input: std::option::Option<crate::model::MarketoMetadata>,
) -> Self {
self.marketo = input;
self
}
pub fn redshift(mut self, input: crate::model::RedshiftMetadata) -> Self {
self.redshift = Some(input);
self
}
pub fn set_redshift(
mut self,
input: std::option::Option<crate::model::RedshiftMetadata>,
) -> Self {
self.redshift = input;
self
}
pub fn s3(mut self, input: crate::model::S3Metadata) -> Self {
self.s3 = Some(input);
self
}
pub fn set_s3(mut self, input: std::option::Option<crate::model::S3Metadata>) -> Self {
self.s3 = input;
self
}
pub fn salesforce(mut self, input: crate::model::SalesforceMetadata) -> Self {
self.salesforce = Some(input);
self
}
pub fn set_salesforce(
mut self,
input: std::option::Option<crate::model::SalesforceMetadata>,
) -> Self {
self.salesforce = input;
self
}
pub fn service_now(mut self, input: crate::model::ServiceNowMetadata) -> Self {
self.service_now = Some(input);
self
}
pub fn set_service_now(
mut self,
input: std::option::Option<crate::model::ServiceNowMetadata>,
) -> Self {
self.service_now = input;
self
}
pub fn singular(mut self, input: crate::model::SingularMetadata) -> Self {
self.singular = Some(input);
self
}
pub fn set_singular(
mut self,
input: std::option::Option<crate::model::SingularMetadata>,
) -> Self {
self.singular = input;
self
}
pub fn slack(mut self, input: crate::model::SlackMetadata) -> Self {
self.slack = Some(input);
self
}
pub fn set_slack(
mut self,
input: std::option::Option<crate::model::SlackMetadata>,
) -> Self {
self.slack = input;
self
}
pub fn snowflake(mut self, input: crate::model::SnowflakeMetadata) -> Self {
self.snowflake = Some(input);
self
}
pub fn set_snowflake(
mut self,
input: std::option::Option<crate::model::SnowflakeMetadata>,
) -> Self {
self.snowflake = input;
self
}
pub fn trendmicro(mut self, input: crate::model::TrendmicroMetadata) -> Self {
self.trendmicro = Some(input);
self
}
pub fn set_trendmicro(
mut self,
input: std::option::Option<crate::model::TrendmicroMetadata>,
) -> Self {
self.trendmicro = input;
self
}
pub fn veeva(mut self, input: crate::model::VeevaMetadata) -> Self {
self.veeva = Some(input);
self
}
pub fn set_veeva(
mut self,
input: std::option::Option<crate::model::VeevaMetadata>,
) -> Self {
self.veeva = input;
self
}
pub fn zendesk(mut self, input: crate::model::ZendeskMetadata) -> Self {
self.zendesk = Some(input);
self
}
pub fn set_zendesk(
mut self,
input: std::option::Option<crate::model::ZendeskMetadata>,
) -> Self {
self.zendesk = input;
self
}
pub fn event_bridge(mut self, input: crate::model::EventBridgeMetadata) -> Self {
self.event_bridge = Some(input);
self
}
pub fn set_event_bridge(
mut self,
input: std::option::Option<crate::model::EventBridgeMetadata>,
) -> Self {
self.event_bridge = input;
self
}
pub fn upsolver(mut self, input: crate::model::UpsolverMetadata) -> Self {
self.upsolver = Some(input);
self
}
pub fn set_upsolver(
mut self,
input: std::option::Option<crate::model::UpsolverMetadata>,
) -> Self {
self.upsolver = input;
self
}
pub fn customer_profiles(mut self, input: crate::model::CustomerProfilesMetadata) -> Self {
self.customer_profiles = Some(input);
self
}
pub fn set_customer_profiles(
mut self,
input: std::option::Option<crate::model::CustomerProfilesMetadata>,
) -> Self {
self.customer_profiles = input;
self
}
pub fn honeycode(mut self, input: crate::model::HoneycodeMetadata) -> Self {
self.honeycode = Some(input);
self
}
pub fn set_honeycode(
mut self,
input: std::option::Option<crate::model::HoneycodeMetadata>,
) -> Self {
self.honeycode = input;
self
}
pub fn sapo_data(mut self, input: crate::model::SapoDataMetadata) -> Self {
self.sapo_data = Some(input);
self
}
pub fn set_sapo_data(
mut self,
input: std::option::Option<crate::model::SapoDataMetadata>,
) -> Self {
self.sapo_data = input;
self
}
pub fn build(self) -> crate::model::ConnectorMetadata {
crate::model::ConnectorMetadata {
amplitude: self.amplitude,
datadog: self.datadog,
dynatrace: self.dynatrace,
google_analytics: self.google_analytics,
infor_nexus: self.infor_nexus,
marketo: self.marketo,
redshift: self.redshift,
s3: self.s3,
salesforce: self.salesforce,
service_now: self.service_now,
singular: self.singular,
slack: self.slack,
snowflake: self.snowflake,
trendmicro: self.trendmicro,
veeva: self.veeva,
zendesk: self.zendesk,
event_bridge: self.event_bridge,
upsolver: self.upsolver,
customer_profiles: self.customer_profiles,
honeycode: self.honeycode,
sapo_data: self.sapo_data,
}
}
}
}
impl ConnectorMetadata {
pub fn builder() -> crate::model::connector_metadata::Builder {
crate::model::connector_metadata::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct SapoDataMetadata {}
impl std::fmt::Debug for SapoDataMetadata {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("SapoDataMetadata");
formatter.finish()
}
}
pub mod sapo_data_metadata {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
pub fn build(self) -> crate::model::SapoDataMetadata {
crate::model::SapoDataMetadata {}
}
}
}
impl SapoDataMetadata {
pub fn builder() -> crate::model::sapo_data_metadata::Builder {
crate::model::sapo_data_metadata::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct HoneycodeMetadata {
pub o_auth_scopes: std::option::Option<std::vec::Vec<std::string::String>>,
}
impl std::fmt::Debug for HoneycodeMetadata {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("HoneycodeMetadata");
formatter.field("o_auth_scopes", &self.o_auth_scopes);
formatter.finish()
}
}
pub mod honeycode_metadata {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) o_auth_scopes: std::option::Option<std::vec::Vec<std::string::String>>,
}
impl Builder {
pub fn o_auth_scopes(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.o_auth_scopes.unwrap_or_default();
v.push(input.into());
self.o_auth_scopes = Some(v);
self
}
pub fn set_o_auth_scopes(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.o_auth_scopes = input;
self
}
pub fn build(self) -> crate::model::HoneycodeMetadata {
crate::model::HoneycodeMetadata {
o_auth_scopes: self.o_auth_scopes,
}
}
}
}
impl HoneycodeMetadata {
pub fn builder() -> crate::model::honeycode_metadata::Builder {
crate::model::honeycode_metadata::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct CustomerProfilesMetadata {}
impl std::fmt::Debug for CustomerProfilesMetadata {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("CustomerProfilesMetadata");
formatter.finish()
}
}
pub mod customer_profiles_metadata {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
pub fn build(self) -> crate::model::CustomerProfilesMetadata {
crate::model::CustomerProfilesMetadata {}
}
}
}
impl CustomerProfilesMetadata {
pub fn builder() -> crate::model::customer_profiles_metadata::Builder {
crate::model::customer_profiles_metadata::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct UpsolverMetadata {}
impl std::fmt::Debug for UpsolverMetadata {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("UpsolverMetadata");
formatter.finish()
}
}
pub mod upsolver_metadata {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
pub fn build(self) -> crate::model::UpsolverMetadata {
crate::model::UpsolverMetadata {}
}
}
}
impl UpsolverMetadata {
pub fn builder() -> crate::model::upsolver_metadata::Builder {
crate::model::upsolver_metadata::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct EventBridgeMetadata {}
impl std::fmt::Debug for EventBridgeMetadata {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("EventBridgeMetadata");
formatter.finish()
}
}
pub mod event_bridge_metadata {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
pub fn build(self) -> crate::model::EventBridgeMetadata {
crate::model::EventBridgeMetadata {}
}
}
}
impl EventBridgeMetadata {
pub fn builder() -> crate::model::event_bridge_metadata::Builder {
crate::model::event_bridge_metadata::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ZendeskMetadata {
pub o_auth_scopes: std::option::Option<std::vec::Vec<std::string::String>>,
}
impl std::fmt::Debug for ZendeskMetadata {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ZendeskMetadata");
formatter.field("o_auth_scopes", &self.o_auth_scopes);
formatter.finish()
}
}
pub mod zendesk_metadata {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) o_auth_scopes: std::option::Option<std::vec::Vec<std::string::String>>,
}
impl Builder {
pub fn o_auth_scopes(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.o_auth_scopes.unwrap_or_default();
v.push(input.into());
self.o_auth_scopes = Some(v);
self
}
pub fn set_o_auth_scopes(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.o_auth_scopes = input;
self
}
pub fn build(self) -> crate::model::ZendeskMetadata {
crate::model::ZendeskMetadata {
o_auth_scopes: self.o_auth_scopes,
}
}
}
}
impl ZendeskMetadata {
pub fn builder() -> crate::model::zendesk_metadata::Builder {
crate::model::zendesk_metadata::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct VeevaMetadata {}
impl std::fmt::Debug for VeevaMetadata {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("VeevaMetadata");
formatter.finish()
}
}
pub mod veeva_metadata {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
pub fn build(self) -> crate::model::VeevaMetadata {
crate::model::VeevaMetadata {}
}
}
}
impl VeevaMetadata {
pub fn builder() -> crate::model::veeva_metadata::Builder {
crate::model::veeva_metadata::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct TrendmicroMetadata {}
impl std::fmt::Debug for TrendmicroMetadata {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("TrendmicroMetadata");
formatter.finish()
}
}
pub mod trendmicro_metadata {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
pub fn build(self) -> crate::model::TrendmicroMetadata {
crate::model::TrendmicroMetadata {}
}
}
}
impl TrendmicroMetadata {
pub fn builder() -> crate::model::trendmicro_metadata::Builder {
crate::model::trendmicro_metadata::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct SnowflakeMetadata {
pub supported_regions: std::option::Option<std::vec::Vec<std::string::String>>,
}
impl std::fmt::Debug for SnowflakeMetadata {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("SnowflakeMetadata");
formatter.field("supported_regions", &self.supported_regions);
formatter.finish()
}
}
pub mod snowflake_metadata {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) supported_regions: std::option::Option<std::vec::Vec<std::string::String>>,
}
impl Builder {
pub fn supported_regions(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.supported_regions.unwrap_or_default();
v.push(input.into());
self.supported_regions = Some(v);
self
}
pub fn set_supported_regions(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.supported_regions = input;
self
}
pub fn build(self) -> crate::model::SnowflakeMetadata {
crate::model::SnowflakeMetadata {
supported_regions: self.supported_regions,
}
}
}
}
impl SnowflakeMetadata {
pub fn builder() -> crate::model::snowflake_metadata::Builder {
crate::model::snowflake_metadata::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct SlackMetadata {
pub o_auth_scopes: std::option::Option<std::vec::Vec<std::string::String>>,
}
impl std::fmt::Debug for SlackMetadata {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("SlackMetadata");
formatter.field("o_auth_scopes", &self.o_auth_scopes);
formatter.finish()
}
}
pub mod slack_metadata {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) o_auth_scopes: std::option::Option<std::vec::Vec<std::string::String>>,
}
impl Builder {
pub fn o_auth_scopes(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.o_auth_scopes.unwrap_or_default();
v.push(input.into());
self.o_auth_scopes = Some(v);
self
}
pub fn set_o_auth_scopes(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.o_auth_scopes = input;
self
}
pub fn build(self) -> crate::model::SlackMetadata {
crate::model::SlackMetadata {
o_auth_scopes: self.o_auth_scopes,
}
}
}
}
impl SlackMetadata {
pub fn builder() -> crate::model::slack_metadata::Builder {
crate::model::slack_metadata::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct SingularMetadata {}
impl std::fmt::Debug for SingularMetadata {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("SingularMetadata");
formatter.finish()
}
}
pub mod singular_metadata {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
pub fn build(self) -> crate::model::SingularMetadata {
crate::model::SingularMetadata {}
}
}
}
impl SingularMetadata {
pub fn builder() -> crate::model::singular_metadata::Builder {
crate::model::singular_metadata::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ServiceNowMetadata {}
impl std::fmt::Debug for ServiceNowMetadata {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ServiceNowMetadata");
formatter.finish()
}
}
pub mod service_now_metadata {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
pub fn build(self) -> crate::model::ServiceNowMetadata {
crate::model::ServiceNowMetadata {}
}
}
}
impl ServiceNowMetadata {
pub fn builder() -> crate::model::service_now_metadata::Builder {
crate::model::service_now_metadata::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct SalesforceMetadata {
pub o_auth_scopes: std::option::Option<std::vec::Vec<std::string::String>>,
}
impl std::fmt::Debug for SalesforceMetadata {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("SalesforceMetadata");
formatter.field("o_auth_scopes", &self.o_auth_scopes);
formatter.finish()
}
}
pub mod salesforce_metadata {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) o_auth_scopes: std::option::Option<std::vec::Vec<std::string::String>>,
}
impl Builder {
pub fn o_auth_scopes(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.o_auth_scopes.unwrap_or_default();
v.push(input.into());
self.o_auth_scopes = Some(v);
self
}
pub fn set_o_auth_scopes(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.o_auth_scopes = input;
self
}
pub fn build(self) -> crate::model::SalesforceMetadata {
crate::model::SalesforceMetadata {
o_auth_scopes: self.o_auth_scopes,
}
}
}
}
impl SalesforceMetadata {
pub fn builder() -> crate::model::salesforce_metadata::Builder {
crate::model::salesforce_metadata::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct S3Metadata {}
impl std::fmt::Debug for S3Metadata {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("S3Metadata");
formatter.finish()
}
}
pub mod s3_metadata {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
pub fn build(self) -> crate::model::S3Metadata {
crate::model::S3Metadata {}
}
}
}
impl S3Metadata {
pub fn builder() -> crate::model::s3_metadata::Builder {
crate::model::s3_metadata::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct RedshiftMetadata {}
impl std::fmt::Debug for RedshiftMetadata {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("RedshiftMetadata");
formatter.finish()
}
}
pub mod redshift_metadata {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
pub fn build(self) -> crate::model::RedshiftMetadata {
crate::model::RedshiftMetadata {}
}
}
}
impl RedshiftMetadata {
pub fn builder() -> crate::model::redshift_metadata::Builder {
crate::model::redshift_metadata::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct MarketoMetadata {}
impl std::fmt::Debug for MarketoMetadata {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("MarketoMetadata");
formatter.finish()
}
}
pub mod marketo_metadata {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
pub fn build(self) -> crate::model::MarketoMetadata {
crate::model::MarketoMetadata {}
}
}
}
impl MarketoMetadata {
pub fn builder() -> crate::model::marketo_metadata::Builder {
crate::model::marketo_metadata::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct InforNexusMetadata {}
impl std::fmt::Debug for InforNexusMetadata {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("InforNexusMetadata");
formatter.finish()
}
}
pub mod infor_nexus_metadata {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
pub fn build(self) -> crate::model::InforNexusMetadata {
crate::model::InforNexusMetadata {}
}
}
}
impl InforNexusMetadata {
pub fn builder() -> crate::model::infor_nexus_metadata::Builder {
crate::model::infor_nexus_metadata::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct GoogleAnalyticsMetadata {
pub o_auth_scopes: std::option::Option<std::vec::Vec<std::string::String>>,
}
impl std::fmt::Debug for GoogleAnalyticsMetadata {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("GoogleAnalyticsMetadata");
formatter.field("o_auth_scopes", &self.o_auth_scopes);
formatter.finish()
}
}
pub mod google_analytics_metadata {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) o_auth_scopes: std::option::Option<std::vec::Vec<std::string::String>>,
}
impl Builder {
pub fn o_auth_scopes(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.o_auth_scopes.unwrap_or_default();
v.push(input.into());
self.o_auth_scopes = Some(v);
self
}
pub fn set_o_auth_scopes(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.o_auth_scopes = input;
self
}
pub fn build(self) -> crate::model::GoogleAnalyticsMetadata {
crate::model::GoogleAnalyticsMetadata {
o_auth_scopes: self.o_auth_scopes,
}
}
}
}
impl GoogleAnalyticsMetadata {
pub fn builder() -> crate::model::google_analytics_metadata::Builder {
crate::model::google_analytics_metadata::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct DynatraceMetadata {}
impl std::fmt::Debug for DynatraceMetadata {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("DynatraceMetadata");
formatter.finish()
}
}
pub mod dynatrace_metadata {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
pub fn build(self) -> crate::model::DynatraceMetadata {
crate::model::DynatraceMetadata {}
}
}
}
impl DynatraceMetadata {
pub fn builder() -> crate::model::dynatrace_metadata::Builder {
crate::model::dynatrace_metadata::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct DatadogMetadata {}
impl std::fmt::Debug for DatadogMetadata {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("DatadogMetadata");
formatter.finish()
}
}
pub mod datadog_metadata {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
pub fn build(self) -> crate::model::DatadogMetadata {
crate::model::DatadogMetadata {}
}
}
}
impl DatadogMetadata {
pub fn builder() -> crate::model::datadog_metadata::Builder {
crate::model::datadog_metadata::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct AmplitudeMetadata {}
impl std::fmt::Debug for AmplitudeMetadata {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("AmplitudeMetadata");
formatter.finish()
}
}
pub mod amplitude_metadata {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
pub fn build(self) -> crate::model::AmplitudeMetadata {
crate::model::AmplitudeMetadata {}
}
}
}
impl AmplitudeMetadata {
pub fn builder() -> crate::model::amplitude_metadata::Builder {
crate::model::amplitude_metadata::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 ScheduleFrequencyType {
#[allow(missing_docs)] Byminute,
#[allow(missing_docs)] Daily,
#[allow(missing_docs)] Hourly,
#[allow(missing_docs)] Monthly,
#[allow(missing_docs)] Once,
#[allow(missing_docs)] Weekly,
Unknown(String),
}
impl std::convert::From<&str> for ScheduleFrequencyType {
fn from(s: &str) -> Self {
match s {
"BYMINUTE" => ScheduleFrequencyType::Byminute,
"DAILY" => ScheduleFrequencyType::Daily,
"HOURLY" => ScheduleFrequencyType::Hourly,
"MONTHLY" => ScheduleFrequencyType::Monthly,
"ONCE" => ScheduleFrequencyType::Once,
"WEEKLY" => ScheduleFrequencyType::Weekly,
other => ScheduleFrequencyType::Unknown(other.to_owned()),
}
}
}
impl std::str::FromStr for ScheduleFrequencyType {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(ScheduleFrequencyType::from(s))
}
}
impl ScheduleFrequencyType {
pub fn as_str(&self) -> &str {
match self {
ScheduleFrequencyType::Byminute => "BYMINUTE",
ScheduleFrequencyType::Daily => "DAILY",
ScheduleFrequencyType::Hourly => "HOURLY",
ScheduleFrequencyType::Monthly => "MONTHLY",
ScheduleFrequencyType::Once => "ONCE",
ScheduleFrequencyType::Weekly => "WEEKLY",
ScheduleFrequencyType::Unknown(s) => s.as_ref(),
}
}
pub fn values() -> &'static [&'static str] {
&["BYMINUTE", "DAILY", "HOURLY", "MONTHLY", "ONCE", "WEEKLY"]
}
}
impl AsRef<str> for ScheduleFrequencyType {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ConnectorProfile {
pub connector_profile_arn: std::option::Option<std::string::String>,
pub connector_profile_name: std::option::Option<std::string::String>,
pub connector_type: std::option::Option<crate::model::ConnectorType>,
pub connection_mode: std::option::Option<crate::model::ConnectionMode>,
pub credentials_arn: std::option::Option<std::string::String>,
pub connector_profile_properties: std::option::Option<crate::model::ConnectorProfileProperties>,
pub created_at: std::option::Option<aws_smithy_types::Instant>,
pub last_updated_at: std::option::Option<aws_smithy_types::Instant>,
pub private_connection_provisioning_state:
std::option::Option<crate::model::PrivateConnectionProvisioningState>,
}
impl std::fmt::Debug for ConnectorProfile {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ConnectorProfile");
formatter.field("connector_profile_arn", &self.connector_profile_arn);
formatter.field("connector_profile_name", &self.connector_profile_name);
formatter.field("connector_type", &self.connector_type);
formatter.field("connection_mode", &self.connection_mode);
formatter.field("credentials_arn", &self.credentials_arn);
formatter.field(
"connector_profile_properties",
&self.connector_profile_properties,
);
formatter.field("created_at", &self.created_at);
formatter.field("last_updated_at", &self.last_updated_at);
formatter.field(
"private_connection_provisioning_state",
&self.private_connection_provisioning_state,
);
formatter.finish()
}
}
pub mod connector_profile {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) connector_profile_arn: std::option::Option<std::string::String>,
pub(crate) connector_profile_name: std::option::Option<std::string::String>,
pub(crate) connector_type: std::option::Option<crate::model::ConnectorType>,
pub(crate) connection_mode: std::option::Option<crate::model::ConnectionMode>,
pub(crate) credentials_arn: std::option::Option<std::string::String>,
pub(crate) connector_profile_properties:
std::option::Option<crate::model::ConnectorProfileProperties>,
pub(crate) created_at: std::option::Option<aws_smithy_types::Instant>,
pub(crate) last_updated_at: std::option::Option<aws_smithy_types::Instant>,
pub(crate) private_connection_provisioning_state:
std::option::Option<crate::model::PrivateConnectionProvisioningState>,
}
impl Builder {
pub fn connector_profile_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.connector_profile_arn = Some(input.into());
self
}
pub fn set_connector_profile_arn(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.connector_profile_arn = input;
self
}
pub fn connector_profile_name(mut self, input: impl Into<std::string::String>) -> Self {
self.connector_profile_name = Some(input.into());
self
}
pub fn set_connector_profile_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.connector_profile_name = input;
self
}
pub fn connector_type(mut self, input: crate::model::ConnectorType) -> Self {
self.connector_type = Some(input);
self
}
pub fn set_connector_type(
mut self,
input: std::option::Option<crate::model::ConnectorType>,
) -> Self {
self.connector_type = input;
self
}
pub fn connection_mode(mut self, input: crate::model::ConnectionMode) -> Self {
self.connection_mode = Some(input);
self
}
pub fn set_connection_mode(
mut self,
input: std::option::Option<crate::model::ConnectionMode>,
) -> Self {
self.connection_mode = input;
self
}
pub fn credentials_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.credentials_arn = Some(input.into());
self
}
pub fn set_credentials_arn(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.credentials_arn = input;
self
}
pub fn connector_profile_properties(
mut self,
input: crate::model::ConnectorProfileProperties,
) -> Self {
self.connector_profile_properties = Some(input);
self
}
pub fn set_connector_profile_properties(
mut self,
input: std::option::Option<crate::model::ConnectorProfileProperties>,
) -> Self {
self.connector_profile_properties = input;
self
}
pub fn created_at(mut self, input: aws_smithy_types::Instant) -> Self {
self.created_at = Some(input);
self
}
pub fn set_created_at(
mut self,
input: std::option::Option<aws_smithy_types::Instant>,
) -> Self {
self.created_at = input;
self
}
pub fn last_updated_at(mut self, input: aws_smithy_types::Instant) -> Self {
self.last_updated_at = Some(input);
self
}
pub fn set_last_updated_at(
mut self,
input: std::option::Option<aws_smithy_types::Instant>,
) -> Self {
self.last_updated_at = input;
self
}
pub fn private_connection_provisioning_state(
mut self,
input: crate::model::PrivateConnectionProvisioningState,
) -> Self {
self.private_connection_provisioning_state = Some(input);
self
}
pub fn set_private_connection_provisioning_state(
mut self,
input: std::option::Option<crate::model::PrivateConnectionProvisioningState>,
) -> Self {
self.private_connection_provisioning_state = input;
self
}
pub fn build(self) -> crate::model::ConnectorProfile {
crate::model::ConnectorProfile {
connector_profile_arn: self.connector_profile_arn,
connector_profile_name: self.connector_profile_name,
connector_type: self.connector_type,
connection_mode: self.connection_mode,
credentials_arn: self.credentials_arn,
connector_profile_properties: self.connector_profile_properties,
created_at: self.created_at,
last_updated_at: self.last_updated_at,
private_connection_provisioning_state: self.private_connection_provisioning_state,
}
}
}
}
impl ConnectorProfile {
pub fn builder() -> crate::model::connector_profile::Builder {
crate::model::connector_profile::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct PrivateConnectionProvisioningState {
pub status: std::option::Option<crate::model::PrivateConnectionProvisioningStatus>,
pub failure_message: std::option::Option<std::string::String>,
pub failure_cause: std::option::Option<crate::model::PrivateConnectionProvisioningFailureCause>,
}
impl std::fmt::Debug for PrivateConnectionProvisioningState {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("PrivateConnectionProvisioningState");
formatter.field("status", &self.status);
formatter.field("failure_message", &self.failure_message);
formatter.field("failure_cause", &self.failure_cause);
formatter.finish()
}
}
pub mod private_connection_provisioning_state {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) status: std::option::Option<crate::model::PrivateConnectionProvisioningStatus>,
pub(crate) failure_message: std::option::Option<std::string::String>,
pub(crate) failure_cause:
std::option::Option<crate::model::PrivateConnectionProvisioningFailureCause>,
}
impl Builder {
pub fn status(mut self, input: crate::model::PrivateConnectionProvisioningStatus) -> Self {
self.status = Some(input);
self
}
pub fn set_status(
mut self,
input: std::option::Option<crate::model::PrivateConnectionProvisioningStatus>,
) -> Self {
self.status = input;
self
}
pub fn failure_message(mut self, input: impl Into<std::string::String>) -> Self {
self.failure_message = Some(input.into());
self
}
pub fn set_failure_message(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.failure_message = input;
self
}
pub fn failure_cause(
mut self,
input: crate::model::PrivateConnectionProvisioningFailureCause,
) -> Self {
self.failure_cause = Some(input);
self
}
pub fn set_failure_cause(
mut self,
input: std::option::Option<crate::model::PrivateConnectionProvisioningFailureCause>,
) -> Self {
self.failure_cause = input;
self
}
pub fn build(self) -> crate::model::PrivateConnectionProvisioningState {
crate::model::PrivateConnectionProvisioningState {
status: self.status,
failure_message: self.failure_message,
failure_cause: self.failure_cause,
}
}
}
}
impl PrivateConnectionProvisioningState {
pub fn builder() -> crate::model::private_connection_provisioning_state::Builder {
crate::model::private_connection_provisioning_state::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 PrivateConnectionProvisioningFailureCause {
#[allow(missing_docs)] AccessDenied,
#[allow(missing_docs)] ConnectorAuthentication,
#[allow(missing_docs)] ConnectorServer,
#[allow(missing_docs)] InternalServer,
#[allow(missing_docs)] Validation,
Unknown(String),
}
impl std::convert::From<&str> for PrivateConnectionProvisioningFailureCause {
fn from(s: &str) -> Self {
match s {
"ACCESS_DENIED" => PrivateConnectionProvisioningFailureCause::AccessDenied,
"CONNECTOR_AUTHENTICATION" => {
PrivateConnectionProvisioningFailureCause::ConnectorAuthentication
}
"CONNECTOR_SERVER" => PrivateConnectionProvisioningFailureCause::ConnectorServer,
"INTERNAL_SERVER" => PrivateConnectionProvisioningFailureCause::InternalServer,
"VALIDATION" => PrivateConnectionProvisioningFailureCause::Validation,
other => PrivateConnectionProvisioningFailureCause::Unknown(other.to_owned()),
}
}
}
impl std::str::FromStr for PrivateConnectionProvisioningFailureCause {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(PrivateConnectionProvisioningFailureCause::from(s))
}
}
impl PrivateConnectionProvisioningFailureCause {
pub fn as_str(&self) -> &str {
match self {
PrivateConnectionProvisioningFailureCause::AccessDenied => "ACCESS_DENIED",
PrivateConnectionProvisioningFailureCause::ConnectorAuthentication => {
"CONNECTOR_AUTHENTICATION"
}
PrivateConnectionProvisioningFailureCause::ConnectorServer => "CONNECTOR_SERVER",
PrivateConnectionProvisioningFailureCause::InternalServer => "INTERNAL_SERVER",
PrivateConnectionProvisioningFailureCause::Validation => "VALIDATION",
PrivateConnectionProvisioningFailureCause::Unknown(s) => s.as_ref(),
}
}
pub fn values() -> &'static [&'static str] {
&[
"ACCESS_DENIED",
"CONNECTOR_AUTHENTICATION",
"CONNECTOR_SERVER",
"INTERNAL_SERVER",
"VALIDATION",
]
}
}
impl AsRef<str> for PrivateConnectionProvisioningFailureCause {
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 PrivateConnectionProvisioningStatus {
#[allow(missing_docs)] Created,
#[allow(missing_docs)] Failed,
#[allow(missing_docs)] Pending,
Unknown(String),
}
impl std::convert::From<&str> for PrivateConnectionProvisioningStatus {
fn from(s: &str) -> Self {
match s {
"CREATED" => PrivateConnectionProvisioningStatus::Created,
"FAILED" => PrivateConnectionProvisioningStatus::Failed,
"PENDING" => PrivateConnectionProvisioningStatus::Pending,
other => PrivateConnectionProvisioningStatus::Unknown(other.to_owned()),
}
}
}
impl std::str::FromStr for PrivateConnectionProvisioningStatus {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(PrivateConnectionProvisioningStatus::from(s))
}
}
impl PrivateConnectionProvisioningStatus {
pub fn as_str(&self) -> &str {
match self {
PrivateConnectionProvisioningStatus::Created => "CREATED",
PrivateConnectionProvisioningStatus::Failed => "FAILED",
PrivateConnectionProvisioningStatus::Pending => "PENDING",
PrivateConnectionProvisioningStatus::Unknown(s) => s.as_ref(),
}
}
pub fn values() -> &'static [&'static str] {
&["CREATED", "FAILED", "PENDING"]
}
}
impl AsRef<str> for PrivateConnectionProvisioningStatus {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ConnectorEntityField {
pub identifier: std::option::Option<std::string::String>,
pub label: std::option::Option<std::string::String>,
pub supported_field_type_details: std::option::Option<crate::model::SupportedFieldTypeDetails>,
pub description: std::option::Option<std::string::String>,
pub source_properties: std::option::Option<crate::model::SourceFieldProperties>,
pub destination_properties: std::option::Option<crate::model::DestinationFieldProperties>,
}
impl std::fmt::Debug for ConnectorEntityField {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ConnectorEntityField");
formatter.field("identifier", &self.identifier);
formatter.field("label", &self.label);
formatter.field(
"supported_field_type_details",
&self.supported_field_type_details,
);
formatter.field("description", &self.description);
formatter.field("source_properties", &self.source_properties);
formatter.field("destination_properties", &self.destination_properties);
formatter.finish()
}
}
pub mod connector_entity_field {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) identifier: std::option::Option<std::string::String>,
pub(crate) label: std::option::Option<std::string::String>,
pub(crate) supported_field_type_details:
std::option::Option<crate::model::SupportedFieldTypeDetails>,
pub(crate) description: std::option::Option<std::string::String>,
pub(crate) source_properties: std::option::Option<crate::model::SourceFieldProperties>,
pub(crate) destination_properties:
std::option::Option<crate::model::DestinationFieldProperties>,
}
impl Builder {
pub fn identifier(mut self, input: impl Into<std::string::String>) -> Self {
self.identifier = Some(input.into());
self
}
pub fn set_identifier(mut self, input: std::option::Option<std::string::String>) -> Self {
self.identifier = input;
self
}
pub fn label(mut self, input: impl Into<std::string::String>) -> Self {
self.label = Some(input.into());
self
}
pub fn set_label(mut self, input: std::option::Option<std::string::String>) -> Self {
self.label = input;
self
}
pub fn supported_field_type_details(
mut self,
input: crate::model::SupportedFieldTypeDetails,
) -> Self {
self.supported_field_type_details = Some(input);
self
}
pub fn set_supported_field_type_details(
mut self,
input: std::option::Option<crate::model::SupportedFieldTypeDetails>,
) -> Self {
self.supported_field_type_details = input;
self
}
pub fn description(mut self, input: impl Into<std::string::String>) -> Self {
self.description = Some(input.into());
self
}
pub fn set_description(mut self, input: std::option::Option<std::string::String>) -> Self {
self.description = input;
self
}
pub fn source_properties(mut self, input: crate::model::SourceFieldProperties) -> Self {
self.source_properties = Some(input);
self
}
pub fn set_source_properties(
mut self,
input: std::option::Option<crate::model::SourceFieldProperties>,
) -> Self {
self.source_properties = input;
self
}
pub fn destination_properties(
mut self,
input: crate::model::DestinationFieldProperties,
) -> Self {
self.destination_properties = Some(input);
self
}
pub fn set_destination_properties(
mut self,
input: std::option::Option<crate::model::DestinationFieldProperties>,
) -> Self {
self.destination_properties = input;
self
}
pub fn build(self) -> crate::model::ConnectorEntityField {
crate::model::ConnectorEntityField {
identifier: self.identifier,
label: self.label,
supported_field_type_details: self.supported_field_type_details,
description: self.description,
source_properties: self.source_properties,
destination_properties: self.destination_properties,
}
}
}
}
impl ConnectorEntityField {
pub fn builder() -> crate::model::connector_entity_field::Builder {
crate::model::connector_entity_field::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct DestinationFieldProperties {
pub is_creatable: bool,
pub is_nullable: bool,
pub is_upsertable: bool,
pub is_updatable: bool,
pub supported_write_operations:
std::option::Option<std::vec::Vec<crate::model::WriteOperationType>>,
}
impl std::fmt::Debug for DestinationFieldProperties {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("DestinationFieldProperties");
formatter.field("is_creatable", &self.is_creatable);
formatter.field("is_nullable", &self.is_nullable);
formatter.field("is_upsertable", &self.is_upsertable);
formatter.field("is_updatable", &self.is_updatable);
formatter.field(
"supported_write_operations",
&self.supported_write_operations,
);
formatter.finish()
}
}
pub mod destination_field_properties {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) is_creatable: std::option::Option<bool>,
pub(crate) is_nullable: std::option::Option<bool>,
pub(crate) is_upsertable: std::option::Option<bool>,
pub(crate) is_updatable: std::option::Option<bool>,
pub(crate) supported_write_operations:
std::option::Option<std::vec::Vec<crate::model::WriteOperationType>>,
}
impl Builder {
pub fn is_creatable(mut self, input: bool) -> Self {
self.is_creatable = Some(input);
self
}
pub fn set_is_creatable(mut self, input: std::option::Option<bool>) -> Self {
self.is_creatable = input;
self
}
pub fn is_nullable(mut self, input: bool) -> Self {
self.is_nullable = Some(input);
self
}
pub fn set_is_nullable(mut self, input: std::option::Option<bool>) -> Self {
self.is_nullable = input;
self
}
pub fn is_upsertable(mut self, input: bool) -> Self {
self.is_upsertable = Some(input);
self
}
pub fn set_is_upsertable(mut self, input: std::option::Option<bool>) -> Self {
self.is_upsertable = input;
self
}
pub fn is_updatable(mut self, input: bool) -> Self {
self.is_updatable = Some(input);
self
}
pub fn set_is_updatable(mut self, input: std::option::Option<bool>) -> Self {
self.is_updatable = input;
self
}
pub fn supported_write_operations(
mut self,
input: impl Into<crate::model::WriteOperationType>,
) -> Self {
let mut v = self.supported_write_operations.unwrap_or_default();
v.push(input.into());
self.supported_write_operations = Some(v);
self
}
pub fn set_supported_write_operations(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::WriteOperationType>>,
) -> Self {
self.supported_write_operations = input;
self
}
pub fn build(self) -> crate::model::DestinationFieldProperties {
crate::model::DestinationFieldProperties {
is_creatable: self.is_creatable.unwrap_or_default(),
is_nullable: self.is_nullable.unwrap_or_default(),
is_upsertable: self.is_upsertable.unwrap_or_default(),
is_updatable: self.is_updatable.unwrap_or_default(),
supported_write_operations: self.supported_write_operations,
}
}
}
}
impl DestinationFieldProperties {
pub fn builder() -> crate::model::destination_field_properties::Builder {
crate::model::destination_field_properties::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct SourceFieldProperties {
pub is_retrievable: bool,
pub is_queryable: bool,
}
impl std::fmt::Debug for SourceFieldProperties {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("SourceFieldProperties");
formatter.field("is_retrievable", &self.is_retrievable);
formatter.field("is_queryable", &self.is_queryable);
formatter.finish()
}
}
pub mod source_field_properties {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) is_retrievable: std::option::Option<bool>,
pub(crate) is_queryable: std::option::Option<bool>,
}
impl Builder {
pub fn is_retrievable(mut self, input: bool) -> Self {
self.is_retrievable = Some(input);
self
}
pub fn set_is_retrievable(mut self, input: std::option::Option<bool>) -> Self {
self.is_retrievable = input;
self
}
pub fn is_queryable(mut self, input: bool) -> Self {
self.is_queryable = Some(input);
self
}
pub fn set_is_queryable(mut self, input: std::option::Option<bool>) -> Self {
self.is_queryable = input;
self
}
pub fn build(self) -> crate::model::SourceFieldProperties {
crate::model::SourceFieldProperties {
is_retrievable: self.is_retrievable.unwrap_or_default(),
is_queryable: self.is_queryable.unwrap_or_default(),
}
}
}
}
impl SourceFieldProperties {
pub fn builder() -> crate::model::source_field_properties::Builder {
crate::model::source_field_properties::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct SupportedFieldTypeDetails {
pub v1: std::option::Option<crate::model::FieldTypeDetails>,
}
impl std::fmt::Debug for SupportedFieldTypeDetails {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("SupportedFieldTypeDetails");
formatter.field("v1", &self.v1);
formatter.finish()
}
}
pub mod supported_field_type_details {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) v1: std::option::Option<crate::model::FieldTypeDetails>,
}
impl Builder {
pub fn v1(mut self, input: crate::model::FieldTypeDetails) -> Self {
self.v1 = Some(input);
self
}
pub fn set_v1(
mut self,
input: std::option::Option<crate::model::FieldTypeDetails>,
) -> Self {
self.v1 = input;
self
}
pub fn build(self) -> crate::model::SupportedFieldTypeDetails {
crate::model::SupportedFieldTypeDetails { v1: self.v1 }
}
}
}
impl SupportedFieldTypeDetails {
pub fn builder() -> crate::model::supported_field_type_details::Builder {
crate::model::supported_field_type_details::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct FieldTypeDetails {
pub field_type: std::option::Option<std::string::String>,
pub filter_operators: std::option::Option<std::vec::Vec<crate::model::Operator>>,
pub supported_values: std::option::Option<std::vec::Vec<std::string::String>>,
}
impl std::fmt::Debug for FieldTypeDetails {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("FieldTypeDetails");
formatter.field("field_type", &self.field_type);
formatter.field("filter_operators", &self.filter_operators);
formatter.field("supported_values", &self.supported_values);
formatter.finish()
}
}
pub mod field_type_details {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) field_type: std::option::Option<std::string::String>,
pub(crate) filter_operators: std::option::Option<std::vec::Vec<crate::model::Operator>>,
pub(crate) supported_values: std::option::Option<std::vec::Vec<std::string::String>>,
}
impl Builder {
pub fn field_type(mut self, input: impl Into<std::string::String>) -> Self {
self.field_type = Some(input.into());
self
}
pub fn set_field_type(mut self, input: std::option::Option<std::string::String>) -> Self {
self.field_type = input;
self
}
pub fn filter_operators(mut self, input: impl Into<crate::model::Operator>) -> Self {
let mut v = self.filter_operators.unwrap_or_default();
v.push(input.into());
self.filter_operators = Some(v);
self
}
pub fn set_filter_operators(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::Operator>>,
) -> Self {
self.filter_operators = input;
self
}
pub fn supported_values(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.supported_values.unwrap_or_default();
v.push(input.into());
self.supported_values = Some(v);
self
}
pub fn set_supported_values(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.supported_values = input;
self
}
pub fn build(self) -> crate::model::FieldTypeDetails {
crate::model::FieldTypeDetails {
field_type: self.field_type,
filter_operators: self.filter_operators,
supported_values: self.supported_values,
}
}
}
}
impl FieldTypeDetails {
pub fn builder() -> crate::model::field_type_details::Builder {
crate::model::field_type_details::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 Operator {
#[allow(missing_docs)] Addition,
#[allow(missing_docs)] Between,
#[allow(missing_docs)] Contains,
#[allow(missing_docs)] Division,
#[allow(missing_docs)] EqualTo,
#[allow(missing_docs)] GreaterThan,
#[allow(missing_docs)] GreaterThanOrEqualTo,
#[allow(missing_docs)] LessThan,
#[allow(missing_docs)] LessThanOrEqualTo,
#[allow(missing_docs)] MaskAll,
#[allow(missing_docs)] MaskFirstN,
#[allow(missing_docs)] MaskLastN,
#[allow(missing_docs)] Multiplication,
#[allow(missing_docs)] NotEqualTo,
#[allow(missing_docs)] NoOp,
#[allow(missing_docs)] Projection,
#[allow(missing_docs)] Subtraction,
#[allow(missing_docs)] ValidateNonNegative,
#[allow(missing_docs)] ValidateNonNull,
#[allow(missing_docs)] ValidateNonZero,
#[allow(missing_docs)] ValidateNumeric,
Unknown(String),
}
impl std::convert::From<&str> for Operator {
fn from(s: &str) -> Self {
match s {
"ADDITION" => Operator::Addition,
"BETWEEN" => Operator::Between,
"CONTAINS" => Operator::Contains,
"DIVISION" => Operator::Division,
"EQUAL_TO" => Operator::EqualTo,
"GREATER_THAN" => Operator::GreaterThan,
"GREATER_THAN_OR_EQUAL_TO" => Operator::GreaterThanOrEqualTo,
"LESS_THAN" => Operator::LessThan,
"LESS_THAN_OR_EQUAL_TO" => Operator::LessThanOrEqualTo,
"MASK_ALL" => Operator::MaskAll,
"MASK_FIRST_N" => Operator::MaskFirstN,
"MASK_LAST_N" => Operator::MaskLastN,
"MULTIPLICATION" => Operator::Multiplication,
"NOT_EQUAL_TO" => Operator::NotEqualTo,
"NO_OP" => Operator::NoOp,
"PROJECTION" => Operator::Projection,
"SUBTRACTION" => Operator::Subtraction,
"VALIDATE_NON_NEGATIVE" => Operator::ValidateNonNegative,
"VALIDATE_NON_NULL" => Operator::ValidateNonNull,
"VALIDATE_NON_ZERO" => Operator::ValidateNonZero,
"VALIDATE_NUMERIC" => Operator::ValidateNumeric,
other => Operator::Unknown(other.to_owned()),
}
}
}
impl std::str::FromStr for Operator {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(Operator::from(s))
}
}
impl Operator {
pub fn as_str(&self) -> &str {
match self {
Operator::Addition => "ADDITION",
Operator::Between => "BETWEEN",
Operator::Contains => "CONTAINS",
Operator::Division => "DIVISION",
Operator::EqualTo => "EQUAL_TO",
Operator::GreaterThan => "GREATER_THAN",
Operator::GreaterThanOrEqualTo => "GREATER_THAN_OR_EQUAL_TO",
Operator::LessThan => "LESS_THAN",
Operator::LessThanOrEqualTo => "LESS_THAN_OR_EQUAL_TO",
Operator::MaskAll => "MASK_ALL",
Operator::MaskFirstN => "MASK_FIRST_N",
Operator::MaskLastN => "MASK_LAST_N",
Operator::Multiplication => "MULTIPLICATION",
Operator::NotEqualTo => "NOT_EQUAL_TO",
Operator::NoOp => "NO_OP",
Operator::Projection => "PROJECTION",
Operator::Subtraction => "SUBTRACTION",
Operator::ValidateNonNegative => "VALIDATE_NON_NEGATIVE",
Operator::ValidateNonNull => "VALIDATE_NON_NULL",
Operator::ValidateNonZero => "VALIDATE_NON_ZERO",
Operator::ValidateNumeric => "VALIDATE_NUMERIC",
Operator::Unknown(s) => s.as_ref(),
}
}
pub fn values() -> &'static [&'static str] {
&[
"ADDITION",
"BETWEEN",
"CONTAINS",
"DIVISION",
"EQUAL_TO",
"GREATER_THAN",
"GREATER_THAN_OR_EQUAL_TO",
"LESS_THAN",
"LESS_THAN_OR_EQUAL_TO",
"MASK_ALL",
"MASK_FIRST_N",
"MASK_LAST_N",
"MULTIPLICATION",
"NOT_EQUAL_TO",
"NO_OP",
"PROJECTION",
"SUBTRACTION",
"VALIDATE_NON_NEGATIVE",
"VALIDATE_NON_NULL",
"VALIDATE_NON_ZERO",
"VALIDATE_NUMERIC",
]
}
}
impl AsRef<str> for Operator {
fn as_ref(&self) -> &str {
self.as_str()
}
}