You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2021/02/24 14:23:13 UTC
[camel] 03/05: CAMEL-16115 - Remove Camel-AWS-* components - AWS-CW
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 09c6baa71ee9098e58bd0ff4f12c2e31c614918a
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Feb 24 14:54:31 2021 +0100
CAMEL-16115 - Remove Camel-AWS-* components - AWS-CW
---
.../component/ComponentsBuilderFactory.java | 16 +-
.../dsl/AwsCwComponentBuilderFactory.java | 335 ----------------
.../builder/endpoint/StaticEndpointBuilders.java | 47 +--
.../endpoint/dsl/CwEndpointBuilderFactory.java | 419 ---------------------
4 files changed, 2 insertions(+), 815 deletions(-)
diff --git a/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java b/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
index 2362e5e..75e0602 100644
--- a/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
+++ b/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
@@ -306,20 +306,6 @@ public interface ComponentsBuilderFactory {
return org.apache.camel.builder.component.dsl.AvroComponentBuilderFactory.avro();
}
/**
- * AWS CloudWatch (camel-aws-cw)
- * Send metrics to AWS CloudWatch.
- *
- * Category: cloud,monitoring
- * Since: 2.11
- * Maven coordinates: org.apache.camel:camel-aws-cw
- *
- * @return the dsl builder
- */
- @Deprecated
- static org.apache.camel.builder.component.dsl.AwsCwComponentBuilderFactory.AwsCwComponentBuilder awsCw() {
- return org.apache.camel.builder.component.dsl.AwsCwComponentBuilderFactory.awsCw();
- }
- /**
* AWS S3 Storage Service (camel-aws-s3)
* Store and retrieve objects from AWS S3 Storage Service.
*
@@ -4708,4 +4694,4 @@ public interface ComponentsBuilderFactory {
static org.apache.camel.builder.component.dsl.ZookeeperMasterComponentBuilderFactory.ZookeeperMasterComponentBuilder zookeeperMaster() {
return org.apache.camel.builder.component.dsl.ZookeeperMasterComponentBuilderFactory.zookeeperMaster();
}
-}
\ No newline at end of file
+}
diff --git a/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/AwsCwComponentBuilderFactory.java b/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/AwsCwComponentBuilderFactory.java
deleted file mode 100644
index 536fc61..0000000
--- a/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/AwsCwComponentBuilderFactory.java
+++ /dev/null
@@ -1,335 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.camel.builder.component.dsl;
-
-import javax.annotation.Generated;
-import org.apache.camel.Component;
-import org.apache.camel.builder.component.AbstractComponentBuilder;
-import org.apache.camel.builder.component.ComponentBuilder;
-import org.apache.camel.component.aws.cw.CwComponent;
-
-/**
- * Send metrics to AWS CloudWatch.
- *
- * Generated by camel-package-maven-plugin - do not edit this file!
- */
-@Generated("org.apache.camel.maven.packaging.ComponentDslMojo")
-public interface AwsCwComponentBuilderFactory {
-
- /**
- * AWS CloudWatch (camel-aws-cw)
- * Send metrics to AWS CloudWatch.
- *
- * Category: cloud,monitoring
- * Since: 2.11
- * Maven coordinates: org.apache.camel:camel-aws-cw
- *
- * @return the dsl builder
- */
- @Deprecated
- static AwsCwComponentBuilder awsCw() {
- return new AwsCwComponentBuilderImpl();
- }
-
- /**
- * Builder for the AWS CloudWatch component.
- */
- interface AwsCwComponentBuilder extends ComponentBuilder<CwComponent> {
- /**
- * To use the AmazonCloudWatch as the client.
- *
- * The option is a:
- * <code>com.amazonaws.services.cloudwatch.AmazonCloudWatch</code> type.
- *
- * Group: producer
- *
- * @param amazonCwClient the value to set
- * @return the dsl builder
- */
- default AwsCwComponentBuilder amazonCwClient(
- com.amazonaws.services.cloudwatch.AmazonCloudWatch amazonCwClient) {
- doSetProperty("amazonCwClient", amazonCwClient);
- return this;
- }
- /**
- * Setting the autoDiscoverClient mechanism, if true, the component will
- * look for a client instance in the registry automatically otherwise it
- * will skip that checking.
- *
- * The option is a: <code>boolean</code> type.
- *
- * Default: true
- * Group: common
- *
- * @param autoDiscoverClient the value to set
- * @return the dsl builder
- */
- default AwsCwComponentBuilder autoDiscoverClient(
- boolean autoDiscoverClient) {
- doSetProperty("autoDiscoverClient", autoDiscoverClient);
- return this;
- }
- /**
- * The component configuration.
- *
- * The option is a:
- * <code>org.apache.camel.component.aws.cw.CwConfiguration</code> type.
- *
- * Group: producer
- *
- * @param configuration the value to set
- * @return the dsl builder
- */
- default AwsCwComponentBuilder configuration(
- org.apache.camel.component.aws.cw.CwConfiguration configuration) {
- doSetProperty("configuration", configuration);
- return this;
- }
- /**
- * Whether the producer should be started lazy (on the first message).
- * By starting lazy you can use this to allow CamelContext and routes to
- * startup in situations where a producer may otherwise fail during
- * starting and cause the route to fail being started. By deferring this
- * startup to be lazy then the startup failure can be handled during
- * routing messages via Camel's routing error handlers. Beware that when
- * the first message is processed then creating and starting the
- * producer may take a little time and prolong the total processing time
- * of the processing.
- *
- * The option is a: <code>boolean</code> type.
- *
- * Default: false
- * Group: producer
- *
- * @param lazyStartProducer the value to set
- * @return the dsl builder
- */
- default AwsCwComponentBuilder lazyStartProducer(
- boolean lazyStartProducer) {
- doSetProperty("lazyStartProducer", lazyStartProducer);
- return this;
- }
- /**
- * The metric name.
- *
- * The option is a: <code>java.lang.String</code> type.
- *
- * Group: producer
- *
- * @param name the value to set
- * @return the dsl builder
- */
- default AwsCwComponentBuilder name(java.lang.String name) {
- doSetProperty("name", name);
- return this;
- }
- /**
- * To define a proxy host when instantiating the CW client.
- *
- * The option is a: <code>java.lang.String</code> type.
- *
- * Group: producer
- *
- * @param proxyHost the value to set
- * @return the dsl builder
- */
- default AwsCwComponentBuilder proxyHost(java.lang.String proxyHost) {
- doSetProperty("proxyHost", proxyHost);
- return this;
- }
- /**
- * To define a proxy port when instantiating the CW client.
- *
- * The option is a: <code>java.lang.Integer</code> type.
- *
- * Group: producer
- *
- * @param proxyPort the value to set
- * @return the dsl builder
- */
- default AwsCwComponentBuilder proxyPort(java.lang.Integer proxyPort) {
- doSetProperty("proxyPort", proxyPort);
- return this;
- }
- /**
- * To define a proxy protocol when instantiating the CW client.
- *
- * The option is a: <code>com.amazonaws.Protocol</code>
- * type.
- *
- * Default: HTTPS
- * Group: producer
- *
- * @param proxyProtocol the value to set
- * @return the dsl builder
- */
- default AwsCwComponentBuilder proxyProtocol(
- com.amazonaws.Protocol proxyProtocol) {
- doSetProperty("proxyProtocol", proxyProtocol);
- return this;
- }
- /**
- * The region in which CW client needs to work. When using this
- * parameter, the configuration will expect the capitalized name of the
- * region (for example AP_EAST_1) You'll need to use the name
- * Regions.EU_WEST_1.name().
- *
- * The option is a: <code>java.lang.String</code> type.
- *
- * Group: producer
- *
- * @param region the value to set
- * @return the dsl builder
- */
- default AwsCwComponentBuilder region(java.lang.String region) {
- doSetProperty("region", region);
- return this;
- }
- /**
- * The metric timestamp.
- *
- * The option is a: <code>java.util.Date</code> type.
- *
- * Group: producer
- *
- * @param timestamp the value to set
- * @return the dsl builder
- */
- default AwsCwComponentBuilder timestamp(java.util.Date timestamp) {
- doSetProperty("timestamp", timestamp);
- return this;
- }
- /**
- * The metric unit.
- *
- * The option is a: <code>java.lang.String</code> type.
- *
- * Group: producer
- *
- * @param unit the value to set
- * @return the dsl builder
- */
- default AwsCwComponentBuilder unit(java.lang.String unit) {
- doSetProperty("unit", unit);
- return this;
- }
- /**
- * The metric value.
- *
- * The option is a: <code>java.lang.Double</code> type.
- *
- * Group: producer
- *
- * @param value the value to set
- * @return the dsl builder
- */
- default AwsCwComponentBuilder value(java.lang.Double value) {
- doSetProperty("value", value);
- return this;
- }
- /**
- * Whether autowiring is enabled. This is used for automatic autowiring
- * options (the option must be marked as autowired) by looking up in the
- * registry to find if there is a single instance of matching type,
- * which then gets configured on the component. This can be used for
- * automatic configuring JDBC data sources, JMS connection factories,
- * AWS Clients, etc.
- *
- * The option is a: <code>boolean</code> type.
- *
- * Default: true
- * Group: advanced
- *
- * @param autowiredEnabled the value to set
- * @return the dsl builder
- */
- default AwsCwComponentBuilder autowiredEnabled(boolean autowiredEnabled) {
- doSetProperty("autowiredEnabled", autowiredEnabled);
- return this;
- }
- /**
- * Amazon AWS Access Key.
- *
- * The option is a: <code>java.lang.String</code> type.
- *
- * Group: security
- *
- * @param accessKey the value to set
- * @return the dsl builder
- */
- default AwsCwComponentBuilder accessKey(java.lang.String accessKey) {
- doSetProperty("accessKey", accessKey);
- return this;
- }
- /**
- * Amazon AWS Secret Key.
- *
- * The option is a: <code>java.lang.String</code> type.
- *
- * Group: security
- *
- * @param secretKey the value to set
- * @return the dsl builder
- */
- default AwsCwComponentBuilder secretKey(java.lang.String secretKey) {
- doSetProperty("secretKey", secretKey);
- return this;
- }
- }
-
- class AwsCwComponentBuilderImpl
- extends
- AbstractComponentBuilder<CwComponent>
- implements
- AwsCwComponentBuilder {
- @Override
- protected CwComponent buildConcreteComponent() {
- return new CwComponent();
- }
- private org.apache.camel.component.aws.cw.CwConfiguration getOrCreateConfiguration(
- org.apache.camel.component.aws.cw.CwComponent component) {
- if (component.getConfiguration() == null) {
- component.setConfiguration(new org.apache.camel.component.aws.cw.CwConfiguration());
- }
- return component.getConfiguration();
- }
- @Override
- protected boolean setPropertyOnComponent(
- Component component,
- String name,
- Object value) {
- switch (name) {
- case "amazonCwClient": getOrCreateConfiguration((CwComponent) component).setAmazonCwClient((com.amazonaws.services.cloudwatch.AmazonCloudWatch) value); return true;
- case "autoDiscoverClient": getOrCreateConfiguration((CwComponent) component).setAutoDiscoverClient((boolean) value); return true;
- case "configuration": ((CwComponent) component).setConfiguration((org.apache.camel.component.aws.cw.CwConfiguration) value); return true;
- case "lazyStartProducer": ((CwComponent) component).setLazyStartProducer((boolean) value); return true;
- case "name": getOrCreateConfiguration((CwComponent) component).setName((java.lang.String) value); return true;
- case "proxyHost": getOrCreateConfiguration((CwComponent) component).setProxyHost((java.lang.String) value); return true;
- case "proxyPort": getOrCreateConfiguration((CwComponent) component).setProxyPort((java.lang.Integer) value); return true;
- case "proxyProtocol": getOrCreateConfiguration((CwComponent) component).setProxyProtocol((com.amazonaws.Protocol) value); return true;
- case "region": getOrCreateConfiguration((CwComponent) component).setRegion((java.lang.String) value); return true;
- case "timestamp": getOrCreateConfiguration((CwComponent) component).setTimestamp((java.util.Date) value); return true;
- case "unit": getOrCreateConfiguration((CwComponent) component).setUnit((java.lang.String) value); return true;
- case "value": getOrCreateConfiguration((CwComponent) component).setValue((java.lang.Double) value); return true;
- case "autowiredEnabled": ((CwComponent) component).setAutowiredEnabled((boolean) value); return true;
- case "accessKey": getOrCreateConfiguration((CwComponent) component).setAccessKey((java.lang.String) value); return true;
- case "secretKey": getOrCreateConfiguration((CwComponent) component).setSecretKey((java.lang.String) value); return true;
- default: return false;
- }
- }
- }
-}
\ No newline at end of file
diff --git a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
index 501a4b2..c6f1e56 100644
--- a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
+++ b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
@@ -1832,51 +1832,6 @@ public class StaticEndpointBuilders {
return org.apache.camel.builder.endpoint.dsl.Translate2EndpointBuilderFactory.endpointBuilder(componentName, path);
}
/**
- * AWS CloudWatch (camel-aws-cw)
- * Send metrics to AWS CloudWatch.
- *
- * Category: cloud,monitoring
- * Since: 2.11
- * Maven coordinates: org.apache.camel:camel-aws-cw
- *
- * Syntax: <code>aws-cw:namespace</code>
- *
- * Path parameter: namespace (required)
- * The metric namespace
- *
- * @param path namespace
- * @return the dsl builder
- */
- @Deprecated
- public static org.apache.camel.builder.endpoint.dsl.CwEndpointBuilderFactory.CwEndpointBuilder awsCw(
- String path) {
- return org.apache.camel.builder.endpoint.dsl.CwEndpointBuilderFactory.endpointBuilder("aws-cw", path);
- }
- /**
- * AWS CloudWatch (camel-aws-cw)
- * Send metrics to AWS CloudWatch.
- *
- * Category: cloud,monitoring
- * Since: 2.11
- * Maven coordinates: org.apache.camel:camel-aws-cw
- *
- * Syntax: <code>aws-cw:namespace</code>
- *
- * Path parameter: namespace (required)
- * The metric namespace
- *
- * @param componentName to use a custom component name for the endpoint
- * instead of the default name
- * @param path namespace
- * @return the dsl builder
- */
- @Deprecated
- public static org.apache.camel.builder.endpoint.dsl.CwEndpointBuilderFactory.CwEndpointBuilder awsCw(
- String componentName,
- String path) {
- return org.apache.camel.builder.endpoint.dsl.CwEndpointBuilderFactory.endpointBuilder(componentName, path);
- }
- /**
* AWS S3 Storage Service (camel-aws-s3)
* Store and retrieve objects from AWS S3 Storage Service.
*
@@ -16532,4 +16487,4 @@ public class StaticEndpointBuilders {
return org.apache.camel.builder.endpoint.dsl.ZooKeeperMasterEndpointBuilderFactory.endpointBuilder(componentName, path);
}
}
-//CHECKSTYLE:ON
\ No newline at end of file
+//CHECKSTYLE:ON
diff --git a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/CwEndpointBuilderFactory.java b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/CwEndpointBuilderFactory.java
deleted file mode 100644
index 8f6136e..0000000
--- a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/CwEndpointBuilderFactory.java
+++ /dev/null
@@ -1,419 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.camel.builder.endpoint.dsl;
-
-import java.util.Date;
-import javax.annotation.Generated;
-import org.apache.camel.builder.EndpointConsumerBuilder;
-import org.apache.camel.builder.EndpointProducerBuilder;
-import org.apache.camel.builder.endpoint.AbstractEndpointBuilder;
-
-/**
- * Send metrics to AWS CloudWatch.
- *
- * Generated by camel build tools - do NOT edit this file!
- */
-@Generated("org.apache.camel.maven.packaging.EndpointDslMojo")
-public interface CwEndpointBuilderFactory {
-
-
- /**
- * Builder for endpoint for the AWS CloudWatch component.
- */
- public interface CwEndpointBuilder extends EndpointProducerBuilder {
- /**
- * To use the AmazonCloudWatch as the client.
- *
- * The option is a:
- * <code>com.amazonaws.services.cloudwatch.AmazonCloudWatch</code> type.
- *
- * Group: producer
- *
- * @param amazonCwClient the value to set
- * @return the dsl builder
- */
- default CwEndpointBuilder amazonCwClient(Object amazonCwClient) {
- doSetProperty("amazonCwClient", amazonCwClient);
- return this;
- }
- /**
- * To use the AmazonCloudWatch as the client.
- *
- * The option will be converted to a
- * <code>com.amazonaws.services.cloudwatch.AmazonCloudWatch</code> type.
- *
- * Group: producer
- *
- * @param amazonCwClient the value to set
- * @return the dsl builder
- */
- default CwEndpointBuilder amazonCwClient(String amazonCwClient) {
- doSetProperty("amazonCwClient", amazonCwClient);
- return this;
- }
- /**
- * Setting the autoDiscoverClient mechanism, if true, the component will
- * look for a client instance in the registry automatically otherwise it
- * will skip that checking.
- *
- * The option is a: <code>boolean</code> type.
- *
- * Default: true
- * Group: common
- *
- * @param autoDiscoverClient the value to set
- * @return the dsl builder
- */
- default CwEndpointBuilder autoDiscoverClient(boolean autoDiscoverClient) {
- doSetProperty("autoDiscoverClient", autoDiscoverClient);
- return this;
- }
- /**
- * Setting the autoDiscoverClient mechanism, if true, the component will
- * look for a client instance in the registry automatically otherwise it
- * will skip that checking.
- *
- * The option will be converted to a <code>boolean</code>
- * type.
- *
- * Default: true
- * Group: common
- *
- * @param autoDiscoverClient the value to set
- * @return the dsl builder
- */
- default CwEndpointBuilder autoDiscoverClient(String autoDiscoverClient) {
- doSetProperty("autoDiscoverClient", autoDiscoverClient);
- return this;
- }
- /**
- * Whether the producer should be started lazy (on the first message).
- * By starting lazy you can use this to allow CamelContext and routes to
- * startup in situations where a producer may otherwise fail during
- * starting and cause the route to fail being started. By deferring this
- * startup to be lazy then the startup failure can be handled during
- * routing messages via Camel's routing error handlers. Beware that when
- * the first message is processed then creating and starting the
- * producer may take a little time and prolong the total processing time
- * of the processing.
- *
- * The option is a: <code>boolean</code> type.
- *
- * Default: false
- * Group: producer
- *
- * @param lazyStartProducer the value to set
- * @return the dsl builder
- */
- default CwEndpointBuilder lazyStartProducer(boolean lazyStartProducer) {
- doSetProperty("lazyStartProducer", lazyStartProducer);
- return this;
- }
- /**
- * Whether the producer should be started lazy (on the first message).
- * By starting lazy you can use this to allow CamelContext and routes to
- * startup in situations where a producer may otherwise fail during
- * starting and cause the route to fail being started. By deferring this
- * startup to be lazy then the startup failure can be handled during
- * routing messages via Camel's routing error handlers. Beware that when
- * the first message is processed then creating and starting the
- * producer may take a little time and prolong the total processing time
- * of the processing.
- *
- * The option will be converted to a <code>boolean</code>
- * type.
- *
- * Default: false
- * Group: producer
- *
- * @param lazyStartProducer the value to set
- * @return the dsl builder
- */
- default CwEndpointBuilder lazyStartProducer(String lazyStartProducer) {
- doSetProperty("lazyStartProducer", lazyStartProducer);
- return this;
- }
- /**
- * The metric name.
- *
- * The option is a: <code>java.lang.String</code> type.
- *
- * Group: producer
- *
- * @param name the value to set
- * @return the dsl builder
- */
- default CwEndpointBuilder name(String name) {
- doSetProperty("name", name);
- return this;
- }
- /**
- * To define a proxy host when instantiating the CW client.
- *
- * The option is a: <code>java.lang.String</code> type.
- *
- * Group: producer
- *
- * @param proxyHost the value to set
- * @return the dsl builder
- */
- default CwEndpointBuilder proxyHost(String proxyHost) {
- doSetProperty("proxyHost", proxyHost);
- return this;
- }
- /**
- * To define a proxy port when instantiating the CW client.
- *
- * The option is a: <code>java.lang.Integer</code> type.
- *
- * Group: producer
- *
- * @param proxyPort the value to set
- * @return the dsl builder
- */
- default CwEndpointBuilder proxyPort(Integer proxyPort) {
- doSetProperty("proxyPort", proxyPort);
- return this;
- }
- /**
- * To define a proxy port when instantiating the CW client.
- *
- * The option will be converted to a
- * <code>java.lang.Integer</code> type.
- *
- * Group: producer
- *
- * @param proxyPort the value to set
- * @return the dsl builder
- */
- default CwEndpointBuilder proxyPort(String proxyPort) {
- doSetProperty("proxyPort", proxyPort);
- return this;
- }
- /**
- * To define a proxy protocol when instantiating the CW client.
- *
- * The option is a: <code>com.amazonaws.Protocol</code>
- * type.
- *
- * Default: HTTPS
- * Group: producer
- *
- * @param proxyProtocol the value to set
- * @return the dsl builder
- */
- default CwEndpointBuilder proxyProtocol(Protocol proxyProtocol) {
- doSetProperty("proxyProtocol", proxyProtocol);
- return this;
- }
- /**
- * To define a proxy protocol when instantiating the CW client.
- *
- * The option will be converted to a
- * <code>com.amazonaws.Protocol</code> type.
- *
- * Default: HTTPS
- * Group: producer
- *
- * @param proxyProtocol the value to set
- * @return the dsl builder
- */
- default CwEndpointBuilder proxyProtocol(String proxyProtocol) {
- doSetProperty("proxyProtocol", proxyProtocol);
- return this;
- }
- /**
- * The region in which CW client needs to work. When using this
- * parameter, the configuration will expect the capitalized name of the
- * region (for example AP_EAST_1) You'll need to use the name
- * Regions.EU_WEST_1.name().
- *
- * The option is a: <code>java.lang.String</code> type.
- *
- * Group: producer
- *
- * @param region the value to set
- * @return the dsl builder
- */
- default CwEndpointBuilder region(String region) {
- doSetProperty("region", region);
- return this;
- }
- /**
- * The metric timestamp.
- *
- * The option is a: <code>java.util.Date</code> type.
- *
- * Group: producer
- *
- * @param timestamp the value to set
- * @return the dsl builder
- */
- default CwEndpointBuilder timestamp(Date timestamp) {
- doSetProperty("timestamp", timestamp);
- return this;
- }
- /**
- * The metric timestamp.
- *
- * The option will be converted to a
- * <code>java.util.Date</code> type.
- *
- * Group: producer
- *
- * @param timestamp the value to set
- * @return the dsl builder
- */
- default CwEndpointBuilder timestamp(String timestamp) {
- doSetProperty("timestamp", timestamp);
- return this;
- }
- /**
- * The metric unit.
- *
- * The option is a: <code>java.lang.String</code> type.
- *
- * Group: producer
- *
- * @param unit the value to set
- * @return the dsl builder
- */
- default CwEndpointBuilder unit(String unit) {
- doSetProperty("unit", unit);
- return this;
- }
- /**
- * The metric value.
- *
- * The option is a: <code>java.lang.Double</code> type.
- *
- * Group: producer
- *
- * @param value the value to set
- * @return the dsl builder
- */
- default CwEndpointBuilder value(Double value) {
- doSetProperty("value", value);
- return this;
- }
- /**
- * The metric value.
- *
- * The option will be converted to a
- * <code>java.lang.Double</code> type.
- *
- * Group: producer
- *
- * @param value the value to set
- * @return the dsl builder
- */
- default CwEndpointBuilder value(String value) {
- doSetProperty("value", value);
- return this;
- }
- /**
- * Amazon AWS Access Key.
- *
- * The option is a: <code>java.lang.String</code> type.
- *
- * Group: security
- *
- * @param accessKey the value to set
- * @return the dsl builder
- */
- default CwEndpointBuilder accessKey(String accessKey) {
- doSetProperty("accessKey", accessKey);
- return this;
- }
- /**
- * Amazon AWS Secret Key.
- *
- * The option is a: <code>java.lang.String</code> type.
- *
- * Group: security
- *
- * @param secretKey the value to set
- * @return the dsl builder
- */
- default CwEndpointBuilder secretKey(String secretKey) {
- doSetProperty("secretKey", secretKey);
- return this;
- }
- }
-
- /**
- * Proxy enum for <code>com.amazonaws.Protocol</code> enum.
- */
- enum Protocol {
- HTTP,
- HTTPS;
- }
-
- public interface CwBuilders {
- /**
- * AWS CloudWatch (camel-aws-cw)
- * Send metrics to AWS CloudWatch.
- *
- * Category: cloud,monitoring
- * Since: 2.11
- * Maven coordinates: org.apache.camel:camel-aws-cw
- *
- * Syntax: <code>aws-cw:namespace</code>
- *
- * Path parameter: namespace (required)
- * The metric namespace
- *
- * @param path namespace
- * @return the dsl builder
- */
- @Deprecated
- default CwEndpointBuilder awsCw(String path) {
- return CwEndpointBuilderFactory.endpointBuilder("aws-cw", path);
- }
- /**
- * AWS CloudWatch (camel-aws-cw)
- * Send metrics to AWS CloudWatch.
- *
- * Category: cloud,monitoring
- * Since: 2.11
- * Maven coordinates: org.apache.camel:camel-aws-cw
- *
- * Syntax: <code>aws-cw:namespace</code>
- *
- * Path parameter: namespace (required)
- * The metric namespace
- *
- * @param componentName to use a custom component name for the endpoint
- * instead of the default name
- * @param path namespace
- * @return the dsl builder
- */
- @Deprecated
- default CwEndpointBuilder awsCw(String componentName, String path) {
- return CwEndpointBuilderFactory.endpointBuilder(componentName, path);
- }
- }
- @Deprecated
- static CwEndpointBuilder endpointBuilder(String componentName, String path) {
- class CwEndpointBuilderImpl extends AbstractEndpointBuilder implements CwEndpointBuilder {
- public CwEndpointBuilderImpl(String path) {
- super(componentName, path);
- }
- }
- return new CwEndpointBuilderImpl(path);
- }
-}
\ No newline at end of file