toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case ElasticsearchIndexRotationPeriod.noRotation:
      return 'NoRotation';
    case ElasticsearchIndexRotationPeriod.oneHour:
      return 'OneHour';
    case ElasticsearchIndexRotationPeriod.oneDay:
      return 'OneDay';
    case ElasticsearchIndexRotationPeriod.oneWeek:
      return 'OneWeek';
    case ElasticsearchIndexRotationPeriod.oneMonth:
      return 'OneMonth';
  }
}