content: /*
   * 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.component.web3j.springboot;
  
  import java.math.BigInteger;
  import org.apache.camel.component.web3j.Web3jConfiguration;
  import org.apache.camel.spring.boot.ComponentConfigurationPropertiesCommon;
  import org.springframework.boot.context.properties.ConfigurationProperties;
  import org.web3j.protocol.Web3j;
  
  /**
   * Interact with Ethereum nodes using web3j client API.
   * 
   * Generated by camel-package-maven-plugin - do not edit this file!
   */
  @ConfigurationProperties(prefix = "camel.component.web3j")
  public class Web3jComponentConfiguration
          extends
              ComponentConfigurationPropertiesCommon {
  
      /**
       * Whether to enable auto configuration of the web3j component. This is
       * enabled by default.
       */
      private Boolean enabled;
      /**
       * Contract address or a comma separated list of addresses.
       */
      private String addresses;
      /**
       * Default configuration. The option is a
       * org.apache.camel.component.web3j.Web3jConfiguration type.
       */
      private Web3jConfiguration configuration;
      /**
       * The address the transaction is send from
       */
      private String fromAddress;
      /**
       * The block number, or the string latest for the last mined block or
       * pending, earliest for not yet mined transactions.
       */
      private String fromBlock = "latest";
      /**
       * If true it returns the full transaction objects, if false only the hashes
       * of the transactions.
       */
      private Boolean fullTransactionObjects = false;
      /**
       * The maximum gas allowed in this block. The option is a
       * java.math.BigInteger type.
       */
      private BigInteger gasLimit;
      /**
       * A comma separated transaction privateFor nodes with public keys in a
       * Quorum network
       */
      private String privateFor;
      /**
       * If true, this will support Quorum API.
       */
      private Boolean quorumAPI = false;
      /**
       * The address the transaction is directed to.
       */
      private String toAddress;
      /**
       * The block number, or the string latest for the last mined block or
       * pending, earliest for not yet mined transactions.
       */
      private String toBlock = "latest";
      /**
       * Topics are order-dependent. Each topic can also be a list of topics.
       * Specify multiple topics separated by comma.
       */
      private String topics;
      /**
       * The preconfigured Web3j object. The option is a org.web3j.protocol.Web3j
       * type.
       */
      private Web3j web3j;
      /**
       * Allows for bridging the consumer to the Camel routing Error Handler,
       * which mean any exceptions (if possible) occurred while the Camel consumer
       * is trying to pickup incoming messages, or the likes, will now be
       * processed as a message and handled by the routing Error Handler.
       * Important: This is only possible if the 3rd party component allows Camel
       * to be alerted if an exception was thrown. Some components handle this
       * internally only, and therefore bridgeErrorHandler is not possible. In
       * other situations we may improve the Camel component to hook into the 3rd
       * party component and make this possible for future releases. By default
       * the consumer will use the org.apache.camel.spi.ExceptionHandler to deal
       * with exceptions, that will be logged at WARN or ERROR level and ignored.
       */
      private Boolean bridgeErrorHandler = false;
      /**
       * Contract address.
       */
      private String address;
      /**
       * The block number, or the string latest for the last mined block or
       * pending, earliest for not yet mined transactions.
       */
      private String atBlock = "latest";
      /**
       * Hash of the block where this transaction was in.
       */
      private String blockHash;
      /**
       * A random hexadecimal(32 bytes) ID identifying the client.
       */
      private String clientId;
      /**
       * The compiled code of a contract OR the hash of the invoked method
       * signature and encoded parameters.
       */
      private String data;
      /**
       * The local database name.
       */
      private String databaseName;
      /**
       * The filter id to use. The option is a java.math.BigInteger type.
       */
      private BigInteger filterId;
      /**
       * Gas price used for each paid gas. The option is a java.math.BigInteger
       * type.
       */
      private BigInteger gasPrice;
      /**
       * A hexadecimal string representation (32 bytes) of the hash rate.
       */
      private String hashrate;
      /**
       * The header's pow-hash (256 bits) used for submitting a proof-of-work
       * solution.
       */
      private String headerPowHash;
      /**
       * The transactions/uncle index position in the block. The option is a
       * java.math.BigInteger type.
       */
      private BigInteger index;
      /**
       * The key name in the database.
       */
      private String keyName;
      /**
       * 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.
       */
      private Boolean lazyStartProducer = false;
      /**
       * The mix digest (256 bits) used for submitting a proof-of-work solution.
       */
      private String mixDigest;
      /**
       * The nonce found (64 bits) used for submitting a proof-of-work solution.
       */
      private String nonce;
      /**
       * Operation to use.
       */
      private String operation = "transaction";
      /**
       * The transaction index position withing a block. The option is a
       * java.math.BigInteger type.
       */
      private BigInteger position;
      /**
       * The priority of a whisper message. The option is a java.math.BigInteger
       * type.
       */
      private BigInteger priority;
      /**
       * Message to sign by calculating an Ethereum specific signature.
       */
      private String sha3HashOfDataToSign;
      /**
       * The signed transaction data for a new message call transaction or a
       * contract creation for signed transactions.
       */
      private String signedTransactionData;
      /**
       * The source code to compile.
       */
      private String sourceCode;
      /**
       * The information about a transaction requested by transaction hash.
       */
      private String transactionHash;
      /**
       * The time to live in seconds of a whisper message. The option is a
       * java.math.BigInteger type.
       */
      private BigInteger ttl;
      /**
       * The value sent within a transaction. The option is a java.math.BigInteger
       * type.
       */
      private BigInteger value;
      /**
       * 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.
       */
      private Boolean autowiredEnabled = true;
  
      public String getAddresses() {
          return addresses;
      }
  
      public void setAddresses(String addresses) {
          this.addresses = addresses;
      }
  
      public Web3jConfiguration getConfiguration() {
          return configuration;
      }
  
      public void setConfiguration(Web3jConfiguration configuration) {
          this.configuration = configuration;
      }
  
      public String getFromAddress() {
          return fromAddress;
      }
  
      public void setFromAddress(String fromAddress) {
          this.fromAddress = fromAddress;
      }
  
      public String getFromBlock() {
          return fromBlock;
      }
  
      public void setFromBlock(String fromBlock) {
          this.fromBlock = fromBlock;
      }
  
      public Boolean getFullTransactionObjects() {
          return fullTransactionObjects;
      }
  
      public void setFullTransactionObjects(Boolean fullTransactionObjects) {
          this.fullTransactionObjects = fullTransactionObjects;
      }
  
      public BigInteger getGasLimit() {
          return gasLimit;
      }
  
      public void setGasLimit(BigInteger gasLimit) {
          this.gasLimit = gasLimit;
      }
  
      public String getPrivateFor() {
          return privateFor;
      }
  
      public void setPrivateFor(String privateFor) {
          this.privateFor = privateFor;
      }
  
      public Boolean getQuorumAPI() {
          return quorumAPI;
      }
  
      public void setQuorumAPI(Boolean quorumAPI) {
          this.quorumAPI = quorumAPI;
      }
  
      public String getToAddress() {
          return toAddress;
      }
  
      public void setToAddress(String toAddress) {
          this.toAddress = toAddress;
      }
  
      public String getToBlock() {
          return toBlock;
      }
  
      public void setToBlock(String toBlock) {
          this.toBlock = toBlock;
      }
  
      public String getTopics() {
          return topics;
      }
  
      public void setTopics(String topics) {
          this.topics = topics;
      }
  
      public Web3j getWeb3j() {
          return web3j;
      }
  
      public void setWeb3j(Web3j web3j) {
          this.web3j = web3j;
      }
  
      public Boolean getBridgeErrorHandler() {
          return bridgeErrorHandler;
      }
  
      public void setBridgeErrorHandler(Boolean bridgeErrorHandler) {
          this.bridgeErrorHandler = bridgeErrorHandler;
      }
  
      public String getAddress() {
          return address;
      }
  
      public void setAddress(String address) {
          this.address = address;
      }
  
      public String getAtBlock() {
          return atBlock;
      }
  
      public void setAtBlock(String atBlock) {
          this.atBlock = atBlock;
      }
  
      public String getBlockHash() {
          return blockHash;
      }
  
      public void setBlockHash(String blockHash) {
          this.blockHash = blockHash;
      }
  
      public String getClientId() {
          return clientId;
      }
  
      public void setClientId(String clientId) {
          this.clientId = clientId;
      }
  
      public String getData() {
          return data;
      }
  
      public void setData(String data) {
          this.data = data;
      }
  
      public String getDatabaseName() {
          return databaseName;
      }
  
      public void setDatabaseName(String databaseName) {
          this.databaseName = databaseName;
      }
  
      public BigInteger getFilterId() {
          return filterId;
      }
  
      public void setFilterId(BigInteger filterId) {
          this.filterId = filterId;
      }
  
      public BigInteger getGasPrice() {
          return gasPrice;
      }
  
      public void setGasPrice(BigInteger gasPrice) {
          this.gasPrice = gasPrice;
      }
  
      public String getHashrate() {
          return hashrate;
      }
  
      public void setHashrate(String hashrate) {
          this.hashrate = hashrate;
      }
  
      public String getHeaderPowHash() {
          return headerPowHash;
      }
  
      public void setHeaderPowHash(String headerPowHash) {
          this.headerPowHash = headerPowHash;
      }
  
      public BigInteger getIndex() {
          return index;
      }
  
      public void setIndex(BigInteger index) {
          this.index = index;
      }
  
      public String getKeyName() {
          return keyName;
      }
  
      public void setKeyName(String keyName) {
          this.keyName = keyName;
      }
  
      public Boolean getLazyStartProducer() {
          return lazyStartProducer;
      }
  
      public void setLazyStartProducer(Boolean lazyStartProducer) {
          this.lazyStartProducer = lazyStartProducer;
      }
  
      public String getMixDigest() {
          return mixDigest;
      }
  
      public void setMixDigest(String mixDigest) {
          this.mixDigest = mixDigest;
      }
  
      public String getNonce() {
          return nonce;
      }
  
      public void setNonce(String nonce) {
          this.nonce = nonce;
      }
  
      public String getOperation() {
          return operation;
      }
  
      public void setOperation(String operation) {
          this.operation = operation;
      }
  
      public BigInteger getPosition() {
          return position;
      }
  
      public void setPosition(BigInteger position) {
          this.position = position;
      }
  
      public BigInteger getPriority() {
          return priority;
      }
  
      public void setPriority(BigInteger priority) {
          this.priority = priority;
      }
  
      public String getSha3HashOfDataToSign() {
          return sha3HashOfDataToSign;
      }
  
      public void setSha3HashOfDataToSign(String sha3HashOfDataToSign) {
          this.sha3HashOfDataToSign = sha3HashOfDataToSign;
      }
  
      public String getSignedTransactionData() {
          return signedTransactionData;
      }
  
      public void setSignedTransactionData(String signedTransactionData) {
          this.signedTransactionData = signedTransactionData;
      }
  
      public String getSourceCode() {
          return sourceCode;
      }
  
      public void setSourceCode(String sourceCode) {
          this.sourceCode = sourceCode;
      }
  
      public String getTransactionHash() {
          return transactionHash;
      }
  
      public void setTransactionHash(String transactionHash) {
          this.transactionHash = transactionHash;
      }
  
      public BigInteger getTtl() {
          return ttl;
      }
  
      public void setTtl(BigInteger ttl) {
          this.ttl = ttl;
      }
  
      public BigInteger getValue() {
          return value;
      }
  
      public void setValue(BigInteger value) {
          this.value = value;
      }
  
      public Boolean getAutowiredEnabled() {
          return autowiredEnabled;
      }
  
      public void setAutowiredEnabled(Boolean autowiredEnabled) {
          this.autowiredEnabled = autowiredEnabled;
      }
  }