toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case SourceType.cluster:
      return 'cluster';
    case SourceType.clusterParameterGroup:
      return 'cluster-parameter-group';
    case SourceType.clusterSecurityGroup:
      return 'cluster-security-group';
    case SourceType.clusterSnapshot:
      return 'cluster-snapshot';
    case SourceType.scheduledAction:
      return 'scheduled-action';
  }
}