toValue method
Implementation
String toValue() {
switch (this) {
case SourceType.codecommit:
return 'CODECOMMIT';
case SourceType.codepipeline:
return 'CODEPIPELINE';
case SourceType.github:
return 'GITHUB';
case SourceType.s3:
return 'S3';
case SourceType.bitbucket:
return 'BITBUCKET';
case SourceType.githubEnterprise:
return 'GITHUB_ENTERPRISE';
case SourceType.noSource:
return 'NO_SOURCE';
}
}