toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case SourceAccessType.basicAuth:
      return 'BASIC_AUTH';
    case SourceAccessType.vpcSubnet:
      return 'VPC_SUBNET';
    case SourceAccessType.vpcSecurityGroup:
      return 'VPC_SECURITY_GROUP';
    case SourceAccessType.saslScram_512Auth:
      return 'SASL_SCRAM_512_AUTH';
    case SourceAccessType.saslScram_256Auth:
      return 'SASL_SCRAM_256_AUTH';
  }
}