All files / src/activemq activemq-broker-engine-version.ts

100% Statements 29/29
100% Branches 3/3
100% Functions 3/3
100% Lines 29/29

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 301x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 15x 15x 1x  
/*
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
 
/**
 *
 * @see: https://docs.aws.amazon.com/amazon-mq/latest/developer-guide/activemq-version-management.html
 */
export class ActiveMqBrokerEngineVersion {
  public static readonly V5_18 = new ActiveMqBrokerEngineVersion('5.18');
 
  public static readonly V5_17_6 = new ActiveMqBrokerEngineVersion('5.17.6');
 
  public static readonly V5_16_7 = new ActiveMqBrokerEngineVersion('5.16.7');
 
  public static readonly V5_15_16 = new ActiveMqBrokerEngineVersion('5.15.16');
 
  public static of(version: string): ActiveMqBrokerEngineVersion {
    return new ActiveMqBrokerEngineVersion(version);
  }
 
  // eslint-disable-next-line no-useless-constructor, no-empty-function
  protected constructor(private readonly version: string) {}
 
  public toString() {
    return this.version;
  }
}