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

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

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 30 31 32 331x 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 1x 1x 1x 10x 10x 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/rabbitmq-version-management.html
 */
export class RabbitMqBrokerEngineVersion {
  public static readonly V3_13 = new RabbitMqBrokerEngineVersion('3.13');
 
  public static readonly V3_12_13 = new RabbitMqBrokerEngineVersion('3.12.13');
 
  public static readonly V3_11_20 = new RabbitMqBrokerEngineVersion('3.11.20');
 
  public static readonly V3_10_20 = new RabbitMqBrokerEngineVersion('3.10.20');
 
  public static readonly V3_9_27 = new RabbitMqBrokerEngineVersion('3.9.27');
 
  public static readonly V3_8_34 = new RabbitMqBrokerEngineVersion('3.8.34');
 
  public static of(version: string): RabbitMqBrokerEngineVersion {
    return new RabbitMqBrokerEngineVersion(version);
  }
 
  // eslint-disable-next-line no-useless-constructor, no-empty-function
  protected constructor(private readonly version: string) {}
 
  public toString() {
    return this.version;
  }
}