toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case S3ObjectLockRetentionMode.compliance:
      return 'COMPLIANCE';
    case S3ObjectLockRetentionMode.governance:
      return 'GOVERNANCE';
  }
}